Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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 .

Tags:
Former Member
replied

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>

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question