Hi,
We have a requirement where I need to get data using the BAPI "BAPI_REQUIREMENTS_GETDETAIL" and build a dynamic internal table and dynamic field catalog for the data in the output parameter "REQUIREMENTS_OUT" of the type "BAPISITMEO" show the same on an Editable ALV.
The BAPI output ( material data ) is as shown below:
Image may be NSFW.
Clik here to view.
From the above data, the dates in the column REQ_DATE should be transposed and used as column headings; the relevant quantities in the column REQ_QTY should be displayed under the date columns accordingly.
The ALV output should look as shown below:
Some of the materials may not have quantities till 10(as shown below) but the ALV should still have columns for the materials that have the quantities.
Image may be NSFW.
Clik here to view.
How do I create a dynamic field catalog for and an internal table for this. AS per the requirement, the ALV columns could be restricted based on a TVARVC variable in future.
I have seen many threads on dynamic ALV but not on a similar one. Your help is highly appreciated.
Thank you,
Chaitanya