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

Table Control Row and Column Calculations.

Hi Gurus,

I'm in a situation where in i have to calculate the values of one column and write the result in another coulmn,

Please anybody help me,

Suggestios and code snippets are welcome.

Regards.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 05, 2012 at 05:29 AM

    See the standard report : DEMO_DYNPRO_TABLE_CONTROL_1



    03Julg11.JPG (548.3 kB)
    table.jpg (27.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 06, 2012 at 04:13 PM

    PROCESS AFTER INPUT.

    LOOP AT itab.

    field : zline-col1,

    zline-col2.

    MODULE modify_tab.

    ENDLOOP.

    module modify_tab input.

    zline-col2 = calculation with the help of zline-col1.

    read table itab into wa_itab index cntrl-CURRENT_LINE .

    wa_itab-col2 = zline-col2.

    modify itab from wa_itab transporting col2.

    endmodule.

    zline is structure of table control line on the screen.

    cntrl is the name of the the control u define in top include.

    Also in PBO loop make sure you set back data from itab to screen. ( I assume this is already being done )

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 07, 2012 at 01:45 PM

    Basic - locked.

    Rob

    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.