‎2007 Jul 25 10:00 AM
hi guru's,
i want to display sales details of perticular customer in table control.how can i constuct loop statement at PBO by using table control.i put
loop at itab.
module status_100.
endloop,
but it is saying that itab is not DB table.
help me. and also how to put move-corresponding statement at PBO.
thanks in advance.
‎2007 Jul 25 10:06 AM
‎2007 Jul 25 11:30 AM
hello,
in the table control field names should be define as internal table field names. like itab-vbeln,itab-posnr...... so that when you write a logic in PAI event and PBO events will refer.
then write a logic as follows.
1).define the Internal table in Global Include.
2) write a logic under PBO event for populating the data and also write a loop for that internal table.
3) loop the internal table inside the PAI event also.
please let me know if you need any further help.
Murali.
‎2007 Jul 25 3:29 PM
Hi,
Use the following code
loop at itab <b>WITH CONTROL tbctrl CURSOR tbctrl-current_line</b>.
module status_100.
endloop.
<b>Reward if helpful.</b>