cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration steps of Dynamic actions

Former Member
0 Kudos

Hello All,

Please guide me in explaining the process of Configuring Dynamic Actions.

Thank you so much in advance.

S.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member219162
Contributor
0 Kudos

Hi Murali,

1) for dynamic action you need to go to view(SM30) - V_T588Z.

2) Then you have to specify the Infotype number, for which you need to trigger a dynamic action.

3) Inside the dynamic action there are varios columns;

SubtypeSpecify the subtype of the Infotype for which dynamic actions is to be triggered.
Field NameHere you specify the field name for Infotype for which dynamic action need to be triggered.
FCFunction character of step
00 for Independent of the current function carried out
02 for Change
04 for Create
06 for Change and create
08 for Delete
10 for Change and delete
12 for Create and delete
NoSequence number.
SIndicator Step
P - Check conditions
I - Maintain infotype record
W - Set default values when creating a new record
V - Reference to another step
F - Call routine
M - Send mail
Variable function partHere you write the actual code

Example 1:

Here we are checking if Action = 37 and Reason for Action = 01 and IT0021-Subtype <> SPACE

Then we modify IT0021 with respective sybtype with Begin date and End Date same as IT0000-BEGDA & IT0000-ENDDA

InfotypeFCSequenceStepVariable function
000048PP0000-MASSN='37'
0000410PP0000-MASSG='01'
0000412PP0021-SUBTY<>SPACE
0000414IMOD,0021,(P0021-SUBTY),(P0021-BEGDA),(P0021-ENDDA)

For more details look at the SAP Help on dynamic action. Its very clearly explained.

0 Kudos

Hi Murali,

Please tell us the scenario, then we can guide you with the dynamic action steps.

Thanks,

Sandeep.

former_member188217
Active Participant
0 Kudos

Hi Muralidharan,

Dynamic Action feature is provided in SAP HR to call another Infotype while processing one Infotype.

For each action, you can determine whether it is always carried out when

you change an Infotype or a subtype or whether it is only carried out if you change certain fields.

You can state whether the action is to be carried out for "Change", "Create" and/or "Delete" record.

View V_T588Z is the maintenance table to maintain Dynamic Actions.    When opening V_T588Z for maintain in SM30 pass the Infotype for which you want to maintain the Dynamic Action.

Field 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 Dynamic Actions.  

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.  

This column required to fill with two digit of below numbers as per the requirements.  

00 -  An action is carried out irrespective of whether specified Infotype was         created/Changed/deleted.

02 – For Change

04 – For Create

06 – For Change and Create

08 – For Delete

10 – For Change and Delete

12 – For Create and Delete  

Sequence Number: To determine the sequence of each step  

Indicator of Step: Below are the available indicators.  

P - Check conditions

I - Maintain infotype record

W - Set default values when creating a new record

V - Reference to another step

F - Call routine

M - Send mail  

Variable Function part: Another 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 checks  

Here you can enter values for infotype field to check the condition before proceeding the next step. Infotype field values are available in PSAVE structure.  

For example to check the Employee Status maintained as below:  

Infotype         Field .....                     Ind.                  Variable function part

0007               STAT3                         P                       P0007-STAT3='0'  

If maintained Indicator of Step Column as ‘I’ Maintain Infotype record  

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.

Separate the indicator for suppressing dialog from other entries by a slash D (/D).

9800....  I          INS,6,,,(P9800-BEGDA),(P9800-ENDDA)
 

Step: 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 Infotype.  

If maintained Indicator of Step Column as ‘W’ Default values for new record  

This step used to default the variable values for new Infotype.

Set the defaults for the Infotype, subtype, object ID, start and end dates using an ‘I’ step and not a ‘W’ step.

Do not set defaults for Q fields of an Infotype because the values for these fields are derived from the corresponding P fields.

Examples

Infotype                Subtype .....           FC             Ind.           Variable function part

0021                             2                      04                 I               INS,0015,M430

0021                            2                      04              W             P0015-BETRG='10000'  

When 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  

Here, 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 fields.

Examples

Infotype                      Field                       FC           Ind.       Variable function part

0016                          PRBZH                    06             V         PRBZT

0016                          PRBZT                    06             I           DEL,0019,01/D  

Infotype 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 a routine.  

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 Dynamic Actions.  

Below is the syntax to call the routine,

Infotyp .....                     Ind.                   Var.                  function part

0001                             F                                              GET_DATE(ZPUDYN01)

GET_Date is the routine name in ABAP program ZPUDYN01.  

M - Send a mail

Enter the name of the feature which defines the characteristics of the mail.

Example

Infotype                         Field .....           Ind.                   Var.                  function part

0001                             SACHP                                     M                     M0001

A 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. 

Hope it answers your query.

Thanks,

Anju

Former Member
0 Kudos

Hi Murali

I had published a document in scn earlier.. Please go through the link below

http://scn.sap.com/docs/DOC-41274

Please feel free to get back for any further queries

Anil

Former Member

The document appears to have been deleted when I clicked on the link.