Skip to Content
avatar image
Former Member

Create change request using the service BusinessPartnerSUITEBulkReplicateRequest_In

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 24, 2017 at 09:00 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 06 at 02:52 PM

    Markus,

    With solution above I can create a change request. But here it is not stopping to update business partner directly in Active area. So though change request is created at same time after creation of change request the business partner data is getting updated in active area. So during processing of change request it is giving warning value is changed in reuse active area. So how can I stop direct update of business partner in reuse active area when change request is created?

    Thanks,

    Anjan Nandy

    Add comment
    10|10000 characters needed characters exceeded