View
75
Download
12
Category
Tags:
Preview:
Citation preview
Dynamic Actions on Steroids
Session 301
Donna Wendling
Sherryanne Meyer
2
• Who Is Air Products?
• Today’s Objectives -- Learning Points
• Brief Overview – What is a Dynamic Action?
• The “Basics” - Components of a Dynamic Action
• Various Scenarios
1. Date Specifications
2. Tax Area
3. Family/Related Persons
• How To “Kick it up a Notch”
Today’s Agenda
MORE POWER!!!!!
3
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
4
Who is Air ProductsHOMECARE
HYDROGEN
SPECIALTY
GASES
HELIUM
POLYMERS
NITROGEN
5
UKIreland
Belgium Netherlands
Germany FranceUnited
States
Canada
Spain, Italy, Portugal
IndonesiaSingaporeMalaysia
China
Hong Kong
JapanKoreaTaiwan
Israel
SAP HR Countries
6
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
7
Today’s 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.
8
Brief Overview –
What is a Dynamic Action?
As defined by SAP
• 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
9
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
10
The Basics -
Components of a Dynamic Action
IType: Infotype that triggers the dynamic action
Sty: Focus on a specific subtype
Field n: Start action when maintaining a specific field
No: Sequence number
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
11
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
12
The Basics –
RP50D Structure – Return Values
13
Scenario 1
Date Specifications -
Populating Key Dates Dynamically
14
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)
15
Create IT0041 and populate dates
Personnel Action Z1
Create Date Types
16
End Result
17
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)
• BUT……How do I find the Date in Grade (X6) on
Infotype 0041 and update it using a Dynamic Action
????????
18
Answering The Challenge1. Check Previous Pay
Scale Group Not equal to
New Pay Scale Group
2. Call procedure to
locate X6 Date Type and
set RP50D-FIELD1
3. Copy IT 41 in
Background
4. Check Value of
RP50D-Field1.
Update X6 date
on IT 41
19
Walk Through: Update Existing Date Type
Example:
In the Org
Reassignment
Action,
Pay Scale
Group is
updated on
Infotype 0008
(Basic Pay)
20
Procedure to Update Existing Date Type
21
Walk Through: Update Date Type cont’d
22
Scenario 2
Default Tax Area
Based on Work Location
23
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)
24
PSA=157
Work Tax
=KY0J
Scenario 2 – Default Tax Area
Based on IT0001-Org Reassignment
25
End Result
26
Scenario 2 – Default Tax Area
The Challenge –Too many Tax Areas!
• There are so many work Tax Areas to default –
we’re 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??????
27
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 RP50D-
Field1 to Work Tax
area and set
percent to 100
The Challenge –Too many Tax Areas!
28
Walk Thru – New Dynamic Action
29
Procedure for new dynamic action…
30
Walk Thru – New Dynamic Action cont’d
31
Scenario 3
From IT0002-Personal Data
Create IT0021-Family Member
32
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
33
Create IT0021 Family Related Persons
If # Deps
= 1,
Insert
IT0021
34
Create IT0021 Family Related Persons
35
End Result
36
Scenario 3 – Personal Data
The Challenge – Adding Dependents
• Dynamic action for entries into # of dependents works great on the initial Hire action ….
• BUT……How can create the correct number of Infotype 0021 (Family/Related Person) anytime Infotype 0002 is changed or created and # of dependents (ANZKD) is increased.
37
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
Answering the Challenge
3. Check value
of RP50D-
Field1. Insert
correct number
of IT0021, Sty 2
records.
38
Determining previous entry
39
Walk Through – New dynamic action
40
Procedure for new dynamic action
PCL4 cluster
stores the
changes made to
infotype
documents.
41
Procedure for new dynamic action
42
43
Family/Related
Persons Infotype
dynamically appears
first time.
Enter first dependent
information
Save
44
Family/Related
Persons Infotype
dynamically appears
second time.
Enter second
dependent
information
Save
45
Or you could………..
46
Much Simpler code……
47
Return on Investment
• Data Integrity
• Controls placed in system to ensure accuracy
(i.e., of tax authority)
• Efficiency
• Time saved in entering infotypes repeatedly
• Enables downstream processes
• Compensation Planning process more efficient
with Date in Grade
48
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
Thank you for participating!
Please remember to complete and
return your session evaluation
form following this session.
Donna WendlingSherry Meyer
Session Code 301
Recommended