on 10-30-2007 12:41 AM
how to define each column in table control.... for each column have a different calculation... may i know the syntax ......
thank u....
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^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.