|Home • Technical • Interview Q's • Jobs • Testimonials • Contact Us|
Step-by-Step procedure to maintain Dynamic actions (HCM)
By Piyush Mathur, Tata Consultancy Services
Action feature is provided in SAP HR to call another Infotype while processing
control the initiation of actions when maintaining an Infotype record. For each
action, you can determine whether it is always carried out when
V_T588Z is the maintenance table to maintain Dynamic Actions.
understand the views field for V_T588Z.
the T code SM31 and open V_T588Z for maintain.
new popup will come for Infotype. Pass the Infotype for which you want to
maintain the Dynamic Action. I am taking example for a custom Infotype 9800.
maintenance screen will open for view V_T588Z. Click on New Entries.
contains below 6 columns.
Sty: This column is to maintain Dynamic Action for Specific
Subtype. If user need to execute the Dynamic Actions based on specific Subtype
then this column need to be filled else it can be blank.
Field Name: Column to specify field name, if require to process
Function Character of step:
This column is important part of Dynamic Actions. It’s specified on which
action (Create/Change/Delete), dynamic action need to be called.
column required to fill with two digit of below numbers as per the requirements.
- An action is carried out
irrespective of whether specified Infotype was
– For Change
– For Create
– For Change and Create
– For Delete
– For Change and Delete
12 – For Create and Delete
To determine the sequence of each step
Indicator of Step:
are the available indicators.
- Check conditions
- Maintain infotype record
- Set default values when creating a new record
- Reference to another step
- Call routine
- Send mail
Variable Function part:
important column which contains the steps and definition on the based of
previous column ‘Indicator of Step’.
If maintained Indicator of Step Column as ‘P’ Plausibility
Here you can enter values for infotype field to check the condition
before proceeding the next step. Infotype field values are available in PSAVE
For example to check the Employee Status maintained as below:
If maintained Indicator of Step Column as ‘I’ Maintain
To create/Change/Delete another infotype ,Enter the step, infotype,
subtype, object ID, start and end dates of the record and an indicator which
defines whether the step is to be run in the background.
the indicator for suppressing dialog from other entries by a slash D (/D).
Create a Infotype record (0006) without subtype and object ID. The start and end
dates are the same as those in the current Infotype (9800); specify these two
fields only if they are filled because the dynamic action was triggered by this
If maintained Indicator of Step Column as ‘W’ Default
values for new record
This step used to default the variable values for new Infotype.
the defaults for the Infotype, subtype, object ID, start and end dates using an
‘I’ step and not a ‘W’ step.
not set defaults for Q fields of an Infotype because the values for these fields
are derived from the corresponding P fields.
a Family/Related Person record (0021) record with subtype 2 (child) is created,
an Additional Payments record (0015) with a default amount of 100.00 is created.
If maintained Indicator of Step Column as ‘V’ Cross-reference
to another step
you can combine fields to groups. The variable function part contains the value
in the field which follows the "field" column. Steps which are
specified only for the following field are also triggered for each of the other
Variable function part
0019, subtype 01 is deleted in the background when the field PRBZT or PRBZH in
infotype 0016 is changed or created (function code 06).
If maintained Indicator of Step Column as ‘F’ Call
Sometimes user wants to do some complex validations before processing the
Dynamic action which can not be easily maintained in V_T588Z. IN that case,
developer can developed a ABAP programs in a routine and called the routine in
Below is the syntax to call the routine,
GET_Date is the routine name in ABAP program ZPUDYN01.
M - Send a mail
the name of the feature which defines the characteristics of the mail.
mail is sent when the field SACHP is changed. The characteristics of the mail
are defined in feature M0001
For more information on same please refer SAP F1 help.
Now let maintained the records in V_T588Z.
Let’s take a scenario, Whenever user Create or Change Infotype 9800,
Infotype 6 need to be created. So Maintain entries in V_T588Z as below.
Now create a new record for IT9800.
Now as you press save, dynamic action will be triggered and a new window
will open to maintained Infotype 0006.
You cab restrict the Infotype creation on the basis of Subtype and you
also suppress the dialog i.e. you can create the new Infotype in background by
Please send us your feedback/suggestions at webmaster@SAPFunctional.COM
©2006-2007 SAPFunctional.COM. All rights reserved.
product names are trademarks of their respective companies. SAPFunctional.COM,
Inc. is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards