‎2009 Dec 04 6:12 AM
Hi experts,
I have created module pool with table control. I have one problem.
When we start the run the program only first 10 lines are visible to user.
When user enters 10 entries and press the ENTER key in table control the first five entries should be hide and at the five blank lines visible for user.
Can you please tell me how to implement this logic?
Thank you in advace.
‎2009 Dec 04 6:26 AM
Hi Ruchit,
In PBO,
MODULE STATUS_100.
LOOP AT ITAB WITH CONTROL TC.
ENDLOOP.
in Program.
MODULE status_100.
DESCRIBE TABLE ITAB LINES tc-lines.
IF tc-lines = 0.
tc-lines = 10.
ELSE.
tc-lines = tc-lines + 5.
ENDIF.
ENDMODULE.Cheerz
Ram
‎2009 Dec 04 6:26 AM
Hi Ruchit,
In PBO,
MODULE STATUS_100.
LOOP AT ITAB WITH CONTROL TC.
ENDLOOP.
in Program.
MODULE status_100.
DESCRIBE TABLE ITAB LINES tc-lines.
IF tc-lines = 0.
tc-lines = 10.
ELSE.
tc-lines = tc-lines + 5.
ENDIF.
ENDMODULE.Cheerz
Ram
‎2009 Dec 04 6:48 AM
In PBO, check the number of lines that are to be diplayed in the internal table.
IF all are initial then diplay all the 10 lines else display 5 blank lines more. use tc-lines variable fot his.
Hope you understand it.