4
Home Technical Interview Q's Jobs • Testimonials • Contact Us Topics: General Topics Materials Management Sales & Distribution Financials CRM Production Planning Plant Maintenance HCM (HR) Project Systems Warehouse Management Contribute Join the Mailing List Enter name and email address below: Name: Email: Subscribe Unsubscribe GO Step‐by‐Step procedure to maintain Dynamic actions (HCM) By Piyush Mathur, Tata Consultancy Services Dynamic Action feature is provided in SAP HR to call another Infotype while processing one Infotype. Here, you control the initiation of actions when maintaining an Infotype record. 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. 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. View V_T588Z is the maintenance table to maintain Dynamic Actions. Let understand the views field for V_T588Z. Execute the T code SM31 and open V_T588Z for maintain. A 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. S ERP Implementation Guide 5 Documents To Help You With Implementing ERP Software Solution! Be the first of your friends to like SAPTechnical ABAP consultants required for MNC in Pune, India (Magarpa Experience: 4+ years in SAP Location: Pune Joining time: 2 weeks... See M 531 Likes · 2 Comments · 11 Sh Comment October 5, 2014 SAPTechnical ABAP consultants required for September 16, 2014 SAPTechnical 12,192 likes Like Page

HCM - Step-By-Step Procedure to Maintain Dynamic Actions

Embed Size (px)

DESCRIPTION

HCM - Step-By-Step Procedure to Maintain Dynamic Actions

Citation preview

Page 1: HCM - Step-By-Step Procedure to Maintain Dynamic Actions

Home • Technical • Interview Q's • Jobs • Test imonials • Contact Us

Topics:

General Topics

Materials Management

Sales & Distribution

Financials

CRM

Production Planning

Plant Maintenance

HCM (HR)

Project Systems

Warehouse Management

Contribute

Join the Mailing List

Enter name and email address below:Name:

Email:

Subscribe Unsubscribe GO

Step‐by‐Step procedure to maintain Dynamic actions (HCM)

By Piyush Mathur, Tata Consultancy Services

Dynamic Action feature isprovided in SAP HR to callanother Infotype whileprocessing one Infotype.

Here, you control the initiationof actions when maintainingan Infotype record. For eachaction, you can determinewhether it is always carriedout whenyou change an Infotype or asubtype or whether it is onlycarried out if you changecertain fields.You can state whether theaction is to be carried out for"Change", "Create" and/or"Delete" record. You can storethe conditions for executingthe action, for example, thecomparison of the old and new

value of a field. Finally, you can also specify default values for a record that is to be created.

View V_T588Z is the maintenance table to maintain Dynamic Actions.

Let understand the views field for V_T588Z.

Execute the T code SM31 and open V_T588Z for maintain.

A new popup will come for Infotype. Pass the Infotype for which you want to maintain theDynamic Action. I am taking example for a custom Infotype 9800.

Search

ERP ImplementationGuide

5 Documents To Help You WithImplementing ERP Software

Solution!

Be the first of your friends to like this

SAPTechnical

ABAP consultants required for for a topMNC in Pune, India (Magarpatta City) .

Experience: 4+ years in SAPLocation: PuneJoining time: 2 weeks... See More

531 Likes · 2 Comments · 11 Shares

Comment

October 5, 2014

SAPTechnical

ABAP consultants required for Pune,

September 16, 2014

SAPTechnical12,192 likes

Like Page

Page 2: HCM - Step-By-Step Procedure to Maintain Dynamic Actions

Press Enter.

Now maintenance screen will open for view V_T588Z. Click on New Entries.

Field contains below 6 columns.

Sty: This column is to maintain Dynamic Action for Specific Subtype. If user need to executethe Dynamic Actions based on specific Subtype then this column need to be filled else it canbe 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 specifiedon 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 conditionsI ­ Maintain infotype recordW ­ Set default values when creating a new recordV ­ Reference to another stepF ­ Call routineM ­ Send mail

Variable Function part: Another important column which contains the steps and definition onthe 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 nextstep. Infotype field values are available in PSAVE structure.

For example to check the Employee Status maintained as below:

Infotype Field ..... Ind. Variable function part0007 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, startand end dates of the record and an indicator which defines whether the step is to be run in thebackground.

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 datesare the same as those in the current Infotype (9800); specify these two fields only if they arefilled 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 andnot a ‘W’ step.Do not set defaults for Q fields of an Infotype because the values for these fields are derivedfrom the corresponding P fields.ExamplesInfotype Subtype ..... FC Ind. Variable function part0021 2 04 I INS,0015,M4300021 2 04 W P0015­BETRG='10000'

Page 3: HCM - Step-By-Step Procedure to Maintain Dynamic Actions

When a Family/Related Person record (0021) record with subtype 2 (child) is created, anAdditional 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 thefield which follows the "field" column. Steps which are specified only for the following field arealso triggered for each of the other fields.ExamplesInfotype Field FC Ind. Variable function part0016 PRBZH 06 V PRBZT0016 PRBZT 06 I DEL,0019,01/D Infotype 0019, subtype 01 is deleted in the background when the field PRBZT or PRBZH ininfotype 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 actionwhich can not be easily maintained in V_T588Z. IN that case, developer can developed aABAP programs in a routine and called the routine in Dynamic Actions.

Below is the syntax to call the routine,

Infotyp ..... Ind. Var. function part0001 F GET_DATE(ZPUDYN01)

GET_Date is the routine name in ABAP program ZPUDYN01.

M ­ Send a mailEnter the name of the feature which defines the characteristics of the mail.ExampleInfotype Field ..... Ind. Var. function part0001 SACHP M M0001A mail is sent when the field SACHP is changed. The characteristics of the mail are defined infeature 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 becreated. 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 tomaintained Infotype 0006.

Page 4: HCM - Step-By-Step Procedure to Maintain Dynamic Actions

You cab restrict the Infotypecreation on the basis ofSubtype and you alsosuppress the dialog i.e. youcan create the new Infotype inbackground by specifying /D.

For example

INS,6,,,(P9800­BEGDA),(P9800­ENDDA)/D

Please send us your feedback/suggestions at [email protected]

Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPFunctional.COM | Post Job • Contact Us

© SAPFunctional.COM. All rights reserved.All product names are trademarks of their respective companies. SAPFunctional.COM, Inc. is in no way affiliated with SAP AG.

SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are registered trademarks of SAP AG in Germany and in several other countries.Every effort is made to ensure content integrity. Use information on this site at your own risk.

Graphic Design by Round the Bend Wizards