ENUMERATIONS in SAP PI 7.1/7.0

By Madhusree Nagalla, Yash Technologies

Issue: While consuming a Web service that is provided by SAP PI 7.1/7.0, external application program that consumes the web service need to get the values for particular field restricted with list of values.

For example: For Country_Code field in outbound structure I need restricted 20 country codes (where my business is operative) and I want Country_Code field value to be in CAPs. Like IND, USA, AUS etc…

Consider creation of a customer in External System, and it is using web service generated by SAP PI, and updating customers in SAP ECC. The user must select only restricted company code values or a reconciliation account provided in the drop down as per their company.

In order to achieve this feature, PI 7.1/7.0 has provided us with data type enumeration in XSD Editor while creating Data Types.

Enumeration

Definition: The most abstract definition of an enumeration of a set is an exact listing of all of its elements (perhaps with repetition).

W.r.t SAP PI, enumeration restricts the value range to a set of individual areas .The values must be separated by blanks or commas in the XSD Editor.

Implementation of enumeration in PI:

We Implement Enumeration in “Data type” level under Details column in the XSD editor or simply press the button provided in the XSD Editor. Data type enumeration is given below.

Data Type Filed à Details à enumeration.

At the corresponding field level select the details column wherein enter the required enumerated values separated by a space or a comma as below.

 

Once we consume web service generated on this data type Company_Code field will shows a drop down list that holds enumerated values i.e. the restricted values are displayed as follows:

Here we have used Microsoft InfoPath as Web Client.

A drop down list is appeared with all restricted filed values for selection by using Enumeration in SAP PI 7.1/7.0

 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image