Beruflich Dokumente
Kultur Dokumente
This tutorial will explain how to Configure Dynamic Action. This is being
explained by illustrating the below two scenarios.
1) Default the Pay scale Type, Area and Group based on the Employee group
and subgroup.
2) Default the Valid Until field in Contract Elements Infotype based on the
hiring date.
Prerequisite
The action needs to be identified for which dynamic action is to be configured.
Here for the action 'Test Hiring', we are going to configure the dynamic action.
Make sure that the Hiring Action is properly configured in infogroup. Ensure
that Personnel Action types are configured for the action (It should mention
infogroup name).
Infogroup: Go to SPRO->Personnel Management->Personnel Administration>Customizing Procedures->Actions->Define Infogroups for infogroup
configuration.
Personnel Action Types: Go to SPRO->Personnel Management->Personnel
Administration->Customizing Procedures->Actions->Set up Personnel Actions
(choose Personnel Action Types)
actions.
The table structure itself explains about the field in dynamic action.
INFTY - First field which specifies the infotype should be responsible to trigger
the action.
SUBTY - Respective subtype of the infotype. This is optional.
FNAME- Name of the field in the infotype. This is again not mandatory.
OPERA- Name of the operation performed in the infotype. That is entry in this
field will execute the Dynamic action when that operation is performed to the
infotype in action.Ex: when a record is created in IT0001, do this action.
The possible values are:
operation. Insertion will be done for infotype 8.In the rest of the lines, we are
specifying the default values to be set for the fields in the infotype.
Scenario 2:
To default the Valid Until field in Contract Elements Infotype based on the
begin date of Organizational assignment by using a subroutine from a
program.
RP50D is the structure which is meant for HR: Return Fields for Dynamic
Actions.
In the program, we are going to add 365 days to the hiring date and
populating it as default for Valid Until field in infotype 0016.
First line in Dynamic Action specifies that Subroutine getdate is called in
program zzz_jay.
Second line is used to maintain(Insert a record) in infotype 0016.
Third line is defaulting the value for the field Valid Until from the program
calculation.
Output
Elements.