cancel
Showing results for 
Search instead for 
Did you mean: 

Query regarding Dynamic Action

former_member60840
Participant
0 Kudos

Hello.

Need to configure a dynamic action for-

User updates IT2002(Attendances)-Night Roster,which triggers Absence Quota(2006) to create quota namely "Comp Off",Entitlement-1 Day,Validity-60 Days

Please suggest.

Regards

Jyo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jyothika,

Try to do your own using below link & any issue let me know

http://sapfunctional.com/HCM/DynamicActions/Index.htm

former_member60840
Participant
0 Kudos

Dear Mr Kedar,

Thank you for your reply. PFB the dynamic action I cud design.

InfotypeSubtypeFieldFCNoSVariable Function Part
20022040
41
* IT2002-NIGHT ROSTER TO IT2006-COMP OFF QUOTA
20022040
42
T001P-MOLGA='40'
20022040
43
PSAVE-INFTY='2002'
20022040
44
PSAVE-SUBTY='2040'
20022040
45P(P2002-BEGDA)=(P2002-ENDDA)>60
20022040
46FSET_PSAVE_BEGDA_ON_2006_RECORD(RPUPBSD0_AZV_DATES)
20022040
47IMOD,2006,04,,(RP50D-DATE1),(RP50D-DATE1)/D
20022040
48WP2006-DEEND=RP50D-DATE2

Wherein 2040 is Night Roster Subtype and 04 is comp off quota.

Kindly suggest. I am not clear on 1 day entitlement and 60 days validity part.

Regards

Jyo

Former Member
0 Kudos

Dear Jyothika,

You can try like writing a Routine to calc 60 days on begda & insert in your Actions as  below

I had taken ZHBRDYNMS in se38 & written code like below.

Hope this will resolve your issue.

former_member60840
Participant
0 Kudos

Dear Mr Kedar,

Thank you for your reply/

I tried getting to ZHBRDYNMS  in se38,but message popped up saying this program does not exist. Later.I got to know from my seniors that this program shall be written by abaper, Can you please suggest something wherein program need does not generate.

Regards

Jyo

Former Member
0 Kudos

That is my custom program which I had written for my client & given for your reference,

I think you had RPUPBSD0_AZV_DATES as your program validity, as per your config this will make validity period as 60 only you need to add 1 day entitlement and you can done it by inserting p2006-anzhl='1'

Test the same in your client & let me know whether it is triggering in pa30 or not, let me know even any issue.

former_member60840
Participant
0 Kudos

Dear Mr Kedar,

Thank you for your reply.

The dynamic action designed is-

20022040ABWTG6101*********NIGHT ROSTER QUOTA GENERATION************
20022040ABWTG6102PT001P-MOLGA='40'
20022040ABWTG6103IINS,2006,04,,(P2002-BEGDA),(P2002-ENDDA)
20022040ABWTG6106WP2006-ANZHL=P2002-ABWTG
20022040ABWTG6108FDEDUCTION_DATE(ZTM_SUB_IT2006)
20022040ABWTG6109WP2006-DEEND=RP50D-DATE1

Answers (0)