09-17-2008 7:39 AM
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?
09-17-2008 7:42 AM
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.
09-17-2008 7:42 AM
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.
09-17-2008 7:51 AM
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
09-17-2008 7:52 AM
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.
09-17-2008 7:49 AM
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.
09-17-2008 8:12 AM
initialy in PBO use
data : count .
count = count + 1.
tc-lines = count.