Window: Inbound and Outbound Plug
Parameters
For each outbound plug of Standard type you can create a list of user-defined parameters. For each inbound plug of Standard type you can create a list of user-defined importing parameters in the associated event handler method.
You can define parameters for these special window plugs too. Since these parameters must be specified in the outbound URL, they must be either of type String or TIHTTPNVP (see below):
All parameters for exit and suspend plugs are specified in the target URL (optional for the exit plug, mandatory for the suspend plug). If the target URL is a Web Dynpro application, the URL has the following schema:
<schema>://<host>.<domain>.<extension>:<port>/sap/bc/webdynpro/
<Namespace>/<application name>?<parameter name>=<parameter value>
Exit and suspend plugs at runtime have the specific string parameter URL.
This is used to transfer the target URL.
Parameters for Startup and Resume Plugs
Parameters for startup and resume plugs are passed with the calling URL to the associated event handler method, and this means they come from the secondary application. For this reason the number and the names of the parameters passed to the method at design time are often not known to the primary Web Dynpro application. To be able to process inbound URL parameters anyway, they are stored in a table of type TIHTTPNVP. All the application-specific URL parameters in this table can be accessed using parameter WDEVENT belonging to the event handler method of a startup or resume plug. The parameter created locally must be of the same type, that is, of type TIHTTPNVP (see below).
method
HANDLEDEFAULT .
.
|
If the parameters that are passed to the startup or resume plug are already known at design time, you can add the individual parameter strings to the signature of the event handler method and access them directly.
If the signature of an event handler method of an
inbound plug has importing parameters, values must be available at runtime for
these parameters. If the calling
URL does not specify its own values, nor define any default values for the
application itself, this will result in a runtime error. (See Calling Web Dynpro
Applications with Parameters). By defining default values you can prevent
runtime errors due to missing parameter values.
The table type TIHTTPNVP contains parameter names and their values. If you create a parameter of this type for a suspend or exit plug, the parameter will have the form of a table containing pairs of names and values of type string. In this case all the entries are passed to the URL together, rather than each parameter separately.
The pairs of names and values passed to the startup or exit plug are stored in a table.
URL parameters for which the signature of the event
handler method offers a relevant parameter, are also stored in the parameter
table as well as in this table.
The transferred parameters are checked and validated
by the processing application in the table of type TIHTTPNVP.