SK SKYVVA Documentation

3. How to Update a business Object SAP BusinessPartner in SAP Business One?

Learning Objectives:- This unit describes:-

Introduction:

In this tutorial, we will learn How to update a Business partner object in SAP Business one using operation PATCH in SAP business one Adapter. As we knew already, to Update the records of the Business Partner module in the SAP Business One Client Application. Still, in the Business Partner module, we need to know the card code, and we need to using PATH Parameter to Update the record in Business Partner. For Update the record of BusinessPartner in SAP Business One, we need the request Interface. We can process data manually and scheduler to know detail about How to run the outbound interface manually or scheduler please follow this link: #article/129-how-to-run-the-outbound-interface-through-the-manually-or-scheduler

Pre-required:

Step 1: Create Integration: To know detail about Integration, please follow this tutorial. What is Integration, and How to use it? 

Step 2: Create Connection Destination SAP Control Board.

Step 3: Create Metadata SAP by using SAP Import Metadata. [su_box title="Note" box_color="#2a8af0" title_color="#000000"] We need to create Metadata Provider and a Repository. [/su_box] Follow this link to see detail about How to use and create Metadata Provider and Repository.

[su_box title="Note" box_color="#2a8af0" title_color="#000000"]Copy the URL of module order that we choose for using in API endpoint on Adapter. [/su_box]

After that, we will see the message type object Business Partner.

Go to Query Parameter Message Type in URL Message Type of Request Message Type and then click Query Parameter. See the example below.

Step 4: Create Outbound Interface and Linked with this message type.

In this step, we can use mapping by  Instance value and Dynamic Value. When salesforce records have a value of card code already, we need to map the field to field in Query Parameter. Here's an example. We have field SAP_ID that stores the value of business partners, so we need to map that field to target fields of CardCode in Query Parameter.

Step 5: Create SAP Business One Adapter on SAP control Board.

If we select “Return Salesforce Id into the response” then the Salesforce Id will come in the Response interface. • Go to Request Interface and Linked this adapter. • Here’s an example.

Step 6: Callout data by using Manual Process.

Summary

Finally, we have learned how to update the record from salesforce to SAP Business One Application using operation PATCH in SAP Business one Adapter. The next section will learn how to Delete Business Partner using Operation Delete in SAP Business One Adapter.

Open this article in the interactive viewer →