‎2010 Aug 12 1:46 PM
Hi Experts,
I'm using the BAPI BAPI_ACC_INVOICE_RECEIPT_POST to post the Vendor invoice
few documents are getting posted, but for few documents (which has P&L accounts), the BAPI is returning the message "Field Prof.Segmt is a required field for G/L accou is a required field for G/L account".
I believe the profitability segment will derived with the combination of PROFIT CENTER, VALUATION TYPE and DESTINATION COUNTRY.
I'm not able to find a field in the internal tables (parameters for BAPI) to pass Destination country to BAPI.
Please help in fixing this problem.
Thanks in Advance
Nivash
‎2010 Aug 12 1:51 PM
‎2010 Aug 12 1:51 PM
‎2010 Aug 17 11:53 AM
Hi Raj, thanks for your reply.
I just checked with my functional consultant doing the actions, which are mentioned in the thread. But it will affect the functionality what the customer want.
We found an alternate way for that. For deriving the Profitability Segment three fields are required (Profit segment, Valuation type and Destination country). I'm able to pass the Profit center and the Valuation type through the parameters of the BAPI_ACC_INVOICE_RECEIPT_POST, but not able to pass the Destination country.
By using the Extension and implementing the User Exit inside the BAPI I can populate the Destination country field to the LANDL of the internal table IT_ACCIT.
This solved my problem.