2012 Dec 06 8:26 AM
Hello,
The server has two client "400" and "801".
I am able to create a "Sales Contract " from BAPI in same client,
I have a situation in which BAPI for "Sales Contract" is executed on client 400 and "Sales Contract" needs to be created in Client '801'
Regards,
Sarthak
2012 Dec 06 8:57 AM
Hi Sarthak,
You can define Client 801(ex:CLNT801) in Abap Connections of SM59,
and call BAPI for this destination in client 400.
CALL FUNCTION 'BAPI_SALES_CONTARCT_?????' DESTINATION 'CLNT801'.
if sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'CLNT801'.
else.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK' DESTINATION 'CLNT801'.
endif.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |