Beruflich Dokumente
Kultur Dokumente
Processing Atom
Call B1 Service
Table of Contents
1 Parameters ............................................................................................................................. 2
2 Functions ................................................................................................................................ 5
3 Accessing User-Defined Objects ............................................................................................. 7
3.1 Example for a User-Defined Object in SAP Business One ................................................ 7
3.2 Settings for the GeneralService Object .............................................................................. 8
3.3 Defining Parameters in the Predecessor Transformation Atom ......................................... 9
Copyrights, Trademarks, and Disclaimers .................................................................................11
Call B1 Service
In the process flow, use the call B1 service atom to call a service in SAP Business One.
The functional atom call B1 service is of type complex call or conversion atom. You need a
predecessor transformation, which prepares the data that the integration framework sends or
retrieves in a service call to SAP Business One.
1 Parameters
Scenario Step Identifier
This is a read-only field. It displays the name of the scenario step for which you develop the
process flow.
Atom Identifier
This is a read-only field. It displays the name of the open processing atom. The name is unique
and the integration framework generates it during creation of the atom. The atom name consists
of atom<no> where <no> is a unique number. This name is very important. It is the identifier for
subsequent atoms to access data produced by this atom using the XPath expression, for
example /vpf:Msg/vpf:Body/vpf:Payload[./@id=atom2]/*.
Public
2014 SAP SE or an SAP affiliate company.
All rights reserved
Description
The integration framework generates the description during atom creation. It serves as a
comment describing the atom task. You can modify the description. In the graphical flow, the
framework displays it on mouse move. You can also use it to change the default label which the
integration framework displays in the atom. At the end of your description add the new label in
squared brackets. For example the framework displays the string this is my comment[my Label]
as my Label in the atom. You have 10 digits for your label.
SysId
Select the system you want call using SQL.
A leading # indicates an explicit value, for example #0010000105 calls the system that has
SysID 0010000105 in the SLD. If you use an explicit SysId from SLD, make sure that later at
runtime, the system is the same to ensure the same SysId. Using the explicit value (with leading
#), you can also use variables and properties.
For more information, click the
Request Structure
Define the name of the request structure. For more information, see the SAP Business One DI
API documentation.
Public
2014 SAP SE or an SAP affiliate company.
All rights reserved
Request Keys
Define the key names of the request method. For more information, see the SAP Business One
DI API documentation.
Payload
Enter the identifier of the XSL transformation atom that contains the payload.
2 Functions
The integration framework provides context-based documentation. If documentation is available,
the integration framework displays the documentation icon. The greyed out icon indicates still
missing documentation. To open documentation, click the icon.
To open documentation that describes the concepts of variables and properties and how to use
them in the context of the process development, click the button.
[Save]
To save the current parameter definitions of the processing atom, click the [save] button. The
integration framework stores all settings in the process flow definition document (vBIU.bfd). To
open the document, click the
icon on the start atom of your flow.
[VarL]
To add, change or delete local variables, click the button. Local variables are only relevant for
the scenario step they are defined in. In the scenario step all atoms can use them. You can
assign fixed literals or an XPath which runs against the incoming message at runtime before the
system calls the process flow. In the process flow the value is fixed and you cannot change it.
You can use local variables in your XSL coding or in the parameter definition for atoms. For
more information, click the
button
[VarG]
To add, change or delete global variables, click the [VarG] button. Global variables are valid for
all scenario steps of a scenario package. In the scenario steps all atoms can use them. You can
assign fixed literals or an XPath which runs against the incoming message at runtime before the
system calls the process flow. Inside the process flow the value is fixed and you cannot change
it. You can use the global variables in your XSL coding or in the parameter definition for atoms.
For more information, click the
button
[Generate Schema]
To generate the service-specific schema into the predecessor XSL document, which is
applicable for all methods that require a request document (insert and update methods), click
the [Generate Schema] button. It is a prerequisite that you have defined the Service Identifier
and the Payload parameter. The generation is based on the schema definition in the integration
framework repository.
Public
2014 SAP SE or an SAP affiliate company.
All rights reserved
The schema definition is not part of the integration framework installation. To generate it based
on your individual SAP Business One system, select Maintenance Cfg Metadata
[Generate Now]. Enter the reference system in the Reference B1 System field. To avoid
overwriting your coding in the XSL document of the predecessor transformation, the generation
creates an XSL template with the <xsl:template
name="B1if.object.schema.objectname"/> schema definition. In the template, you find
the complete schema. Remove parts, you do not need. The integration framework generates
information of the SAP Business One schema definition (XSD), such as type, field information,
enumeration, and so on, into the body of the elements or generates them as comments. If you
want to use the template, call the template inside your transform template using <xsl:calltemplate name="B1if.object.schema.objectname"/>.
[Help]
To display information about the services of SAP Business One, click the [Help] button. This
information is based on the metadata in the integration framework repository.
[Parameter Template]
To display the parameters structure of the method, click the button.
[Close]
To close the user interface of the atom, click the [Close] button.
Public
2014 SAP SE or an SAP affiliate company.
All rights reserved
Table Name
MYUDOHEADER
MYUDOLINE
Description
My UDO Header
My UDO Line
Object Type
Master Data
Master Data Rows
Field Value
MyUDO
MyUDOName
Master Data
MYUDOHEADER
Editable
yes
yes
yes
yes
Column Alias
Code
U_CreationDate
U_Description
Name
DocEntry
Canceled
Object
Column Description
Code
Creation Date
Description
Name
DocEntry
Canceled
Object
Editable
yes
yes
Column Alias
Code
LineId
U_Address
U_Contact
Object
LogInst
Public
2014 SAP SE or an SAP affiliate company.
All rights reserved
Column Description
Code
LineID
Address
Contact
Object
LogInst
Request Structure
The integration framework sets the following: #???Params
Replace the question marks with the name of the user-defined object:
<YourUserDefinedObjectName>
Example: #MyUDONameParams
Request Keys
Enter the key field name that corresponds to the key for the user-defined object. For the add
method leave the field empty, or enter #x.
For the master data user-defined object type, use the #Code request key. For a document userdefined object type, use the #DocEntry request key.
Key Values
Enter the value of the request key field for which you want to get, update or delete data. For the
add method leave the field empty, or enter #x.
Public
2014 SAP SE or an SAP affiliate company.
All rights reserved
In the predecessor transformation atom, provide the parameters and the payload in the
following way, for example:
<Envelope xmlns="">
<Header>
<Action DIServiceName="GeneralService" update="update"
get="getByParams" throwException="false">update</Action>
</Header>
<Body>
<BS ServiceCode="MyUDO">
<GetOrDelete>
<xsl:element name="MyUDONameParams">
<xsl:element name="Code">xxx</xsl:element>
</xsl:element>
</GetOrDelete>
<InsertOrUpdate>
<xsl:element name="MyUDONameParams">
<xsl:element name="Code">xxx</xsl:element>
<xsl:element name="Name">xxx</xsl:element>
...
</xsl:element>
</InsertOrUpdate>
</BS>
</Body>
</Envelope>
Public
2014 SAP SE or an SAP affiliate company.
All rights reserved
10
Public
2014 SAP SE or an SAP affiliate company.
All rights reserved
11