UWL FunctionModuleActionHandler

gm.duits@belastingdienst.nl gm.duits at belastingdienst.nl
Wed Jul 30 07:43:27 EDT 2008


Hello,

Can somebody explain to me what i need to configure in the XML-file of the
UWL to return the messages from the Function Module. After reading the SAP
help (see below) it's not clear to me.

My function module  has an export parmeter: RETURN_CODE and a table
MESSAGE_LINES.

My xml-file looks like:

<Action name="test" handler="FunctionModuleActionHandler">
          <Properties>
            <Property name="FunctionModule" value="Z_MASAAL_GOEDKEUREN"/>
          </Properties>
          <Descriptions default="Test Action"/>
      </Action>

Kind regars,

Maarten.

FunctionModuleActionHandler

Purpose


You can use FunctionModuleActionHandler to handle execution of items for
which a workflow is executed through a given function module.


Provider specific Information


FunctionModuleActionHandler  supports WebFlowConnector provider. Items must
belong to the WebFlowConnector.


Supported Actions


Action name can be anything.


Properties


FunctionModuleActionHandler  expects the following properties:


●      FunctionModule (mandatory)


A Function Module to execute the workflow.


●      DeleteItem (optional)


This is a flag, indicating that the item should be removed from the cache
after executing the function module. The values are true and false. Default
is true.


All other properties are passed to the function module as input parameters.


Special Properties


If the function module doesn't have a standard export structure (
RETURN_CODE as an export parameter and a table  MESSAGE_LINES), a special
property name UWL_RETURN_CODE can be provided. And if the return code is
not 0 (success), the return error message will be queried by calling export
parameter UWL_RETURN_MESSAGE if the message is in the export parameter, or
UWL_RETURN_TABLE and UWL_RETURN_TABLE_PARAMETER if the message is in the
table (see example below)


If there are input properties that have to be set in the table (structure),
it can be done the following way:


<Property name="UWL_TABLE_IN1" value=table name>, so the first special
property name is UWL_TABLE_IN# where # is the number of the table affected
in input. Then corresponding table parameters will have property names
UWL_TABLE_IN1_ROW#_PARAMETER#:


<Property name="UWL_TABLE_IN1_ROW1_PARAMETER1" value="parameter 1">


<Property name="UWL_TABLE_IN1_ROW1_PARAMETER2" value="some other parameter
for the table UWL_TABLE_IN1"> ...


And the third corresponding property is UWL_TABLE_IN#_PARAMETER#_VALUE:


<Property name="UWL_TABLE_IN1_ROW1_PARAMETER1_VALUE" value="parameter 1
value">


Configuration for FunctionModuleActionHandler is done in a custom XML for
an item type, for which a workflow executed through a given function module
is defined.
------------------------------------------------------------------------------
De Belastingdienst gebruikt e-mail niet voor de uitwisseling van vertrouwelijke informatie met de burger of voor de bekendmaking van beslissingen. De Belastingdienst hanteert conventies voor het gebruik van e-mail. Deze zijn te vinden op www.belastingdienst.nl.
==============================================================================




More information about the SAP-WUG mailing list