dynamic actions
TRANSCRIPT
![Page 1: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/1.jpg)
Dynamic Actions on Steroids
Session 301
Donna Wendling
Sherryanne Meyer
![Page 2: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/2.jpg)
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!!!!!
![Page 3: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/3.jpg)
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
![Page 4: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/4.jpg)
4
Who is Air ProductsHOMECARE
HYDROGEN
SPECIALTY
GASES
HELIUM
POLYMERS
NITROGEN
![Page 5: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/5.jpg)
5
UKIreland
Belgium Netherlands
Germany FranceUnited
States
Canada
Spain, Italy, Portugal
IndonesiaSingaporeMalaysia
China
Hong Kong
JapanKoreaTaiwan
Israel
SAP HR Countries
![Page 6: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/6.jpg)
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
![Page 7: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/7.jpg)
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.
![Page 8: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/8.jpg)
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
![Page 9: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/9.jpg)
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
![Page 10: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/10.jpg)
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
![Page 11: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/11.jpg)
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
![Page 12: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/12.jpg)
12
The Basics –
RP50D Structure – Return Values
![Page 13: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/13.jpg)
13
Scenario 1
Date Specifications -
Populating Key Dates Dynamically
![Page 14: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/14.jpg)
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)
![Page 15: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/15.jpg)
15
Create IT0041 and populate dates
Personnel Action Z1
Create Date Types
![Page 16: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/16.jpg)
16
End Result
![Page 17: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/17.jpg)
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
????????
![Page 18: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/18.jpg)
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
![Page 19: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/19.jpg)
19
Walk Through: Update Existing Date Type
Example:
In the Org
Reassignment
Action,
Pay Scale
Group is
updated on
Infotype 0008
(Basic Pay)
![Page 20: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/20.jpg)
20
Procedure to Update Existing Date Type
![Page 21: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/21.jpg)
21
Walk Through: Update Date Type cont’d
![Page 22: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/22.jpg)
22
Scenario 2
Default Tax Area
Based on Work Location
![Page 23: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/23.jpg)
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)
![Page 24: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/24.jpg)
24
PSA=157
Work Tax
=KY0J
Scenario 2 – Default Tax Area
Based on IT0001-Org Reassignment
![Page 25: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/25.jpg)
25
End Result
![Page 26: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/26.jpg)
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??????
![Page 27: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/27.jpg)
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!
![Page 28: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/28.jpg)
28
Walk Thru – New Dynamic Action
![Page 29: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/29.jpg)
29
Procedure for new dynamic action…
![Page 30: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/30.jpg)
30
Walk Thru – New Dynamic Action cont’d
![Page 31: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/31.jpg)
31
Scenario 3
From IT0002-Personal Data
Create IT0021-Family Member
![Page 32: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/32.jpg)
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
![Page 33: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/33.jpg)
33
Create IT0021 Family Related Persons
If # Deps
= 1,
Insert
IT0021
![Page 34: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/34.jpg)
34
Create IT0021 Family Related Persons
![Page 35: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/35.jpg)
35
End Result
![Page 36: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/36.jpg)
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.
![Page 37: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/37.jpg)
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.
![Page 38: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/38.jpg)
38
Determining previous entry
![Page 39: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/39.jpg)
39
Walk Through – New dynamic action
![Page 40: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/40.jpg)
40
Procedure for new dynamic action
PCL4 cluster
stores the
changes made to
infotype
documents.
![Page 41: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/41.jpg)
41
Procedure for new dynamic action
![Page 42: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/42.jpg)
42
![Page 43: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/43.jpg)
43
Family/Related
Persons Infotype
dynamically appears
first time.
Enter first dependent
information
Save
![Page 44: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/44.jpg)
44
Family/Related
Persons Infotype
dynamically appears
second time.
Enter second
dependent
information
Save
![Page 45: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/45.jpg)
45
Or you could………..
![Page 46: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/46.jpg)
46
Much Simpler code……
![Page 47: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/47.jpg)
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
![Page 48: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/48.jpg)
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
![Page 49: Dynamic Actions](https://reader033.vdocuments.mx/reader033/viewer/2022042613/541f0f807bef0ab8718b4709/html5/thumbnails/49.jpg)
Thank you for participating!
Please remember to complete and
return your session evaluation
form following this session.
Donna WendlingSherry Meyer
Session Code 301