You can use this standard task to transfer values from fields in a form to elements of the workflow container. The system accesses the current dataset of the form scenario that is specified in the task binding.
Note
You cannot use this standard task to import fields from infotypes with a repetition structure (such as the
Basic Pay
infotype (0008)).
Standard task: 17900110
ID:
Elementimp
Name
:
Import Form Container
->
WF Container
Referenced Object Method, Properties:
Object Type:
CL_HRASR00_WF_COMPONENTS
Method:
DATAMAPPING
-
Make sure that the
WF Batch
user has the required authorizations.
Authorization object P_ASRCONT: The activity R (Read) is used for the authorization check.
Authorization object P_ORGIN to check authorization for HR infotypes
For more information, see Authorization Concept for HCM Processes and Forms .
-
Container Definition: Import Elements
Form (FORM) – Mandatory
You use this element to specify which form scenario is used when the workflow step is executed. This element consists of a structure with the following three fields:
Form Scenario (FORM_SCENARIO) – Mandatory
Enter the form scenario that is to be used within the workflow step
Form Scenario Version (FORM_SCENARIO_VERSION) - Mandatory
This field specifies the version of the form scenario that you want to use.
Suppress Save (SUPRESS_SAVE)
You can use this field to override the settings in the SEND_VARIATION element. This field is not relevant for this task.
Data type (
Data Type
tab page in the
ABAP Dictionary Data Type
field
)
: Type name
HRASR00_FORM_KEY_ELEMENT
.
Form Field Name x (FORM_FIELD_NAME_x)
This element contains the name of the form field whose value is to be imported. Enter the name in exactly the same format as you defined when setting up the form scenario.
Since the element does not contain any workflow elements, the specified name should not contain the identifier of a workflow element
&
.
You can use the task to read the values of a maximum of three fields. To number the imported form fields, use
_x
.
Container Definition: Export Elements
Value x (FORM_FIELD_VALUE_x)
This element contains the value of the form field that you entered for FORM_FIELD_NAME_x. In the definition of the dataflow, specify the receiving workflow element, for example, &Name&.