Вы находитесь на странице: 1из 49

Dynamic Actions on Steroids

Session 301 Donna Wendling Sherryanne Meyer

Todays Agenda

Who Is Air Products? Todays Objectives -- Learning Points Brief Overview What is a Dynamic Action? The Basics - Components of a Dynamic Action Various Scenarios
1. 2. 3. Date Specifications Tax Area POWER!!!!! MORE Family/Related Persons

How To Kick it up a Notch


2

Who is Air Products Fast Facts

Global gases, chemicals, equipment and services provider

Serving technology, energy, healthcare and industrial markets


Fortune 500 company

Chemical industry safety leader


Operations in more than 30 countries ~20,000 employees worldwide Known for our innovative culture and operational excellence
3

HOMECARE Who is Air Products HELIUM


HYDROGEN NITROGEN SPECIALTY GASES POLYMERS
4

SAP HR Countries
Canada

United States

UK Ireland Belgium Netherlands Germany France Spain, Italy, Portugal Israel China Hong Kong

Japan Korea Taiwan

Indonesia Singapore Malaysia

SAP-HR and Air Products

2001 Org Management, HR Admin, Compensation, Benefits, Time Entry, US Payroll, Structural Security, ESS, MDT 2002 Appraisals, C&SP, TEM, Workflow, BW 2002 HR / ERP Integration 2003 HR Phase 3 Southern Europe 2004 HR Phase 4 Asia 2004 Recognized SAP Certified Competency Center 2005 MSS-Phase 1 2006 ECC 5.0, Learning Solution, Israel

Todays Objectives: Learning Points

What is a Dynamic Action and what can it do for you Automate business processes Saves time by performing routine tasks Insure data integrity Empower Global Power Users to successfully manage data Create new and improved Dynamic Actions Maximize the power of a Dynamic Actions

* None of the employees or data represented on the


following slides is real.
7

Brief Overview
As defined by SAP

What is a Dynamic Action?

Dynamic actions trigger automatic processing when specific infotype records are maintained. The advantage of dynamic actions is that the system saves you time by performing routine tasks
8

Brief Overview

Personnel Action vs Dynamic Action

Personnel Actions are a series of Infotypes that are added, changed, completely or partially deleted or delimited for the reason specified (i.e. Hiring, Leave, Termination, etc.)
Dynamic actions are automated and can use decision logic to enhance a Personnel Action for maintenance of a specific Infotype
9

IType: Infotype that triggers the dynamic action

The Basics on a specific subtype

Components of a Dynamic Action Sty: Focus No:


Sequence number

Field n: Start action when maintaining a specific field

Variable Function Part: Specifies the processing details when the dynamic action is triggered

FC: Maintenance Operation 02 Change 04 Create 06 Create and change 08 Delete 10 Change and Delete 12 Create and Delete

S: Step Indicator P Check conditions I Maintain Infotype Record W Default values for a new record V Reference to another step F Call a FORM routine (subroutine in ABAP); M Send Mail
10

The Basics

Variable Function Part

Values of an old data record are in structure PSAVE. Operations on Infotypes can be run in the background by entering /D at the end of the line. Logical OR links must be indicated by /X. When calling a routine you can use internal (module pool) and external routines

When calling an external routine, enter name of program in parentheses after the form name It is not possible to transfer parameters to the routine For transferring values from the routine you can use fields in the RP50D structure
11

The Basics

RP50D Structure Return Values

12

Scenario 1
Date Specifications Populating Key Dates Dynamically

13

Scenario 1 Date Specifications


Create Key Dates

Hire Action (Z1)


Dynamic action will create Infotype 0041 (Date Specifications) in background and populate various dates for that employee

Original Hire Date (Z1) Employment Date (Z4) Date in Grade (X6)
14

Create IT0041 and populate dates

Personnel Action Z1

Create Date Types

15

End Result

16

Scenario 1 Date Specifications


Challenge: Update Key Dates

Anytime Pay Scale Group changes on Infotype 0008 (Basic Pay) Automatically update the Date in Grade (X6) on Infotype 0041 (Date Specifications) BUTHow do I find the Date in Grade (X6) on Infotype 0041 and update it using a Dynamic Action ????????
17

Answering The Challenge


3. Copy IT 41 in Background

1. Check Previous Pay Scale Group Not equal to New Pay Scale Group 2. Call procedure to locate X6 Date Type and set RP50D-FIELD1

4. Check Value of RP50D-Field1. Update X6 date on IT 41

18

Walk Through: Update Existing Date Type


Example: In the Org Reassignment Action, Pay Scale Group is updated on Infotype 0008 (Basic Pay)
19

Procedure to Update Existing Date Type

20

Walk Through: Update Date Type contd

21

Scenario 2
Default Tax Area Based on Work Location

22

Scenario 2

Default U.S. Work Tax Area


Hire (Z1), Rehire (Z2) or Org Reassignment (U2) Actions Dynamic Action will Create Infotype 208 (Work Tax Area) and default Tax Area based on employees Personnel Subarea (work location)

23

Scenario 2 Default Tax Area

Based on IT0001-Org Reassignment

PSA=157 Work Tax =KY0J

24

End Result

25

Scenario 2 Default Tax Area

The Challenge Too many Tax Areas!


There are so many work Tax Areas to default were running out of room on dynamic action table for Infotype 0001 maximum 999 lines So how can I manage all the Tax Areas necessary without maxing out the Dynamic actions table entries for 0001??????

26

The Challenge Too many Tax Areas!


1. Check Action is Hire (Z1), Rehire (Z2) or Org Reassignment (U2) and Country is US
2. Call Procedure to lookup Work Tax Area based on PSA on IT 0001. Set value of RRP50D-FIELD1

3. Insert Infotype 0208 4. Write RP50DField1 to Work Tax area and set percent to 100

27

Walk Thru New Dynamic Action

28

Procedure for new dynamic action

29

Walk Thru New Dynamic Action

contd

30

Scenario 3
From IT0002-Personal Data Create IT0021-Family Member

31

Scenario 3 Personal Data

Create IT0021 Family Related Persons

Hire (Z1) action


Dynamic Action will Create Infotype 0021 (Family/Related Person) Subtype 2 (Child) for every dependent Evaluate # of dependents (ANZKD) when Infotype 0002 (Personal Data) is created
32

Create IT0021 Family Related Persons

If # Deps = 1, Insert IT0021

33

Create IT0021 Family Related Persons

34

End Result

35

Scenario 3 Personal Data

The Challenge Adding Dependents


Dynamic action for entries into # of dependents works great on the initial Hire action .
BUTHow can create the correct number of Infotype 0021 (Family/Related Person) anytime Infotype 0002 is changed or created and # of dependents (ANZKD) is increased.

36

Answering the Challenge

1. Check previous # is less than new # of Dependents


2. Call Procedure to get previously saved # of Dependents and calculate the difference. Set RP50D-FIELD1

3. Check value of RP50DField1. Insert correct number of IT0021, Sty 2 records.

37

Determining previous entry

38

Walk Through New dynamic action

39

Procedure for new dynamic action

PCL4 cluster stores the changes made to infotype documents.


40

Procedure for new dynamic action

41

42

Family/Related Persons Infotype dynamically appears first time. Enter first dependent information Save
43

Family/Related Persons Infotype dynamically appears second time.


Enter second dependent information Save
44

Or you could..

45

Much Simpler code

46

Return on Investment

Data Integrity Efficiency

Controls placed in system to ensure accuracy


(i.e., of tax authority)

Enables downstream processes


with Date in Grade

Time saved in entering infotypes repeatedly

Compensation Planning process more efficient


47

Key Learnings

Nothing is foolproof - 80/20 Rule Dynamically some business processes can be enabled Dynamically some data entry can be automated Basic Dynamic Actions can provide value added benefits

Automating business processes saves time by performing routine tasks Insuring data integrity Empowering Global Power Users to successfully manage data

Dynamic Actions enhanced with some simple ABAP code make the impossible possible
48

Thank you for participating! Please remember to complete and return your session evaluation form following this session. Donna Wendling Sherry Meyer Session Code 301

Вам также может понравиться