Answer Posted / cg
Parallel cursor is a technique to overcome loop inside loop technique in abap.
When we have two internal tables , and we have a situation where the entries from first internal table are to be dependant on the second table.
For e.g
Select matnr ernam from mara into table lt_mat where matnr = p_matnr.
Select maktx from makt into table lt_mat1 where matnr = lt_mat.
so for getting maktx we need to wirte first loop for lt_mat and then nested loop for lt_mat1 .
If we write like this , It will take more time to run the program to avoid this we use parallel cursor technique .
E.G select matnr from mara into table lt_mat where matnr = p_matnr.
Select maktx from mara into table lt_mat1 for all entries in lt_mat where matnr = lt_mat
then write loop for 1st select query only and read the second query with read table statment
Loop at lt_mat into lw_mat.
read table lt_mat1 into lw_mat1 where matnr = lw_mat.
endloop.
This is called Parallel cursor technique.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is your current client number?
What are the classifications of the sap abap data classes?
Where can you find error log for call transaction? : abap bdc
What is PS structure
What is match code? : sap abap hr
What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why? : abap modularization
What is a collect statement?
while implementing badi what are the tables u find??
8)when u create sales report what u can see in that report ? what rthose field names or data element names? 9)when u create purchase order details report what u can see in that report ?what rthose fieldnames or dataelements? 10)when u create material stock report in material master grouped by material type and plant what u can see in report ?what rthose field names or dataelement ? 11)when u create shipping forecast report what u can see in that report ?what rthose data elements or field names?
Can i have some Realtime Scenarios on Reports.
What are the aggregate objects in data dictionary? : sap abap data dictionary
What are two methods of modifying sap standard tables? : abap data dictionary
What are the different types of luws?
What are the functional areas?
What are clustered tables?