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

Add extra fields in runtime into Internal table structure

0 Likes
792

Hi Experts,

I have requirement

Internal table A (Fields 1,2,3,4,5,6,7)

Internal table B (1,2,3,4,5,6)

Final internal table C (Dynamic Internal table)

Internal table A have 10 records. Append all records of Internal table A to D so now currently D have 7 fields with 10 records.

Internal table B have 20 records in runtime. Now those 20 records of column 5 should be added as additional fields to internal table C starts from 8..28. So finally Internal table C should have 7 + 20 fields as structure.

Fields should be added at runtime into final internal table.

Kindly help.

Thanks

1 REPLY 1
Read only

MateuszAdamus
Active Contributor
671

Hello virgo.rajasekhar1

You can do that using the RTTS. Have a look an examples in one of other questions about the topic: https://answers.sap.com/answers/13344493/view.html

Kind regards,
Mateusz