cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic action on a global management infotype.

Former Member
0 Kudos
64

Hello Gurus,

I have a scenario where i need to create a dynamic action on a MGE infotype on infotype 0000.i.e When i run action Termination, death and retirement, Infotype 758 should get delimited. We might have one record (758) or multiple record for an employee. My client wants me to write a Dynamic action for the same.  I am new to writing Dynamic actions and i need Help urgently.

Points shall be awarded .

Thanks in Advance.

Preethi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Find the below thread. it will provide exact solution to you I suppose.

http://scn.sap.com/thread/1855723

Thanks

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey Ritz,

Thanks a ton.. that really helped me with the solution, But i am getting the same error as mentioned in the thread. The delimiting of the infotype is popping up though i have given /D. I dont have the subtype mentioned in the thread.

This is an urgent issue and i need immediate help.

Thanks,

Preethi

Former Member
0 Kudos

Is IT0758 defined in the termination, death and/or retirement infogroup?

Former Member
0 Kudos

HI Scott,

No, I have not defined IT0758 In these actions. Im using a dynamic action on action 0000 to delimit entries in IT0758.

The code i have written is

0000 MASSN 6 8 p PSPAR-MASSN= 'ZA'/X

0000 MASSN 6 9 p PSPAR-MASSN= 'ZB'/X

0000 MASSN 6 10 p PSPAR-MASSN= 'ZC'/X

0000 MASSN 6 11 I LIS9,0758,,,(P0000-BEGDA),(P0000-ENDDA)/D

Former Member
0 Kudos

Ok, just wanted to be sure that the infotype wasn't defined there as well.  Now, in regards to your infotype, you mentioned that the employee may have multiple records... does that mean your infotype has multiple subtypes?

Former Member
0 Kudos

Noh. There are no subtypes being mainted here. the Infotype 758 has multiple records of different date. So when i execute the action with the above code, The Delimit infortpe 758 screen is coming up with the lastest entry and i ahve to manually choose that and delimit it.

I want to know if there is a way this can happen in the background

Former Member
0 Kudos

Can you provide a screen shot of the overview screen for an employee with multiple records?

Former Member
0 Kudos

Its like multiple records for any other action. WHen u check in the overview.

Former Member
0 Kudos

To me it sounds as if it the dynamic action is not able to determine which record to delimit in the background, thus bringing up the screen for the user to choose.  I would talk to a developer to see about writing a custom routine that your dynamic action can call that determines the active record that needs to be delimited.  Hope that makes sense!  We do something similar for an infotype that has multiple subtypes where the BEGDA needs to be adjusted based on the action being performed.

Former Member
0 Kudos

Thats a very important input. Thanks Scott really appreciate it.  I have the solution now with that code. So i think if the user has multiple records, the user will do it manually. Thanks a lot.

Closing the thread on solving the issue.

Thanks to all you guys who helped me

Former Member
0 Kudos

Yes.user can manually delimit the info type records.

Former Member
0 Kudos