‎2008 Mar 29 4:01 AM
Hello gurus ,
I am using a table control in that I have call some data from differt table and I want to insert some data manually in differt coloum , and some calculation in differt column ,Now data is caoming from differt table and I can enter the value also in visible column , but when I press enter , the entry data is disapper means what I have enterd . I mean to say hw to fix taht data in the screen after pressing enter, is there any way or example .Plz help .
I am waiting for your valuable answer .
Thanks in advance .
Regards .
Joy .
‎2008 Apr 01 10:24 AM
the problem is your table control is not getting modified
after entering the values,
in PAI write the following code
MODIFY itab FROM <structure> INDEX tc-current_line.
IF sy-subrc NE 0.
APPEND <structure> TO itab.
ENDIF.
‎2008 Mar 29 5:52 AM
Typically a table control will represent a set of columns from an internal table that you want to display on the screen. In order to capture data entered on the screen, you will need to update your internal table from the values entered by the user - this is done in the loop in the flow logic at PAI... the values are passed back to the screen ready for display in the loop in the PBO screen flow... so if you set a break-point in these two places, you will be able to check that your internal table is indeed holding the correct values before and after the screen is displayed.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
Jonathan
‎2008 Apr 01 5:54 AM
Hi,
Since a table control will represent columns from an internal table that you want to display on the screen.
MODULE tabctrl INPUT.
CASE sy-ucomm.
WHEN 'SAVE'.
MODIFY wi_cust1 INDEX tb-current_line.
IF sy-subrc = 0.
MODIFY zcust_master2 FROM TABLE wi_cust1.
MESSAGE s005(zmsgbanks1).
ELSE.
MESSAGE e006(zmsgbanks1).
ENDIF.
ENDIF.
Here wi_cust1 is the internal table and zcust_master2 is the database table.
hope this helps u,
Regards,
Arunsri
‎2008 Apr 01 10:24 AM
the problem is your table control is not getting modified
after entering the values,
in PAI write the following code
MODIFY itab FROM <structure> INDEX tc-current_line.
IF sy-subrc NE 0.
APPEND <structure> TO itab.
ENDIF.