Entering content frame

Background documentation Forms with Function Module-Based Interface Locate the document in its SAP Library structure

Before the introduction of the XML-based interface, a function module-based interface was created for a form during integration of the same. Such an interface, however, was not easily linked to the context of a Web Dynpro component. All the forms created from within the Web Dynpro context are not automatically equipped with an XML-based interface. In certain situations, however, it can be necessary to integrate an old form with a function module-based interface into a Web Dynpro application. The Web Dynpro runtime makes it possible, in principle, to display or print such a form within a Web Dynpro application. In special cases, it is even possible to integrate such a form in a limited, interactive mode.  

Setting Up Limited Input Enablement

The UI element InteractiveForm can be used, in this case also, with limited input enablement. The values entered by the user are not, however, distributed to the respective attributes. The form is displayed in change mode and, after the user has completed his or her entries, it is stored as a whole in the context attribute – which is then mapped to the property pdfSource. This is particularly helpful whenever you want to print or archive entries in a form. Validation of the entries, in this case, is not provided by the framework.

Note Once a form is set to input enabled, this property is retained. It cannot be reset to a pure display mode again.

The interface of the UI element InteractiveForm contains the method SET_LEGACY_EDITING_MODE, which in turn contains a Boolean parameter. The form is then ready for input when

·        The parameter has the value X.

·        The property enabled in the UI element InteractiveForm is selected.

·        The property pdfSource is mapped to a context attribute of the type XSTRING.

 

The following code fragment shows how this input readiness can be set up:

 

method WDDOMODIFYVIEW.

 

 data: LR_INTERACTIVE_FORM  type ref to CL_WD_INTERACTIVE_FORM,

       LR_METHOD_HANDLER    type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.

 

check first_time = abap_true.

 

LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT(‘INTERACTIVE_FORM_1’).

LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.

LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).

.

.

.

 

endmethod.

 

 

 

 

Leaving content frame