The new SAP way will move from IDOC to EnterpriseServices.

A good case is the Vendor (BusinessPartner) Interface on S4. There it is a must.

 

On SAP side, you will easily find the description of the Service.

But how to fulfil the wonderful big xml-structure?

 

This example shows the field combination for creation of supplier.

On PI side you need the FOUNDATION SC and create a normal SOAP (XI3.0) Scenario to ERP.

 

One hint: in general, all of us will have problems to understand the inbound requirements for the proxy class. So a easy way is to create a outbound as first and check the payload on ERP by using SXMB_MONI.

 

The UUID is mandatory but most Sender can not provide this in the Input message.

We use the PI message id:

 

If you want to enable MDG you have to do the MDG customizing and enable the BADI.

The ESR Web Service used to create a Business Partner in our scenario is called BusinessPartnerSUITEBulkReplicateRequest_In. In order to leverage this Web Service to automatically create a change request and key-mapping in SAP Master Data Governance , the method INBOUND_PROCESSING of BAdI MDG_SE_BP_BULK_REPLRQ_IN in Enhancement Sport MDG_SE_SPOT_BPBUPA has to be implemented.

 

IF_MDG_SE_BP_BULK_REPLRQ_IN~INBOUND_PROCESSING

METHOD if_mdg_se_bp_bulk_replrq_in~inbound_processing.   DATA ls_user_setting TYPE mdg_user_proxy_setting.   DATA lt_user_setting TYPE mdg_user_proxy_setting_t.   DATA lv_crtype TYPE mdg_sup_change_req.   if in-message_header-business_scope-id-content = ‘Value-From-Payload’.     ls_user_setting-field_name = ‘PROXY_PERSISTANCE’.     ls_user_setting-field_value = ‘1’.     APPEND ls_user_setting TO lt_user_setting.     ls_user_setting-field_name = ‘SUPPLIER_CHANGE’.     SELECT SINGLE usmd_creq_type INTO lv_crtype FROM usmd1601 WHERE usmd_process = ‘SUP1’. *     ls_user_setting-field_value = lv_crtype.     APPEND ls_user_setting TO lt_user_setting.     CALL METHOD cl_mdg_bp_bupa_si_in=>if_mdg_upload_proxy~setup_for_file_upload       EXPORTING         iv_instance      = 1 *       IO_UPLOAD_DIALOG =         it_user_setting  = lt_user_setting.   endif. ENDMETHOD.

For copy the payload:

<?xml version=”1.0″ encoding=”iso-8859-1″?>
<ns0:BusinessPartnerSUITEBulkReplicateRequest xmlns:ns0=”http://sap.com/xi/SAPGlobal20/Global”><MessageHeader></MessageHeader><BusinessPartnerSUITEReplicateRequestMessage><MessageHeader><SenderBusinessSystemID>DGU</SenderBusinessSystemID></MessageHeader><BusinessPartner actionCode=”04″ addressInformationListCompleteTransmissionIndicator=”true” commonListCompleteTransmissionIndicator=”true” roleListCompleteTransmissionIndicator=”true”><UUID>2ddc506a-ed5c-11e6-b9ba-00000044b98e</UUID><InternalID>2ddc50</InternalID><CategoryCode>2</CategoryCode><NumberRangeIntervalBusinessPartnerGroupCode>BP3P</NumberRangeIntervalBusinessPartnerGroupCode><Supplier><InternalID>2ddc50</InternalID></Supplier><AddressInformation actionCode=”04″ addressUsageListCompleteTransmissionIndicator=”true”><Address actionCode=”04″ addressNoteListCompleteTransmissionIndicator=”true” emailListCompleteTransmissionIndicator=”true” facsimileListCompleteTransmissionIndicator=”true” organisationNameListCompleteTransmissionIndicator=”true” personNameListCompleteTransmissionIndicator=”true” postalAddressListCompleteTransmissionIndicator=”true” telephoneListCompleteTransmissionIndicator=”true” webListCompleteTransmissionIndicator=”true”><CommunicationPreference><CorrespondenceLanguageCode>EN</CorrespondenceLanguageCode></CommunicationPreference><Email actionCode=”04″ eMailUsageListCompleteTransmissionIndicator=”false”><URI>daniel.guentner@bmtg.ch</URI><ValidityPeriod><StartDate>2000-01-01</StartDate><EndDate>2099-01-01</EndDate></ValidityPeriod></Email><Facsimile actionCode=”04″ facsimileUsageListCompleteTransmissionIndicator=”false”><Number><SubscriberID>+41 71 688 87 87</SubscriberID><CountryCode>CH</CountryCode></Number><ValidityPeriod><StartDate>2000-01-01</StartDate><EndDate>2099-01-01</EndDate></ValidityPeriod></Facsimile><PostalAddress actionCode=”04″><CountryCode>CH</CountryCode><CityName>Bottighofen</CityName><StreetPostalCode>8598</StreetPostalCode><StreetName>Mueligaessli 1</StreetName></PostalAddress><Telephone actionCode=”04″ telephoneUsageListCompleteTransmissionIndicator=”false”><Number><SubscriberID>+41791033553</SubscriberID><CountryCode>CH</CountryCode></Number><ValidityPeriod><StartDate>2011-01-01</StartDate><EndDate>2019-01-01</EndDate></ValidityPeriod><MobilePhoneNumberIndicator>false</MobilePhoneNumberIndicator><TelephoneUsage actionCode=”04″><Usage><Code>AD_NMBDEFA</Code><ValidityPeriod><StartDate>2000-01-01</StartDate><EndDate>2099-01-01</EndDate></ValidityPeriod></Usage><DefaultIndicator>true</DefaultIndicator></TelephoneUsage></Telephone><Web actionCode=”04″ webUsageListCompleteTransmissionIndicator=”false”><URI>http://bmt-consulting.ch</URI><URITypeCode>HPG</URITypeCode></Web></Address></AddressInformation><Common actionCode=”04″><Organisation><Name><FirstLineName>BMT AG</FirstLineName></Name></Organisation></Common><Role actionCode=”04″><RoleCode>FLVN00</RoleCode></Role><Role actionCode=”04″><RoleCode>FLVN01</RoleCode></Role></BusinessPartner></BusinessPartnerSUITEReplicateRequestMessage></ns0:BusinessPartnerSUITEBulkReplicateRequest>

 

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply