Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

tablecontrol

Former Member
0 Likes
587

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 .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
563

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.

3 REPLIES 3
Read only

Former Member
0 Likes
563

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

Read only

Former Member
0 Likes
563

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

Read only

Former Member
0 Likes
564

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.