‎2010 Mar 10 10:23 PM
Hi All,
I have a question on PAI , PBO module of module pool program for table control.
I have created table control in one screen (assigned the data dictionary custom structure (say zmonths_data) for the same in SE51). And while writing the program for the same, it is asking to loop the PAI and PBO modules.
If I try to loop the same like below... it is saying zmonths_data is not a database table.
PROCESS BEFORE OUTPUT.
LOOP AT zmonths_data.
MODULE status_1000.
ENDLOOP.
*
PROCESS AFTER INPUT.
LOOP AT zmonths_data.
MODULE user_command_1000.
ENDLOOP.
Do we need to have only database tables to use in table controls?
Please advice.
Thanks a lot.
Regards
Ramesh.
‎2010 Mar 10 10:35 PM
Hi Ramesh,
The syntax is wrong. You probably want to loop over the table control and in that case you're missing the part WITH CONTROL cntrl.
Check out the ABAP docu for [LOOP - WITH CONTROL|http://help.sap.com/abapdocu_70/en/DYNPLOOP.htm].
Cheers, harald
‎2010 Mar 10 11:04 PM