Parallel cursor
Answer / 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 |
What are the different message types available in the abap/4 ?
What is meant by a schema? : sap abap hr
Menu painter?
What are critical issues you have faced in your project
Worked on support project? How do you handle serious production issue? Severity? Time taken to resolve the issue? How you get issues/tickets?
there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?
Can we use binary search in internal table sorted in decending order ? if no why?
in an interactive report i want to trigger both 'at line selection' and 'user command'....if possible then how?
hi, what is basic diff b/w RFCs and BAPI? What is basic diff b/w BADI and BAPLI?please dont give the general diff?please any one can tell me?
What is Web dynpro?
How will you insert record in a sorted table
Can we develop program without logical database for hr module data retrieval