Entering content frame

Background documentation CL_WD_ADOBE_SERVICES Locate the document in its SAP Library structure

Class CL_WD_ADOBE_SERVICES provides methods, which can be used both in the ABAP development environment and at runtime in the Structure linkAdobe Integration environment.

The class is mainly used to create the PDF document used at runtime or to parse the XML schema of the form interface or the data XML of the form at runtime.

Methods

CREATE_PDF

This method creates the PDF document subject to the mandatory parameters ENABLED and DATA_SOURCE.

Central import parameters:

·        ENABLED

Specifies whether the form is interactive or not.

·        DATA_SOURCE

Reference to the Web Dynpro context.

Returning parameter:

·        PDF

PDF document typed as XSTRING.

GET_CABVERSION

To guarantee that the interactive form functions correctly, the ActiveX Control Framework (ACF) is required. See note 834573. This method builds the path to the ACF to ultimately check whether the ACF version is current or whether a later version exists.

Additional Methods

The remaining methods are all used to parse an XML schema or XML data.

With the aid of the IXML parser an XML document (the schema exists in this form) is processed and an internal table is filled with data.

As the schema is a representation of the Web Dynpro context, all information used to build the context (or compare with an existing context) is saved in the table.

If the schema has been created using a Web Dynpro context, an element with the name FROM_WD_CONTEXT and the value true can be found at the first hierarchy level. Later in the View Designer you can decide whether a change to the context should also cause a change to the schema

The XML schema and the XML data are parsed generally in the same way, only the results are different, which is why there are two different table types.

Note

Be aware of the difference between XML data and XML schema. The schema describes the external form, that is the quantity and type of fields for the form later created, while the data XML transports the actual data contained in one of these fields. For this reason the schema is relevant more at design time, and the data more at runtime.

GET_CONTEXT

This method returns the internal table that describes the Web Dynpro context.

GET_DATA

This method returns an internal table that represents the data XML.

GET_FROM_WD_CONTEXT

This method searches in the XML schema for the described FROM_WD_CONTEXT flag, and in the case of a schema generated from a Web Dynpro context returns an X, otherwise it returns a blank character.

Parsing Methods

PARSE_XML_SCHEMA

Method for parsing the XML schema.

PARSE_XML_DATA

Method for parsing the XML data.

PARSE_SUBNODE and PARSE_XML_SUBNODE

Methods for parsing deeply-nested hierarchies in the XML document. This is done by recursive method calls. For this reason each XML document has its own method.

 

 

Leaving content frame