Hi Vijay,
If we have the key value, we can create the dynamic internal table for the above case. But as per the example shown above there is no combination of key value.
Example:
In below table, one Column 'ROW' Added which is considered as Combination Key Field, it is useful for converting into columns dynamically.
| Internal Table Name | Row | Field Name | Value |
|---|---|---|---|
| itab | 1 | vbeln | 200101 |
| itab | 1 | posnr | 001 |
| itab | 2 | vbeln | 200102 |
| itab | 2 | posnr | 002 |
As per the above example, we can create the dynamic internal table. Please find the link below.
Dynamic Internal Table iIlustrated with an example of creating the transpose of internal table
Regards
Rajkumar Narasimman