Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_INVOICE_RECEIPT_POST

Former Member
0 Likes
898

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
728

Hi Nivash,

I had checked through the threads long time back and solved the issue of mine.

I am pasting here the thread that helped me to solve.

[;

2 REPLIES 2
Read only

Former Member
0 Likes
729

Hi Nivash,

I had checked through the threads long time back and solved the issue of mine.

I am pasting here the thread that helped me to solve.

[;

Read only

0 Likes
728

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.