Application Development 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: 

Table Control

Former Member
0 Kudos

hi all,

I create a table control for input by using table

control wizard my problem is when i press enter after

entering some records the records are deleted these

are not there in the table control what to do plzz

help me it's urgent

thanks

prasad

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Prasad,

When you create table controby using table control wizard the SAP automatatically generaters the code in the add this below

code in this

*Modify statement is already there you can add insert statement like this. I think the code will solve your problem.

> MODULE enter_modify INPUT.

>

> MODIFY it_timesheet

> FROM fs_timesheet

> INDEX enter-current_line.

>

> IF sy-subrc NE 0 AND

> fs_timesheet IS NOT INITIAL.

> INSERT fs_timesheet

> INTO it_timesheet

> INDEX enter-current_line.

> ENDIF. " IF SY-SUBRC NE 0 AND FS_TIME...

>

> ENDMODULE. " ENTER_MODIFY

Plzz reward if it is useful,

Mahi.

1 REPLY 1

Former Member
0 Kudos

Hi Prasad,

When you create table controby using table control wizard the SAP automatatically generaters the code in the add this below

code in this

*Modify statement is already there you can add insert statement like this. I think the code will solve your problem.

> MODULE enter_modify INPUT.

>

> MODIFY it_timesheet

> FROM fs_timesheet

> INDEX enter-current_line.

>

> IF sy-subrc NE 0 AND

> fs_timesheet IS NOT INITIAL.

> INSERT fs_timesheet

> INTO it_timesheet

> INDEX enter-current_line.

> ENDIF. " IF SY-SUBRC NE 0 AND FS_TIME...

>

> ENDMODULE. " ENTER_MODIFY

Plzz reward if it is useful,

Mahi.