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 a predefined type in abap?
Why is pretty printer user in abap?
wat is the difference between A-gate & W-gate?where are they used?
What is an Open Item in SAP? How will you find an Open Item in SAP?
What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr
singleton class
Sal abap on hana interview
Does sap handle multiple languages?
How to call a subroutine in sapscript?
Different types of locks?
Can you create an internal table dynamically?(at run time)
What are the client dependant objects in abap / sap?
What is the use of buffering?
What are the events used in interactive reports?
Which transaction code can I used to analyze the performance of ABAP program.?