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
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.
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.