Start of Content Area

Function documentation Parameterized XSLT Mappings  Locate the document in its SAP Library structure

Use

Parameterized XSLT mappings enable you to increase the number of possible applications for a XSLT mapping; by defining an appropriate interface, you can query values from or to the XSLT mapping program.

See also: Parameterized Mapping Programs

Integration

To be able to access XSLT mapping parameters at runtime, in the binding of the operation mapping, define the relevant XSLT mapping parameters:

This graphic is explained in the accompanying text

You define the XSLT mapping parameters for a XSLT mapping program when you create the binding, and at the same time connect them to operation mapping parameters. When you access the XSLT mapping parameters in the XSLT mapping program, the mapping runtime checks whether you have defined the parameters in the ES Repository. If not, an exception is raised.

Activities

...

       1.      Create an operation mapping and reference the source and target operation(s). You also have the option of exporting the XSD schema of the request and response messages if you want to develop your XSLT mapping externally (see: Operation Mapping).

       2.      When the XSLT mapping program is implemented, you access the mapping program parameters by accessing the get and set methods of the Java mapping API in the XSLT program (see also: XSLT Mapping with Java Enhancement, Parameterized Java Mappings).

When you develop the XSLT mapping programs, maintain a list of these parameters.

Note

You also have the option of creating the mapping program parameters before you implement them in the operation mapping (see steps 3 to 6).

       3.      To create the necessary operation mapping parameters, choose Parameters. You can use an operation mapping import parameter to transfer values to multiple mapping program import parameters. Note that multiple mapping program export parameters cannot be connected to the same operation mapping export parameters.

       4.      Import your XSLT mapping program to the ES Repository (see: Imported Archives (XSLT/XSLT)) and then reference the parameterized XSLT mapping program from your operation mapping.

       5.      In the Binding column in the table in frame Mapping Programs, there is a button for defining a binding (This graphic is explained in the accompanying text). Choose the button in the row in which your XSLT mapping program is entered.

       6.      In the table in the subsequent window, enter the required mapping program parameters for your XSLT mapping. In the second column, assign the operation mapping parameters to the mapping program parameters you entered. By doing so, you define both the binding and the type of the mapping program parameters.

       7.      Save and activate your operation mapping.

       8.      Assign values to the parameters:

       Use an interface determination in the Integration Directory (import parameters only).

       Use a transformation step of an integration or monitoring process (import and export parameters).

 

 

 

 

 

 

 

 

End of Content Area