Skip to Content
avatar image
Former Member

Hi All How 2 add empty record to table control

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 .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 21, 2007 at 11:08 AM

    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>

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 21, 2007 at 10: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

    Add comment
    10|10000 characters needed characters exceeded