Skip to Content
author's profile photo Former Member
Former Member

BAPI_ACC_DOCUMENT_POST

Hello Everyone,

I am a new to WD ABAP but worked on WD JAVA before, so I have developed an application that allows us to post an accounting document using BAPI_ACC_DOCUMENT_POST. By following few tutorials and the ABAP documentation in SAP help I managed to create an application for this.

But, I am struck at one point where the field(attribute) "AMT_DOCCUR" of the "CURRENCYAMOUNT" node is not accepting a '-' sign in the inputfield and it is giving an error message stating "The sign in invalid" as shown in the below screenshot. Then I realised that the Domain of that field is not allowing us to enter negative values in to this field.

The Sign is Invalid

http://i31.tinypic.com/15zh4qg.jpg

Now, if I dont give a negative value to the line item of the Accountspayable item it throws an error message stating "Balance in transaction currency" as shown in the below screenshot. Please have a look.

http://i30.tinypic.com/25khmbs.jpg

Now, I haven't got a clue about what to do next to resolve this issue. I hope you can understand my problem. Let me know if you need more clarification. I would appreciate your help.

Regards,

Gopal.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2009 at 06:07 AM

    Hi,

    Canyou give the domain/DE for those feilds.

    Can you be more clear on your requirement.

    Regards,

    Lekha.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Lekha,

      Thanks a lot for your help. In that case How come, it is accepting the "-ve" value while I am testing the BAPI in SE37. I have always given "-ve" value to the that field in the CURRENCYAMOUNT Table. It never did any error message. I have even done the same in WD JAVA and even passed a "-ve" sign directly into the field and didn't return any error message and posted the document successfully. But, it is not working in WD ABAP. Do you understand what I mean?

      Regards,

      Gopal.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.