Skip to Content
author's profile photo Former Member
Former Member

SCREEN FIELDS AND TABLE CONTROLS

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 01:39 PM

    Hi,

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 12:54 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.