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 are hashed tables?
What are the differences between structure and table in data dictionary in abap? : sap abap data dictionary
Explain what is the difference between sy-tabix and sy-index? Where it is used?
What is the use of f4if_shlp_exit_example function module ? : sap abap data dictionary
What is the Process to transfer IDOC from Outbound System to Inbound system.
where do we store all custom programs in SD module?
THANKS ALL. i CLEARED THE INTERVIEW OF INFOSYS BASED ON THIS QUESTION SET. IT REALLY WORKS. LONG LIVE ALLINTERVIEW.COM
Explain what are the events used in interactive reports?
In which cluster time results are stored? : abap hr
How many types of size categories and data classes are there? : abap data dictionary
What are the different function modules used in sapscript?
Where do you code the hide statement?
What are the different types of abap reports in sap?
What is a bsp application? : sap abap hr
When you prefer lsmw?