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

ABAP Querry

Former Member
0 Likes
796

Hello friends,

I have 2 questions.

1 - I have to create internal Table Dynamically. The table name comes from the selection screen.

2 - I have to create a Internal tables dynamically for some fields and the fileds would also come from the selection screen.

In this case the selection screen would have an input for the field name. However the fields would be from the same table as mentioned in question 1.

Any ideas,

Thanks,

Ster

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
773

ANy SUggestions.

Ster

ANy SUggestions.

Ster

5 REPLIES 5
Read only

Former Member
0 Likes
774

ANy SUggestions.

Ster

Read only

0 Likes
772

Check the below blog:

/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap

Seshu

Read only

0 Likes
772

Thanks Seshu,

I am having problems for creating an internal table only for some fields based on the selection screen.

For Eg

Example 1,

the table in selection screen is VBAP, and the fields are VBELN and POSNR are entered in Selection screen.

So my requirement is ITAB1 which would have the structure of VBAP and ITAB2 only with 2 fields.

Example 2,

the table in selection screen is VBAP, and the fields are VBELN, POSNR, MATNR, MATWA are entered in Selection screen.

So my requirement is ITAB1 which would have the structure of VBAP and ITAB2 only with 4 fields.

Any Suggestions.

Ster

Read only

0 Likes
772

Hi Ster Ashk,

Please check this link

Dynamic Internal Table

http://www.saptechnical.com/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm

Best regards,

raam

Read only

0 Likes
772

It may be performance issue,but you can do while displying output,here filter output fields based on selection screen fields.

Thanks

Seshu