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

Add a Row in Table control

Former Member
0 Likes
551

Hello Abapers

I have a query in ABAP Table controls

where i have a need to add in tbc dynamical one row and suprees that one this is my task.I have tried all possible ways.\

Plz suggest me any solution

Thank Q

Priya

Hello Abapers

I have a query in ABAP Table controls

where i have a need to add in tbc dynamical one row and suprees that one this is my task.I have tried all possible ways.\

Plz suggest me any solution

Thank Q

Priya

3 REPLIES 3
Read only

Former Member
0 Likes
517

u need to add a button and write code that when u press the button, add a row to the table control. Check in <b>ABAPDOCU</b> for better examples.

Read only

Former Member
0 Likes
517

Hi,

Adding a row means you have to append the internal table. Which you are looping in PBO and PAI.

it's possible to add a module in BOTH PBO as well as PAI to do this append task.

PROCESS BEFORE OUTPUT.

LOOP AT IT_TAB_CTRL into WA_TAB_CTRL with control ZTCL.

cursor ZTCL-current_line.

" You can place a module here also to modify or append.

ENDLOOP.

MODULE STATUS_0100.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

LOOP AT IT_TAB_CTRL into WA_TAB_CTRL.

" You can place a module here also to modify or append.

ENDLOOP.

MODULE APPEND_IT. "to append internal table.

Read only

Former Member
0 Likes
517

Hi,

Adding a row means you have to append the internal table. Which you are looping in PBO and PAI.

it's possible to add a module in BOTH PBO as well as PAI to do this append task.

PROCESS BEFORE OUTPUT.

LOOP AT IT_TAB_CTRL into WA_TAB_CTRL with control ZTCL.

cursor ZTCL-current_line.

" You can place a module here also to modify or append.

ENDLOOP.

MODULE STATUS_0100.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

LOOP AT IT_TAB_CTRL into WA_TAB_CTRL.

" You can place a module here also to modify or append.

ENDLOOP.

MODULE APPEND_IT. "to append internal table.

Darshan Patel.