Hi Chaitanya,
i have the same requirements like you.
Can you please help me how you achieved to map all the Idoc segments with the details getting from BAPI "BAPI_PO_GETDETAIL".
Or could you show me your FM that you have changed?
Thanks in advance.
Regards,
Julian