2019 Dec 20 2:29 PM
Hi all,
We have our own transaction where we want to be able to change the "Target value" in a contract (as in transaction VA42).
I have looked around, and all answers for modifying in VA42 revolve around BAPI_SALESORDER_CHANGE or BAPI_CUSTOMERCONTRACT_CHANGE. But none of these has a field of the same type as the field I want to change.
I also tried debugging the transaction by setting a break point on command "CALL FUNCTION" but it takes for ever...
Any help would be appreciated.
2019 Dec 20 2:40 PM
Hi thomasmakkink,
Try this BAPI,
BAPI_CONTRACT_CHANGE
Check in the export parameter you have fields to populate the target Value.
Regards
Hi all,
We have our own transaction where we want to be able to change the "Target value" in a contract (as in transaction VA42).
I have looked around, and all answers for modifying in VA42 revolve around BAPI_SALESORDER_CHANGE or BAPI_CUSTOMERCONTRACT_CHANGE. But none of these has a field of the same type as the field I want to change.
I also tried debugging the transaction by setting a break point on command "CALL FUNCTION" but it takes for ever...
Any help would be appreciated.
2019 Dec 20 2:40 PM
Hi thomasmakkink,
Try this BAPI,
BAPI_CONTRACT_CHANGE
Check in the export parameter you have fields to populate the target Value.
Regards
2019 Dec 20 3:23 PM
Hi,
I don't see it there. Also not sure that that BAPI is for the "type" of contract I'm using. Not exactly sure functionally what kind of contract I'm talking about, maybe it's a sales document.
Anyways, your function module takes PURCHASINGDOCUMENT of type EBELN, but I'm using a SALESDOCUMENT of type VBELN_VA (as in Transaction VA42).
2019 Dec 20 3:45 PM
I am confused - what is wrong with using TARGET_VAL in CONTRACT_ITEM_IN in BAPI_CUSTOMERCONTRACT_CHANGE?
Just convert your variable to the format required by the BAPI.
I used a SE37 sequence and it works just fine...
2020 Jan 02 9:29 AM
2020 Jan 02 5:44 PM
This seems to have been answered, please close the question.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |