Problem with Profitability Segment for a Customer Invoice Posting BAPI

Posted on 2004-11-12
Last Modified: 2013-12-08
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.

Question by:roadcoder
    1 Comment
    LVL 23

    Accepted Solution

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions is a cloud-based customer relationship management (CRM) system. In this article, you will learn how to add and map custom lead and contact fields to your Salesforce instance.
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now