Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

confusion with the loop

Former Member
0 Likes
598

hi all.

i am confused with the looping statement.

i have to output the data depending on the fields of tables eban,ekko,ekpo and eket.

i dont know how to modularise it so that the data can be outputted with respect to header or the item level.

also.how to write the code so that the loop will populate the alv display.

what should be the sequence and it should be decided to write loop and read statement.

please do reply as i am still in the learning process and your elaboration can guide me to take on the code.

thanks in advance!

4 REPLIES 4
Read only

Former Member
0 Likes
568

You should not be on here asking for this level of help.

Read only

former_member156446
Active Contributor
0 Likes
568

the main thing you need to keep in mind is: In the read satement read the table with header(PO#) and the item(PO Item#)


loop at vbak..

   read table vbap with key vbeln = vblen
                                       posnr = posnr..
;;;
...
endloop.

Read only

Former Member
0 Likes
568

Hi,

These all looks very basic question's and this is probably not the wrie place for the same ............

All your question's will depend on the fact that whether you want a normal Report or an ALV report.

If you doing for the exercise purpose, I will suggest you to go for a normal report.

You need to use Internal Table Control Processing Events(AT-New etc) to display Header & Detail data in order.

Read only

Former Member
0 Likes
568

Please do not cross-post threads or decentrally ask them.

Create one thread with a clear complete question, and follow up on it. It's not about points.

People will respect you for this and give you getter answers (I would!)

Cheers,

Julius