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

SCREEN FIELDS AND TABLE CONTROLS

Former Member
0 Likes
518

Hi All,

I have created a screen with both screen I/O fields and table control fields based on the SAME internal table. In the screen PBO I loop at the internal table with the table control with the status module inside the loop as follows:

PROCESS BEFORE OUTPUT.

MODULE STATUS_1100.

LOOP AT IT_PURCH WITH CONTROL TC_PURCH CURSOR TC_PURCH-CURRENT_LINE.

MODULE GET_FIELDS.

ENDLOOP.

I would like to display the data in the screen in PAI at ENTER but it seems the IT is being cleared at the loop in the PBO.

The PAI is follows:

PROCESS AFTER INPUT.

MODULE USER_COMMAND_1100.

LOOP AT IT_PURCH.

CHAIN.

FIELD IT_PURCH-CERTNO.

FIELD IT_PURCH-SHARES.

ENDCHAIN.

ENDLOOP.

How do I solve this problem?

Regards.

3 REPLIES 3
Read only

Former Member
0 Likes
489

Hi,

Do you want to display the data from the internal table on the I/O field?

Read only

0 Likes
489

Yes, I want to display data from the internal table to the screen I/O fields on enter. That is from a transparent table.

Read only

former_member491305
Active Contributor
0 Likes
489

Hi Darlington,

I think the Module user command should come after Loop Endloop of table control.Then only the value from database table to itab will not get cleared.What happening now is after getting the value into the itab in module USER_COMMAND,the PAI loop for table control will get the screen value which is currenly empty and modify it into the internal table.

PROCESS AFTER INPUT.

LOOP AT IT_PURCH.

CHAIN.

FIELD IT_PURCH-CERTNO.

FIELD IT_PURCH-SHARES.

ENDCHAIN.

ENDLOOP.

<b>MODULE USER_COMMAND_1100.</b>

Regards,

Vigneswaran S