cancel
Showing results for 
Search instead for 
Did you mean: 

Table control

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

andreas_mann3
Active Contributor
0 Kudos

Hi,

here's a template (SE38): <b>RSDEMO_TABLE_CONTROL</b>

Andreas

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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