cancel
Showing results for 
Search instead for 
Did you mean: 

table control

Former Member
0 Kudos

how to define each column in table control.... for each column have a different calculation... may i know the syntax ......

thank u....

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

good

go through this link hope this ll help you to solve your problem

http://help.sap.com/saphelp_sm32/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm

reward point if helpful.

thanks

mrutyun^

former_member589029
Active Contributor
0 Kudos

First thing is you need an internal table that reflects the different columns you would like to see in your table control. The screen layout is done in the screen painter. When you define the table control make sure that the column names correspond to your internal table field names.

In the screen logic you now need to pass the data from the internal table to the table control on the screen:

PBO:

LOOP AT internal_table

INTO wa_for_internal_table

WITH CONTROL table_control_name

wa_for_internal_table is the workarea for your internal table and should have the same structure as your internal table

The user can now make changes on the table control (change/add/delete) and when he hits enter the internal table does have the changed entries in it.

PAI:

loop at internal_table.

the fields of structure wa_for_internal_table contain the values from the dynpro for each line of the table control. Within this loop you can perform any data validation or calculation you would like to do.

endloop.

Hope that helps,

Michael