cancel
Showing results for 
Search instead for 
Did you mean: 

Error in BAPI BAPI_ACC_DOCUMENT_POST with vendor field XZEMP

former_member616629
Discoverer
0 Kudos

Hi,

my problem is the same as the one described here:

https://answers.sap.com/questions/6262548/problem-using-bapi-bapiaccdocumentpost-with-vendor.html

The difference in my case is that it doesn't matter if field XZEMP is filled or not, I always receive the error message.

Can someone tell me how to bypass this error?

Thanks in advance and best regards,

Rodrigo

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Post the document using the BAPI and pass X

Later you can call the document change to change the same

vinita_kasliwal
Active Contributor
0 Kudos

Hey Rodrigo

It is not mentioned what error are you getting?

Check the code in here is this how you are calling

https://answers.sap.com/questions/12664800/sample-code-for-posting-outgoing-vendor-payments-d.html

This is how we are using in our system

I also recommed that you do a where used and see how it works

call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = ls_doc_header
importing
obj_type = lv_obj_type
obj_key = lv_obj_key
obj_sys = lv_obj_sys
tables
accountgl = lt_account_gl
currencyamount = lt_curr_amnt
extension2 = lt_extension
return = et_return.

Regards

Vinita