01-28-2008 4:57 PM
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
01-28-2008 4:58 PM
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.
01-28-2008 4:58 PM
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.