What Are Dynamic Action

Explain dynamic action.

A dynamic actions allows you to define some specific behaviors while executing an action depending, for example, on values of the last infotype filled and so on. You can state whether the action is to be carried out for “Change”, “Create” and/or “Delete” record.

You can store the conditions for executing the action, for example, the comparison of the old and new value of a field. Finally, you can also specify default values for a record that is to be created.

For example, you can define that for an action called "Y1", the default employee group and subgroup in infotype 0001 will be X and YY.

The standard SAP system contains some sample dynamic actions.

a. The first thing to do, is to determine which infotype, subtype or field is to trigger a dynamic action.
b. Determine the infotype operation (MOD, COP, INS...)
c. After that, you have to set up different actions using a sequential number and processed according to some criteria’s and conditions. 
- P = Conditions to execute the dynamic action
- I = Infotype accesses
- W = Write Infotype values
- F = Access for internal or external routines

Calling up an internal routine: just specify the name of the routine, this must be in the infotype’s module pool “MPmmmm00”. You cannot assign using-parameters.
Calling up external routines: specify the name of the routine and, in parentheses, the name of the program in which the routine can be found. 

Columns:

- Sty : For which Subtype a dynamic action should be carried out.
- Field : For which Field a dynamic action should be carried out.
- FC : This controls for which types of processing (create, change and/or delete a data record) a dynamic action should be carried out. It’s a two-digit numeric value. You can enter several processing types for each infotype, subtype or field. A dynamic action can also be carried out independent of the current processing type.

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

If you enter 06, an action is carried out if the specified infotype was created or changed.

If you enter 00, an action is carried out irrespective of whether the specified infotype was created, changed or deleted.
- No : Number of sequence
- S : (Indicator for 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 part : Action to be executed depending to the Indicator for step.

SAP HR Tips

See Also
How To Configure Personnel Actions

SAP Human Resource Books
SAP HR Books - Certification, Interview Questions and Configuration

SAP Human Resource Tips
SAP HR Tips and Human Resource Management

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.