Skip to Content
0

Create change request using the service BusinessPartnerSUITEBulkReplicateRequest_In

Feb 10, 2017 at 08:38 AM

200

avatar image

Hi,

I am using the web service BusinessPartnerSUITEBulkReplicateRequest_In to create a BP in MDG. This service is directly creating the business partner but I want to create change request first. I made the change in DRF configuration as storage type to staging but still it is creating directly BP without change request.

May I know how can we create change request from the web service.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Markus Greutter Mar 24, 2017 at 09:00 AM
0

Hi,

you can implement BAdI MDG_SE_BP_BULK_REPLRQ_IN.

In method IF_MDG_SE_BP_BULK_REPLRQ_IN~INBOUND_PROCESSING you can set eg. the attributes 'PROXY_PERSISTANCE' and 'CHANGE_REQUEST_TYPE':

DATA:
      lt_user_setting TYPE mdg_user_proxy_setting_t.

APPEND INITIAL LINE TO lt_user_setting ASSIGNING FIELD-SYMBOL(<user_setting>).
<user_setting>-field_name  = 'PROXY_PERSISTANCE'.
<user_setting>-field_value = '1'. "1-write to staging, 2-primary persistence, 3-to staging in case of error

APPEND INITIAL LINE TO lt_user_setting ASSIGNING <user_setting>.
<user_setting>-field_name  = 'CHANGE_REQUEST_TYPE'.
<user_setting>-field_value = 'ZCRTYPE'.

cl_mdg_bp_bupa_si_in=>if_mdg_upload_proxy~setup_for_file_upload(
  EXPORTING
    iv_instance      = 1
    it_user_setting  = lt_user_setting
).

Don't be confused. The inbound processing re-uses some functionality of the file upload here.

Best regards,
Markus

Share
10 |10000 characters needed characters left characters exceeded