Hi All,
I am creating PO using Bapi : BAPI_PO_CREATE1 from inbound IDoc but facing issue for line item without Material .
I am passing GL and Cost centre but a weird issue I am facing :
lets say there are four items in a PO: 1. Line item with Material
2. Line item with Material
3. Line item without Material but passing GL and Cost Centre
4. Line item without Material but passing GL and Cost Centre
In above scenario GL and cost centre from line item 3 is getting deleted though it is there in line item 4.
So bapi giving error saying enter GL.
While debugging I found that one FM 'MEPO_DOC_ITEM_ACCOUNTS_ID_GET' is called and in that another function pool is called for getting ID in that there is internal table 'KNT' in that line items are there but information is deleted from line item 3 like GL, Cost Centre.
Please experts need suggestions.
Thanks & Regards,
Soham Zendekar.