‎2009 Aug 28 9:32 AM
hi all,
Am pretty new to sap and i have just created a table control, however when am doing some modification to the table control and press enter the values/modified values are being dublicated on the table control..... Any help will be most welcomed.
Thank you.
‎2009 Aug 28 9:54 AM
Hi,
Try this
PROCESS BEFORE OUTPUT.
LOOP AT gt_itab1 WITH CONTROL tabcontrol.
MODULE display_data.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE clear_internal_table.
LOOP AT gt_itab1.
MODULE read_data.
ENDLOOP.
MODULEclear_internal_table INPUT.
clear gt_itab1[].
clear gt_itab1.
ENDMODULE.
MODULE read_data INPUT.
if sy-ucomm eq 'ENTER'.
"Populate your internal table
endif.
ENDMODULE.
MODULE display_data OUTPUT.
if sy-ucomm eq 'ENTER'.
"Populate the table control with data in the internal table
endif.
ENDMODULE.
‎2009 Aug 28 9:37 AM
If you are new to SAP , SEARCH in SCN you will get lot of information.
Check these sample programs related to table control.
DEMO_DYNPRO_TABCONT_LOOP
DEMO_DYNPRO_TABCONT_LOOP_AT
‎2009 Aug 28 9:39 AM
hii,
if you are moving values from itab to table control.you can code like this in you chain endchain
SORT ITAB BY Col1 .
DELETE ADJACENT DUPLICATES FROM TABLE ITAB1
COMPARING col1 .
rgrds.
Shweta
‎2009 Aug 28 9:40 AM
hii,
if you are moving values from itab to table control.you can code like this in you chain endchain
SORT ITAB BY Col1 .
DELETE ADJACENT DUPLICATES FROM TABLE ITAB1
COMPARING col1 .
rgrds.
Shweta
‎2009 Aug 28 9:40 AM
HI ,
Search in the SDN with key word table control.You can find lot of answers.
Thanks
‎2009 Aug 28 9:42 AM
Hello Gheerishm,
You must have created module to transfer the data records from tableview to internal table.
check if by any change that module or such mechanism is getting called twice.
Better you debug to find out what's going in PBO and PAI after you press enter button.
By the way when you press enter button the sy-ucomm value is INITIAL.
Hope this helps!
Thanks,
Augustin.
‎2009 Aug 28 9:44 AM
Hi G,
Try to refresh the internal table (e.g. in MODULE status_0100 OUTPUT )
thnx
R
‎2009 Aug 28 9:44 AM
Hi G,
Try to refresh the internal table (e.g. in MODULE status_0100 OUTPUT )
thnx
R
‎2009 Aug 28 9:54 AM
Hi,
Try this
PROCESS BEFORE OUTPUT.
LOOP AT gt_itab1 WITH CONTROL tabcontrol.
MODULE display_data.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE clear_internal_table.
LOOP AT gt_itab1.
MODULE read_data.
ENDLOOP.
MODULEclear_internal_table INPUT.
clear gt_itab1[].
clear gt_itab1.
ENDMODULE.
MODULE read_data INPUT.
if sy-ucomm eq 'ENTER'.
"Populate your internal table
endif.
ENDMODULE.
MODULE display_data OUTPUT.
if sy-ucomm eq 'ENTER'.
"Populate the table control with data in the internal table
endif.
ENDMODULE.
‎2009 Aug 31 8:43 AM
Hi all,
I am very thankful to all of you for having reply to the thread.