2008 Jun 09 4:17 PM
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
2008 Jun 09 4:30 PM
ANy SUggestions.
Ster
2008 Jun 09 4:30 PM
2008 Jun 09 4:35 PM
Check the below blog:
/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap
Seshu
2008 Jun 09 4:50 PM
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
2008 Jun 09 4:54 PM
Hi Ster Ashk,
Please check this link
Dynamic Internal Table
http://www.saptechnical.com/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
Best regards,
raam
2008 Jun 09 5:31 PM
It may be performance issue,but you can do while displying output,here filter output fields based on selection screen fields.
Thanks
Seshu
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |