08-21-2007 11:56 AM
Hi All,
If my table control has 10 records , and I want to add an empty record when i click a push button for that what is the procedure to do it. please send me the source code for that its Urgent.
Thanks&Regards.
Bharat Kumar .
08-21-2007 12:08 PM
Hi..
In the PBO Module which is called before the LOOP on Table control .
Give the code like this..
DESCRIBE TABLE ITAB.
if OK_CODE = 'ADD'.
TABCON-LINES = SY-TFILL + 1.
ELSE.
TABCON-LINES = SY-TFILL .
ENDIF.
This will give the Additional line always when you click the ADD(some) button.
<b>Reward if Helpful</b>
08-21-2007 11:59 AM
Hi,
In the PAI module that you call on this push button, just append a empty record to the itab as follows.
APPEND INITIAL LINE TO itab.
Then this emplty line will be shown to the user as PBO will pck up the updated itab.
Regards,
Sesh
08-21-2007 12:08 PM
its not workingwith the statement which u have given :
Append lines
08-21-2007 12:08 PM
Hi..
In the PBO Module which is called before the LOOP on Table control .
Give the code like this..
DESCRIBE TABLE ITAB.
if OK_CODE = 'ADD'.
TABCON-LINES = SY-TFILL + 1.
ELSE.
TABCON-LINES = SY-TFILL .
ENDIF.
This will give the Additional line always when you click the ADD(some) button.
<b>Reward if Helpful</b>