Skip to Content
author's profile photo Former Member
Former Member

Table Control

Hi All,

I have create one table control. In that I would like to put data into table control and save it into Ztable. I am able to do that but my problem is when I run the program I need automatically generated counter on the table control.And if i insert one record into table control then when I insert next record to the next line the counter must be increment automatically. How to do this? Plz help me.....

Thanks and Regards.

Pradip Pawar.

ABAP

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2007 at 04:42 AM

    Hello Pradip,

    I have understood like : we have a table control and know how to insert lines

    When we are clicking the "insert" an event in PAI is getting triggered and based on which we are enabling the next line

    in this case we have the line number into which we are making the fields as input

    we can utilize this as a basis for counter...when an insert is clicked...increment the counter and remember to reduce it on delete button click

    We can then pass this to PBO..since we have the line number which was just enabled...field for counter can be passed

    <u><i>Pls reward and revert if the solution is feasible and suited for the requirement</i></u>

    Regards

    Byju

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2007 at 02:13 PM

    Hi,

    I suggest when you are Looping Itab in PBO. At that time transfer counter value in Internal Table.

    So when you are adding a Line. It's getting added in to that internal table. It will be automatically added in the ITAB and so it will be displayed after you click any button including Insert or Delete Button.

    Darshan.

    <i><b>Please reward points to helpful answer. It Motivates us to Help Others.</b></i>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2007 at 01:05 PM

    Thanks All For your Valuable contribution.

    Regards.

    Pradip Pawar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.