on 2025 Mar 24 5:15 PM
We have a requirement to sent CR status , User details and few other details in BusinessPartnerSUITEBulkReplicateConfirmation_Out when CR is Rejected.
So, how to call this BusinessPartnerSUITEBulkReplicateConfirmation_Out Web service in System Caller Badi and how to modify Webservice note during CR Rejected.
Request clarification before answering.
Hello,
1.)
how to modify Webservice note during CR Rejected.
With the above ask I guess you want to alter the contents of Note property which we have under Log node/entity of BusinessPartnerSUITEBulkReplicateConfirmation_Out , if yes then utilize the below BADI's Method which gets triggered when the BP is successfully replicated and the Confirmation is sent outwards to the caller system.
BADI: MDG_SE_BP_BULK_REPLRQ_IN
Method: IF_MDG_SE_BP_BULK_REPLRQ_IN~OUTBOUND_PROCESSING
the above Structure has the LOG node in that.
2.)
So, how to call this BusinessPartnerSUITEBulkReplicateConfirmation_Out Web service in System Caller Badi
ABAP Class "CO_MDG_BP_RPLCTCO" is the Internal ABAP Class(SE24) artefact for this WebService,
So try calling the same as highlighted below using "LOGICAL_PORT" you would have configured in the SOAMANAGER,
*DATA xxxxxxxx TYPE REF TO CO_MDG_BP_RPLCTCO.
TRY.
CREATE OBJECT xxxxxxxx
* EXPORTING
* destination =
* logical_port_name =
.
CATCH cx_ai_system_fault .
ENDTRY.
*TRY.
CALL METHOD xxxxxxxx->bp_suitebulk_replct_conf
EXPORTING
output =
.
* CATCH cx_ai_system_fault.
*ENDTRY.
Used the below option of ABAP Editor "Pattern" for getting the above code,
Give the above solutions a try.
Thanks,
Sijin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Sijin_Chandran for the reply.
In our case, we need to send the BP confirmation out payload to CPI. So the service call, does create object still work with logical port or calling destination is required?
User | Count |
---|---|
81 | |
12 | |
9 | |
8 | |
8 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.