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

table control data got refreshed on pressing enter

Former Member
0 Likes
860

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
779

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

4 REPLIES 4
Read only

Former Member
0 Likes
779

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

Read only

Former Member
0 Likes
780

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.

.........................

Read only

Former Member
0 Likes
779

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

Read only

Former Member
0 Likes
779

Thanks for all your replies my issue got solved.

Regards

Bikas