0% found this document useful (0 votes)
2 views2 pages

Abap 10

The document provides guidance on writing parallel cursors for tables EKKO and EKPO, extending IDOCs, generating proxies, and best practices for ABAP coding. It includes step-by-step instructions for each task, such as creating new segments for IDOCs and using transaction codes for proxy generation. Additionally, it outlines best practices for writing efficient ABAP code, including using WHERE clauses and avoiding nested SELECT statements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Abap 10

The document provides guidance on writing parallel cursors for tables EKKO and EKPO, extending IDOCs, generating proxies, and best practices for ABAP coding. It includes step-by-step instructions for each task, such as creating new segments for IDOCs and using transaction codes for proxy generation. Additionally, it outlines best practices for writing efficient ABAP code, including using WHERE clauses and avoiding nested SELECT statements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Q 1. How to write parellel cursor . For example for table EKKO and EKPO.

Please
write .

Ans :-
LOOP at gt_ekko into data(gs_ekko).
read TABLE gt_ekpo into data(gs_ekpo) with key ebeln = gs_ekko-ebeln BINARY SEARCH.
if sy-subrc = 0.
loop at gt_ekpo into gs_ekpo FROM sy-tabix.

if gs_ekpo-ebeln ne gs_ekko-ebeln.
exit.
endif.
clear : gs_ekpo.
endloop.
endif.
clear : gs_ekko.
endloop.

Q 2. How to do the extension in IDOCS.


Ans :-
a>we31(create new segments with fields u want to populate)

b>we30(create an extension idoc type).in we30 u will get to radio buttons.1>basic


type 2>extension.click on the extension and then copy the basic type.Now will get
all the segmnts .Now add the new segments under the parent segement which needs to
be extended.

c>attach the extended idoc type to basic type and message type to tcode WE82.

d>Now u have to search for an exit where u have to write ur code in order to
populate the fields which u have extended.Basically u will write in the Function
module.Make sure u r writing in the correct exit.Evry messagetype will have a
function module.

e>create a project in cmod and activate the function exit.

Q 3. How to Generate Proxy.


Ans :-
a. Use transaction code SPROXY.

Select an object. In the Enterprise Service Browser, you can locate an object
according to different criteria, such as the generation source, the package, or the
object type.

b. To generate the proxy, open the context menu and choose Create proxy.

Specify a package and a prefix, and choose Enter.

c. Valid ABAP names are proposed. You can change the proposed names as required.

The prefix you specified is displayed as part of the ABAP name in the Properties
tab and also in the Structure tab.

d. Activate the proxy.

Q 4. What are the ABAP best Practice while writing a code.


a. Use the WHERE clause in your SELECT statement to restrict the volume of data
retrieved.
b. Design your queries to utilize as many index fields as possible in the WHERE
statement.
c.Employ INNER JOIN (or OUTER JOIN under specific circumstances) to retrieve
matching records in a single shot.
d. Avoid nested SELECT statements and SELECT within loops; prefer JOINs or FOR ALL
ENTRIES.
e. Be cautious with INTO CORRESPONDING FIELDS OF TABLE during buffered access.
f. Select only the required fields from the table instead of using SELECT *.
g. Avoid using ORDER BY in SELECT statements if it differs from the used index
(sort the resulting internal table instead).
h. Create indices thoughtfully, as they impact memory and insert/append
performance.
i. Buffer frequently accessed data using ABAP’s buffering options (e.g., defining a
table as buffered in SE11).

Q5. Do you know any functional Knowledge .


Ans.
I know MM, and i can tell you the MM Flow.
MM FLow :- PR(ME51N)
RFQ to Vendor(ME41)
Raising Quotation(ME47)
Comparison of Price(ME49)
Creation of PO(ME21N)
Goods Receipt(MIGO)
Invoice(MIRO)

You might also like