Skip to Content

Regarding Table Content in Module Pool

Q. How to pass data from table content cells to internal table in Module Pool.........

Example........

Like Price column

5,00

This $5,00 will be showing in Price column of Internal Table.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    Posted on May 30, 2013 at 10:51 AM

    Guys,

    I am giving you the example Like: my Table Control name is TC4

    TC4 is showing data of EKPO

    __________________________

    PO No Items Net price

    00000005 00001 30.00

    This is showing in Table control Screen. Internal Table like I_EKPO.

    Now I am going to edit Netprice column of Table Control TC4 with amount 10.00.

    This 10.00 amount will be showing on TC4 table control screen in Net Price field like

    PO No items Net price

    00000005 00001 10.00

    and this data will be passing into final internal table like I_EKPO_final.... HOW??????

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2013 at 05:37 AM

    hi kumar,

    Use concatenate statement

    concatenate '$' price column into ' take one variable

    append this value to internal table.

    Suresh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 28, 2013 at 08:31 PM

    Guys,

    Issue has not been resolved yet. still Field of Table content does not hold this editable amount....

    Can I use DEQUEUE AND ENQUEUE FM.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2013 at 04:40 AM

    Mr.Kumar krishna Sen,

    If you set the table control column as Input field, automatically the data entered there will be saved into the internal table record.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2013 at 05:28 AM

    hi Kumar,

    In module pool, you must be using Table Control to display data, and in this scenario your table control will be editable. Now you want to save the data entered in the table control into your internal table. You will have to write logic to save data in PAI of you module pool:

    PROCESS AFTER INPUT.

    MODULE F_EXIT AT EXIT-COMMAND.

    LOOP WITH CONTROL tab_control.

    MODULE F_TABLE_TO_TC.

    ENDLOOP.

    ********

    MODULE F_TABLE_TO_TC INPUT.

    *To move the data from the table control to internal table 'INT_TAB'.

    int_tab-chk = line.

    int_tab-field1 = tab_control-field1.

    Concatenate '$' tab_control-field2 into VAR1. "please use correct data types or this statement may not work

    int_tab-field2 = VAR1.

    MODIFY int_tab INDEX tab_control-current_line.

    IF sy-subrc NE 0.

    APPEND int_tab.

    CLEAR int_tab.

    ENDIF.

    ENDMODULE.

    Please let me know if this helps.

    Regards,

    DN.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2013 at 04:32 AM

    Hello Kumar Krishna,

    can you explain your scenario clearly ?

    What exactly you mean by table content cells ?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2013 at 07:33 AM

    Hi,

    The Table Control and screen field names should be same, then on user action the values get automatically transferred.

    Thanks,

    Ankit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 01, 2013 at 08:19 PM

    Thanks to all of u guys ..for your helps and ideas of this issue.......

    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.