on ‎2021 Apr 08 6:56 PM
Dear experts,
I need to create a contract (VA41 / Service Contract) using a Function Module. I have tried with BAPI_CONTRACT_CREATEFROMDATA and entered basic mandatory parameters to be able to save the document :
Document type ;sales org / division / distribution channel; sales office; sales group
The BAPI returns the following success message :
SALES_HEADER_IN has been processed successfully
SALES_ITEM_IN has been processed successfully
Object XXXXXX (40519482) has been saved.
However, the document is not created on VBAK. If I look for VBELN 40519482 in VBAK, it says "No table entries found for specified key."
I think I am missing a basic thing here. The BAPI returns a sucess with a document number but the document is not created.
Would someone know why?
Thanks a lot,
Anaïs
Request clarification before answering.
For information, this has been resolved.
When using BAPI_CONTRACT_CREATEFROMDATA, it needs to be followed by BAPI_TRANSACTION_COMMIT.
Thus, for a functional point of view, we need to create a sequence in SE37
and then execute the sequence: Execute first BAPI, then F3, then you will get directed to 2nd BAPI that you can execute.
Then, the document is saved in back-end.
Anaïs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 32 | |
| 16 | |
| 7 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.