Synchronous Update of Multiple Documents using B1if – For Each B1ic
Insertion/Cancellation of SAP documents using SAP B1ic is an easier one as it involves only one document at a time. Whereas updating multiple SAP documents details is bit complex one as it involves looping the documents inside the processing flow of B1ic.
Let us see it by an example scenario. Here we are going to update A/R Credit Memo’s document’s UDF using “Synchronous Update” method identifier.
The Steps are as follows:
a. Get the list of Credit Memo documents to be updated by an SQL Call or Synchronous Retrieval
b. Result Set in an XForm
c. Assign the result set of the SQL Call or Synchronous Retrieval to a customized XML tag in an XForm
d. In For Loop mention the XPath of the above XForm’s customized tag
e. Add an B1 Object atom, mention the B1 Object Identifier as “Synchronous Update”
f. In the XForm of the B1 Object, place the B1 Schema for the updating the B1 Object.
g. After the “Join” atom , add an XForm, click “Generate”, select “Correct after branch” and “Save” the atom to get consolidated results.