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
How to transfer data into line items using batch input session method? : abap bdc
Is sap xi intended to replace ale?
What are the data types of the external layer? : abap data dictionary
What is an authorization in sap?
What are the user groups?
WHY CLUSTER TABLE CALLED AS CLUSTER TABLE.
Differentiate between the uline and write: sy-uline statements if any?
after creating lock object if does n't access record by second user what should we do?
Explain some essential objects in abap dictionary?
What is the difference b/t Session method and call transaction method ??
What is at exit-command:?
what is the transaction transaction for setting parameters rdisp/buffermode
What is difference between dialog program and a report?
Difference between domain and data element? What are aggregate object?
What is pretty printer?