Class CL_WD_ADOBE_SERVICES provides methods, which can be used both in the ABAP development environment and at runtime in the Adobe 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.
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 document typed as XSTRING.
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.
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.
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.
This method returns the internal table that describes the Web Dynpro context.
This method returns an internal table that represents the data XML.
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.
Method for parsing the XML schema.
Method for parsing the XML data.
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.