Hi Folks,
I have a requirement where I have to create a PR using a BAPI, BAPI_PR_CREATE.
I have a customer excel file from which I need to get data into internal table and pass it to BAPI for PR creation.
Now the problem I am facing is that excel sheet contains records as:
Top row contains a column as Header- Document type.
Remaining Row/Rows contains Item data- Various fields (Can be 1 row or more rows)
How should I map the excel fields to internal table fields and get data in valid fields. Please help me with this logic.
Please look at the excel sheet in the attachment for clear understanding.
Thanks in advance for helping me out.
Best Regards,
Ankit