Problem with Profitability Segment for a Customer Invoice Posting BAPI

Someone posted this earlier, and I'm having the same problem

"I try to post customer invoices using the BAPI BAPI_ACC_INVOICE_RECEIPT_POST but when called, it returns an error: 'Field Prof.segmt is a required field for G/L account...'. How do I specify this profitability segment in the SAP Request?  "

Someone replied that they needed to fill in values for the Criteria parameter (BAPIACKECR), which I list below with their dictionary descriptions:

ITEMNO_ACC  - Accounting  document line item number
FIELDNAME     - Field name
CHARACTER    - Characteristic (concrete use ===> EDIMAP)

I pass the following (using the Java Connector, for what it's worth):

CHARACTER    = "1000"

When I pass these values I no longer see the error message above, but the values are not stored in the profitability segment.   When I do this manually through FB60, (that is, the value '1000' placed in the 'KNDNR' field for the second line item) it works fine.  

Has anyone been able to use this feature?  What does "EDIMAP" refer to?  What am I supposed to place in that field?  I've tried padding with zeroes, changing the ITEMNO_ACC to different values, and still have no success.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Your COPA setting fields and values should be passed on to the structure BAPIACKECR

See the function module ' BAPI_ACC_BILLING_POST'.  and tables   CRITERIA which has structure of  BAPIACKECR. Now in this you should pass the values for fields of your COPA operating concern.

Structure of  CRITERIA  is as follows.

ITEMNO_ACC     " Accounting document line item number
FIELDNAME        "Field name
CHARACTER      " Characteristic (concrete use ==> EDIMAP)

I hope this will help you.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Enterprise Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.