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

Tabstrip

Former Member
0 Likes
684

Hello gurus ,

Guru I have created 6tab in a single tabstrip , and I have created table control in all the tabstrips subscreen , now the problem is that , when I am put the data and press the enter , data automatically dis appear , I want to fix the data after press the enter button and I have to save the data of all the tabstrips table contrl data .

How to do these please healp .

I amm waiting for your valuable reply .

Joy .

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
620

Hello Joy

For table controls there is no automatic field transport. Therefore, you need to explicitly move the data from the table control to your itab. For a sample report have a look at DEMO_DYNPRO_TABCONT_LOOP_AT (on ECC 6.0):

Flow logic of screen:


PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
    LOOP AT ITAB INTO DEMO_CONN WITH CONTROL FLIGHTS.
  ENDLOOP.

PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  LOOP AT ITAB.
    module read_table_control.
  ENDLOOP.
  module user_command_0100.

Data transport (table control -> itab):


MODULE read_table_control INPUT.
  MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.

Regards

Uwe

Hello gurus ,

Guru I have created 6tab in a single tabstrip , and I have created table control in all the tabstrips subscreen , now the problem is that , when I am put the data and press the enter , data automatically dis appear , I want to fix the data after press the enter button and I have to save the data of all the tabstrips table contrl data .

How to do these please healp .

I amm waiting for your valuable reply .

Joy .

2 REPLIES 2
Read only

Former Member
0 Likes
620

Hi Joy,

The problem here seems to be with the PAI of the screen containing the table control....

When we enter data into the table control we need to update the internal table with the statement

Modify internal table from work area index tablecontrol-current_line.

The easiest way out is to put a break point on pressing enter...by the time we reach PBO ..the internal table will not have any values and hence the disappearing problem.....If the internal table is properly updated in the PAI of the screen the problem will be fixed

Hope it helps

Regards

Byju

Read only

uwe_schieferstein
Active Contributor
0 Likes
621

Hello Joy

For table controls there is no automatic field transport. Therefore, you need to explicitly move the data from the table control to your itab. For a sample report have a look at DEMO_DYNPRO_TABCONT_LOOP_AT (on ECC 6.0):

Flow logic of screen:


PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
    LOOP AT ITAB INTO DEMO_CONN WITH CONTROL FLIGHTS.
  ENDLOOP.

PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  LOOP AT ITAB.
    module read_table_control.
  ENDLOOP.
  module user_command_0100.

Data transport (table control -> itab):


MODULE read_table_control INPUT.
  MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.

Regards

Uwe