Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Insert new row in a table (in a program)

Former Member
0 Likes
1,165

Hi,

It's possible to add a row to a table in an ABAP program ?

Like an ALTER TABLE or what ? or the user must go to SE11 ?

Thanks !

8 REPLIES 8
Read only

Former Member
0 Likes
1,078

Hi,

You can use INSERT statement inside ABAP program to add a new row in table.

Read only

0 Likes
1,078

Oh I mean a new field.

not a line

Thanks !

Read only

0 Likes
1,078

Hi

Do you mean to change the structure of a table programmacally?

If it's so I suppose it can do it, but it needs to use the suitable fm, anyway why do you need to do it?

It should be better to do it manually in development enviroment

Max

Read only

0 Likes
1,078

Add a

New Field in an internal table - Yes

New filed in a Z table -Yes,using SE11

New field in a SAP Standard table - Yes but requires a ACCESS key and the requirement should be justified enough.

Thanks,

K.Kiran.

Read only

0 Likes
1,078

You can append a field to the standard table by appending a structure...

There is a append button on top of the table. you need no access key for that

Thank you,

Pradeep

Read only

0 Likes
1,078

Yes,

To avoid the user to go to SE11 and do it automatically.

But not a big deal, if he needs to go to SE11

Read only

0 Likes
1,078

Hi

I don't know your issue, but it doesn't seem to be a good idea to do it, you risk to have misalignments between development, quality and production system.

A table should be created by a developer only, not a user

Why the user doesn't have to use SE11?

Max

Read only

0 Likes
1,078

To add himself new fields when I'm gone.