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.
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
Add a comment