2009 Jan 03 4:52 PM
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 .
2009 Jan 03 8:45 PM
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 .
2009 Jan 03 5:33 PM
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
2009 Jan 03 8:45 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |