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 in module pool

Former Member
0 Kudos

Hi I have created a table control using table control wizard and specified internal table as IT_BOQ and work area as WA_BOQ in the wizard.After entering the data If the user press the save button then the data should get stored in the Ztable.My problem is Iam not getting the data wich is entered in the table control.I have checked the work area WA_BOQ is empty and the internal table IT_BOQ also empty,so where the data is wich I have entered in the table control?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

U will have to append data to internal table in PAI

Between(write this code)

LOOP

Modify itab index TC-Current_line.

If sy-subrc ne 0.

append itab.

endif.

ENDLOOP.

5 REPLIES 5

Former Member
0 Kudos

U will have to append data to internal table in PAI

Between(write this code)

LOOP

Modify itab index TC-Current_line.

If sy-subrc ne 0.

append itab.

endif.

ENDLOOP.

0 Kudos

hi,

PROCESS BEFORE OUTPUT.

LOOP AT dyn_1211items WITH CONTROL tc_1211

CURSOR tc_1211-current_line.

MODULE event_pbo_01

ENDLOOP.

PROCESS AFTER INPUT.

LOOP AT dyn_1211items.

MODULE event_pai_001.

ENDLOOP.

MODULE event_pai_001.

endmodule

0 Kudos

Thanks Aplesh u have solved my problem.I have one more Q,I want to input enable only first line of the table control befroe displaying the screen itself so that the user can enter only in one row,after he will press enter and then second row should input enable and remaining will be output only.Thanks in advance.

Former Member
0 Kudos

PROCESS AFTER INPUT.

LOOP .

.

MODULE tctrl_indir_modify.

ENDLOOP.

module tctrl_indir_modify INPUT.

MODIFY g_tctrl_indir_itab

FROM g_tctrl_indir_wa

INDEX tctrl_indir-current_line.

endmodule.

Former Member
0 Kudos

initialy in PBO use

data : count .

count = count + 1.

tc-lines = count.