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
Are you familiar with all steps for setting up a workflow?
What are the drill-down features provided by abap/4 in interactive lists?
Explain get pernr concept when we use logical data base? : abap hr
What is tcode se16?
What are the difference between tables and structures? : abap data dictionary
How do you convert non-char field into char type fields ?
What are the advantages of logical databases?
Can we set page headers to details lists?
what is abstract classes
What are the various events associated with screen programming?
How many types of data classes are there in sap abap? : abap data dictionary
How do you read files from the application server ? : abap bdc
What is the difference between field-group header and other field groups? : abap modularization
what is friend class
What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr