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

New entry on table control

Former Member
0 Likes
423

Hi Guys,

For long time i did not touched table control. Need your help to refresh my memory.

Im using wizard to create table control. For initial execution my table control contains blank value, problem happen when it can not cater my input populate into ITAB.

Pls comment.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
399

Hi,

In the PAI. do the following..Check the MODULE modify_data.

PROCESS AFTER INPUT.

LOOP AT ITAB.

MODULE MODIFY_DATA.

ENDLOOP.

MODULE MODIFY_DATA.

  • move the values to the internal table header line or a separete work area.

MOVE CORRESPONDING SCREEN_FIELDS TO ITAB.

  • Modify the internal table record...TC will be the table control name..

MODIFY ITAB INDEX TC-CURRENT_LINE.

  • Check the record code.

IF SY-SUBRC <> 0.

  • IF there is no record exists for the current index..append it to the internal table.

APPEND ITAB.

ENDIF.

ENDMODULE.

Hope this is clear..

Thanks,

Naren

Hi Guys,

For long time i did not touched table control. Need your help to refresh my memory.

Im using wizard to create table control. For initial execution my table control contains blank value, problem happen when it can not cater my input populate into ITAB.

Pls comment.

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
400

Hi,

In the PAI. do the following..Check the MODULE modify_data.

PROCESS AFTER INPUT.

LOOP AT ITAB.

MODULE MODIFY_DATA.

ENDLOOP.

MODULE MODIFY_DATA.

  • move the values to the internal table header line or a separete work area.

MOVE CORRESPONDING SCREEN_FIELDS TO ITAB.

  • Modify the internal table record...TC will be the table control name..

MODIFY ITAB INDEX TC-CURRENT_LINE.

  • Check the record code.

IF SY-SUBRC <> 0.

  • IF there is no record exists for the current index..append it to the internal table.

APPEND ITAB.

ENDIF.

ENDMODULE.

Hope this is clear..

Thanks,

Naren