2008 Nov 21 9:03 AM
Hi,
I have created a table control if I enter some data in the table control and press enter the screen got refreshed how to handel it ?
Regards
Bikas
2008 Nov 21 9:18 AM
PROCESS AFTER INPUT.
LOOP AT ITAB_TBC.
MODULE EXTRACT_USERDATA.
ENDLOOP.
MODULE EXTRACT_USERDATA INPUT.
CASE SAVE_CODE.
WHEN 'ENTE'.
MODIFY ITAB_TBC INDEX TCL-CURRENT_LINE.
IF SY-SUBRC NE 0.
APPEND ITAB_TBC.
ENDIF.
.........................
Hi,
I have created a table control if I enter some data in the table control and press enter the screen got refreshed how to handel it ?
Regards
Bikas
2008 Nov 21 9:08 AM
HI,
in PAI
loop at itab.
**here write a module to pass the data from screen to program
module modify_tc.
endloop.
within this module.
module modify_tc.
describe table itab lines tc-lines.
if tc-current_line > tc-lines.
append itab.
else.
modify itab.
endif.
endmodule.
by doing this the data from screen to program gets transferred.
also check any refresh statements in your program.
regards
Ramchander Rao.K
2008 Nov 21 9:18 AM
PROCESS AFTER INPUT.
LOOP AT ITAB_TBC.
MODULE EXTRACT_USERDATA.
ENDLOOP.
MODULE EXTRACT_USERDATA INPUT.
CASE SAVE_CODE.
WHEN 'ENTE'.
MODIFY ITAB_TBC INDEX TCL-CURRENT_LINE.
IF SY-SUBRC NE 0.
APPEND ITAB_TBC.
ENDIF.
.........................
2008 Nov 21 9:42 AM
Let ITAB be the internal table whose data is displayed in table control.
In PAI.
LOOP AT ITAB.
MODULE GET_TC_TO_ITAB.
ENDLOOP.
In the Module GET_TC_TO_ITAB write below code.
MODIFY ITAB INDEX TC-CURRENT_LINE." where TC is ur Table control name
2008 Nov 21 9:45 AM