Abstract :

Many times we come across a scenario when we get multiple referenced external definitions from an external system or maybe we need a mass import of the external definitions in our ESR. Till PI 7.0, we have been creating external definitions for each and every xsd separately, which is very time consuming, especially if we have many external definitions for upload.

As we all know that Process Integration 7.1 has been known for bringing many most awaited features in it, one of them is “Mass Import for External Definition”

In this blog, we will be seeing how this new feature has reduced our work in dealing with the multiple external definitions in ESR in a smarter way.

h3.

A Case in Point* :*

I am a big fan of explanation via “example”. Someone has well said that “An example is worth thousand words”. So, let’s not wait anymore.Lets start with a simple example

In the example, I have three XSDs; Company, Person and Product.

The Company.xsd is the main XSD and it contains two referenced XSDs, Person.xsd and Product.xsd as shown below :

—-


h3. Company.xsd


h3. Product.xsd

—-


h3. Person.xsd

—-


h3. Implementation Steps to import the schemas in one shot :

To leverage the use of “Mass Import” facility of ED, you can choose either :

1. Tools–> Import External Definitions(Figure1)

 Figure:1

!https://weblogs.sdn.sap.com/weblogs/images/44197/EDTools.JPG|height=332|alt=image|width=407|src=https://weblogs.sdn.sap.com/weblogs/images/44197/EDTools.JPG|border=0!

OR

2. Right Click on the Ext Definition and Select “Import  External Definitions”(Figure 2)

Figure:2

!https://weblogs.sdn.sap.com/weblogs/images/44197/EDRightclick.JPG|height=103|alt=|align=middle|width=377|src=https://weblogs.sdn.sap.com/weblogs/images/44197/EDRightclick.JPG!

Once you select the “Import External Definitions”, a Wizard will appear as shown below(Figure 3) :

 Figure:3

!https://weblogs.sdn.sap.com/weblogs/images/44197/wizard1.JPG|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/44197/wizard1.JPG!

Click on “Continue”.

 Figure:4

!https://weblogs.sdn.sap.com/weblogs/images/44197/wizard2.JPG|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/44197/wizard2.JPG!

In the above screen(Figure 4), you have to select the Namespace and SCV where you want to import  the external definitions. If you have used the second method to come to the Wizard, the Namespace and SCV would be automatically filled.

Select “Continue”

 Figure:5

!https://weblogs.sdn.sap.com/weblogs/images/44197/wizard3.JPG|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/44197/wizard3.JPG!

In this step(Figure:5), you can decide whether you want to import the referenced XSDs/WSDLs or not. In our scenario, we do care about the referenced XSDs, so, I have checked the “Import ReferencesAlso” option.

Figure:6

Wizard4 62347 8314484

Select the XSD files you want to import from your local directory.

To check the smartness of the Wizard ???? , lets assume* *we only know that Company.xsd is the main XSD and we dont know the names of the referenced XSDs, so I can just select the Company.xsd file. and then click “Continue”.

What do you think it would do??

Figure:7

!https://weblogs.sdn.sap.com/weblogs/images/44197/wizard5.JPG|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/44197/wizard5.JPG!

Well………. The Wizard definitely has smartness :). It did find by itself that Person.xsd and Product.xsd are the referenced XSDs for Company.xsd. The wizard
determines the referenced files using the schemaLocation attribute.

Note that the
wizard can only determine the referenced file if the reference to a file is in
the local file system.

The Wizard also gives an option to edit the External Definition Names.

 Figure:8

!https://weblogs.sdn.sap.com/weblogs/images/44197/wizard6.JPG|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/44197/wizard6.JPG!

Thats it, we imported all 3 XSDs ???? Was’t it a Sweeter, Shorter and Smarter way?

Here are the three External definitions created by the Wizard- one main (Company) and two referenced (Person and Product).( Figure 9)

 Figure:9

!https://weblogs.sdn.sap.com/weblogs/images/44197/EDafterimport.JPG|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/44197/EDafterimport.JPG!

You can find the refernced XSDs under the External reference tab  of Customer External Definition as shown below:

Figure:10

!https://weblogs.sdn.sap.com/weblogs/images/44197/externalreference.JPG|height=311|alt=|width=543|src=https://weblogs.sdn.sap.com/weblogs/images/44197/externalreference.JPG!

Under the Message Tab of your ED, you can check out the message structure for the External Definition.  Here, in our example for the Customer External Definition, you can see the fields which are defined in the Person.xsd and Product.xsd.

 Figure:11

!https://weblogs.sdn.sap.com/weblogs/images/44197/MessagesTab.JPG|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/44197/MessagesTab.JPG!

h3.

Conclusion :

The new

M*** Import for External Definitions feature of PI 7.1 not only helps in handling the mass import of External definitions but also provides a smart way to figure out the referenced XSDs and WSDLs.

h3. Related Link :

Our help.sap.com ????  + https://help.sap.com/saphelp_nwpi71/helpdata/EN/c7/55edd6c454472ab1aa1aa2f4f7310f/frameset.htm+

New NetWeaver Information at SAP.com

Very Helpfull

 

 

User Rating: Be the first one !