‎2008 Aug 01 1:51 PM
Hello friends ,
I have a tablecontrol in some data is there through selecr query , now I have to insert some more data in that table control afetrwards the line of existing data .
hw to add , plz guide its an urjent.
joy.
‎2008 Aug 01 1:53 PM
Hi!
Check out the following demo programs:
DEMO_DYNPRO_TABLE_CONTROL_1
DEMO_DYNPRO_TABLE_CONTROL_2
Regards
Tamá
‎2008 Aug 01 1:56 PM
Joy,
TC_DATA = Your Table Control
IT_DATA = Your Internal Table used for Table Control.
In your MODULE USER_COMMAND INPUT, add this code:
IF OK_CODE = 'ADD'.
CLEAR: IT_DATA.
APPEND IT_DATA.
ENDIF.
Amit
‎2008 Aug 01 2:14 PM
MODULE user_command_0007 INPUT.
CASE sy-ucomm .
WHEN 'BACK' .
LEAVE TO SCREEN 0 .
WHEN 'EXIT' .
LEAVE TO SCREEN 0 .
WHEN 'CANCELL' .
LEAVE PROGRAM .
WHEN '' .
CLEAR itab .
APPEND itab .
ENDCASE .
I have written this way , its not working .
‎2008 Aug 04 6:52 AM
Joy,
MODULE user_command_0007 INPUT.
CASE sy-ucomm .
WHEN 'BACK' .
LEAVE TO SCREEN 0 .
WHEN 'EXIT' .
LEAVE TO SCREEN 0 .
WHEN 'CANCELL' .
LEAVE PROGRAM .
WHEN '' ."Where is your when quote??
CLEAR itab .
APPEND itab .
ENDCASE .
pls give function code with when.
Amit.
‎2008 Aug 04 7:02 AM
CASE sy-ucomm .
WHEN 'BACK' .
LEAVE TO SCREEN 0 .
WHEN 'EXIT' .
LEAVE TO SCREEN 0 .
WHEN 'CANCELL' .
LEAVE PROGRAM .
WHEN 'CMD1' .
CLEAR :itab .
APPEND itab .
ENDCASE .
plz check its not working , becz when I click into create button screen is refreshing and select query is executing into PBO and same data is comming into table control , but user want to write new data in table control with previous one and save the data with new one , is it possible or is there any alternate way .
Joy