Banner
Banner
Banner

Attention: open in a new window. PDFPrintE-mail

2010
27
Sep

Displaying an IDoc Using an XSL Stylesheet

You can represent IDocs in XML format individually (how you generate the Business Connector, for example) by means of a stylesheet. You can test the stylesheets by performing the steps

specified below. The ED00_XML process code displays a generic, manual inbound processing.

 

STEP 1: Put your stylesheet together with the graphics on the presentation server or in the Web Repository (transaction SMW0). In the Web Repository, graphics are identified as binary objects

and stylesheets are identified as HTML templates.


STEP 2: Choose SAP Menu -> Tools -> IDoc Interface/ALE -> Development -> IDoc -> Generate ALE Interface  -> IDoc Styles (WE34).


STEP 3: Identify your stylesheet and the graphics using a Style ID. See the F1 Help for the fields. Assign the style ID to the required message type. (See below)


STEP 4: Maintain an Inbound Partner Profile for the required message type. For the process code select ED00_XML. Assign yourself as the permitted agent.


STEP 5: Generate a test IDoc of the required message type, for example with the Test Tool and start processing.


STEP 6: You receive a work item in the Business Workplace - when you execute it you receive the XML display of the IDoc. You can select other stylesheets by using View.


STEP 7: Exit the work item by selecting Edit. Here you can also set the Deletion indicator with which the IDoc receives an Archivable (and thus deletable) Status.

 

The task appears as a work item in the inbox (Workplace) of the agent who has been entered in the IDoc partner profile as the permitted agent. The relevant IDoc is displayed and the agent

subsequently decides whether status 68 (set deletion indicator) should be set for the IDoc or whether status 53 (end process) should be assigned, after the data is manually transferred. IDoc

display takes place using the HTML Control.

 

In order to be able to display the IDoc in the HTML Control, this is first converted into IDoc/XML. The XML data stream is transferred together with a style sheet (XSL) to the HTML Control. The

display can therefore be flexibly adapted to meet individual requirements by using XSL (customizing the user interface).

 

The process code provides 3 style sheets that can be applied to all IDoc messages.

  • SAP_001 SAP default style. Shows all records including control and status records. The field names and field values are displayed. Sub-trees can be expanded and collapsed. Very simple style
  • sheet template for individual programming.
  • SAP_002 SAP text style. Only the text segments are displayed for the data records. These are summarized within a segment group for a continuous text. Style sheet template which shows the selection and aggregation of IDoc data for individual programming.
  • SAP_003 SAP context style. Shows the structure tree of the segments. If the mouse pointer is positioned on a segment or a node, then the fields of this segment are displayed. Style sheet template which shows the interaction with the user interface (DHTML) for individual programming.

The style sheets and additional elements for display are managed using the transaction IDoc Styles (WE34) and from there can be restricted to specific logical messages.

The style sheets and elements can be physically stored on a local disk or in the SAP Web Repository (SMW0).

Last Updated (Tuesday, 30 November 1999 00:00)
Free software downloads