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

Structure & Table for Screen painter - Table control.

Former Member
0 Likes
692

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.

2 REPLIES 2
Read only

Former Member
0 Likes
443

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

Read only

Former Member
0 Likes
443

I am sorry. It's my mistake.

It's done.

Regards

Ramesh.