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

Table control

Hi

I am new to ABAP. I have a few doubts on table COntrol.I am in search of the Best Practises to be followed.

1) Should we always map the Table control to a Structure or an Internal table.

2) Whenever i key in Data for a line in Table control and hit enter key, the contents vanish.

Can anyone send me a Template of the source code of how it needs to be handled.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 09:37 AM

    hai,

    see always when you you make use of internal table it would be easier if you maintain the same structure of what you have declared in the program.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I agree with Kumar. If you are doing single / multiple record(s) select it will be very easy for you.

      For your second question :-

      Yes you can read the changes made in table control in PAI event.

      If got the answer kindly reward points.

      Regards,

      Dilip

      Message was edited by: Diliip Gupchup

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 09:51 AM

    Hi,

    >>2) Whenever i key in Data for a line in Table control >>and hit enter key, the contents vanish.

    In the PBO of the screen, ensure that the data is being passed to the screen fields.

    Further help would be possible only if you send across your code.

    Sudha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 09:53 AM

    Hi

    Like in the PAI, i should read the internal table. If the line in the table control is present in that Internal table, then i should modify the content or else i should append the line to the internal table.

    I dont have any source code. Can you send accross code snippet for the table control PBO and PAI module

    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.