cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic action for subsytem grouping in IT0007

former_member24966
Participant
0 Kudos

Hi All,

I have a requirement to have different subsystem groupings for different groups of employees.

In the standard dynamic action when i try to insert the clause to check the country grouping it is not working.

I have made a small change, in the entire dynamic action something like below-

0007ZTERF06000PT001P-MOLGA='44'
0007ZTERF06007WP0050-BDEGR='002'  

and if

0007ZTERF06000PT001P-MOLGA<>'44'
0007ZTERF06007WP0050-BDEGR='001' 

but this is not working. Anything I need to consider to make it work? I did a quick search in old threads but nothing helped. Any pointers will be helpful.

Regards

SS

Accepted Solutions (0)

Answers (2)

Answers (2)

jagan_gunja
Active Contributor
0 Kudos

Hi Shruti

It is not possible to see where the problem is actually. Can you please post all of the relevant dynamic action lines?

br, JG

former_member24966
Participant
0 Kudos

ok here is the code-

0007ZTERF06001*Subsystem grouping
0007ZTERF06002PPSPAR-TCLAS='A'
0007ZTERF06003PT001P-MOLGA='44'
0007ZTERF06004PP0007-ZTERF='1'/X
0007ZTERF06005PP0007-ZTERF='2'/X
0007ZTERF06006PPSAVE-ZTERF='8'
0007ZTERF06007IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
0007ZTERF06008WP0050-PMBDE='01'
0007ZTERF06009WP0050-BDEGR='002'
0007ZTERF06010WP0050-GRAWG='001'
0007ZTERF06011WP0050-GRELG='001'
0007ZTERF06012PPSPAR-TCLAS='A'
0007ZTERF06013PP0007-ZTERF='1'/X
0007ZTERF06014PP0007-ZTERF='2'/X
0007ZTERF06015PPSAVE-ZTERF='9'
0007ZTERF06016IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
0007ZTERF06017WP0050-PMBDE='01'
0007ZTERF06018WP0050-BDEGR='002'
0007ZTERF06019WP0050-GRAWG='001'
0007ZTERF06020WP0050-GRELG='001'
0007ZTERF06021PPSPAR-TCLAS='A'
0007ZTERF06022PP0007-ZTERF='1'/X
0007ZTERF06023PP0007-ZTERF='2'/X
0007ZTERF06024PPSAVE-ZTERF='0'
0007ZTERF06025IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
0007ZTERF06026WP0050-PMBDE='01'
0007ZTERF06027WP0050-BDEGR='002'
0007ZTERF06028WP0050-GRAWG='001'
0007ZTERF06029WP0050-GRELG='001'
0007ZTERF06030PPSPAR-TCLAS='A'
0007ZTERF06031PP0007-ZTERF='8'/X
0007ZTERF06032PP0007-ZTERF='9'/X
0007ZTERF06033PP0007-ZTERF='0'/X
0007ZTERF06034PP0007-ZTERF='7'/X
0007ZTERF06035PPSAVE-ZTERF='1'
0007ZTERF06036IMOD,0050,,,,(PSAVE-ENDDA)
0007ZTERF06037WP0050-ENDDA=P0007-BEGDA
0007ZTERF06038PPSPAR-TCLAS='A'
0007ZTERF06039PP0007-ZTERF='8'/X
0007ZTERF06040PP0007-ZTERF='9'/X
0007ZTERF06041PP0007-ZTERF='0'/X
0007ZTERF06042PP0007-ZTERF='7'/X
0007ZTERF06043PPSAVE-ZTERF='2'
0007ZTERF06044IMOD,0050,,,,(PSAVE-ENDDA)
0007ZTERF06045WP0050-ENDDA=P0007-BEGDA
0007ZTERF06046PPSPAR-TCLAS='A'
0007ZTERF06047PP0007-ZTERF='1'/X
0007ZTERF06048PP0007-ZTERF='2'/X
0007ZTERF06049PPSAVE-ZTERF='7'
0007ZTERF06050IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
0007ZTERF06051WP0050-PMBDE='01'
0007ZTERF06052WP0050-BDEGR='002'
0007ZTERF06053WP0050-GRAWG='001'
0007ZTERF06054WP0050-GRELG='001'
0007ZTERF06055PPSPAR-TCLAS='A'
0007ZTERF06056PT001P-MOLGA< >'44'
0007ZTERF06057PP0007-ZTERF='1'/X
0007ZTERF06058PP0007-ZTERF='2'/X
0007ZTERF06059PPSAVE-ZTERF='8'
0007ZTERF06060IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
0007ZTERF06061WP0050-PMBDE='01'
0007ZTERF06062WP0050-BDEGR='001'
0007ZTERF06063WP0050-GRAWG='001'
0007ZTERF06064WP0050-GRELG='001'
0007ZTERF06065PPSPAR-TCLAS='A'
0007ZTERF06066PP0007-ZTERF='1'/X
0007ZTERF06067PP0007-ZTERF='2'/X
0007ZTERF06068PPSAVE-ZTERF='9'
0007ZTERF06069IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
0007ZTERF06070WP0050-PMBDE='01'
0007ZTERF06071WP0050-BDEGR='001'
0007ZTERF06072WP0050-GRAWG='001'
0007ZTERF06073WP0050-GRELG='001'
0007ZTERF06074PPSPAR-TCLAS='A'
0007ZTERF06075PP0007-ZTERF='1'/X
0007ZTERF06076PP0007-ZTERF='2'/X
0007ZTERF06077PPSAVE-ZTERF='0'
0007ZTERF06078IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
0007ZTERF06079WP0050-PMBDE='01'
0007ZTERF06080WP0050-BDEGR='001'
0007ZTERF06081WP0050-GRAWG='001'
0007ZTERF06082WP0050-GRELG='001'
0007ZTERF06083PPSPAR-TCLAS='A'
0007ZTERF06084PP0007-ZTERF='8'/X
0007ZTERF06085PP0007-ZTERF='9'/X
0007ZTERF06086PP0007-ZTERF='0'/X
0007ZTERF06087PP0007-ZTERF='7'/X
0007ZTERF06088PPSAVE-ZTERF='1'
0007ZTERF06089IMOD,0050,,,,(PSAVE-ENDDA)
0007ZTERF06090WP0050-ENDDA=P0007-BEGDA
0007ZTERF06091PPSPAR-TCLAS='A'
0007ZTERF06092PP0007-ZTERF='8'/X
0007ZTERF06093PP0007-ZTERF='9'/X
0007ZTERF06094PP0007-ZTERF='0'/X
0007ZTERF06095PP0007-ZTERF='7'/X
0007ZTERF06096PPSAVE-ZTERF='2'
0007ZTERF06097IMOD,0050,,,,(PSAVE-ENDDA)
0007ZTERF06098WP0050-ENDDA=P0007-BEGDA
0007ZTERF06099PPSPAR-TCLAS='A'
0007ZTERF06100PP0007-ZTERF='1'/X
0007ZTERF06101PP0007-ZTERF='2'/X
0007ZTERF06102PPSAVE-ZTERF='7'
0007ZTERF06103IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
0007ZTERF06104WP0050-PMBDE='01'
0007ZTERF06105WP0050-BDEGR='001'
0007ZTERF06106WP0050-GRAWG='001'
0007ZTERF06107WP0050-GRELG='001'
Former Member
0 Kudos

Why don't you simplify this for the purpose of testing? There seems to be duplication in the above & I think hence the Create screen is called twice.

I suggest, to test if your new crierion for Country code check & corresponding default of subsystem grp is working:

1) Keep only lines 001 to  011 and 055 to 064

2) Comment all others

Check if this works, accordingly you can extend or add whatever is required.

former_member24966
Participant
0 Kudos

ok let me try that

jagan_gunja
Active Contributor
0 Kudos

Hi Shruti

In dynamic actions, sometimes mixing "OR" (with /X) and "AND" conditions can give problems.  Hence I would suggest

a)using a function call (indc = F), to call a subroutine in a user program (you can see examples in T588Z)

b)in the subroutine, do all the plausibility checks required including different conditions as you have listed.  If successful return value/s (as required for indicator W) in RP50D structure.(which is standard SAP provided one and allows customer or user fields to be added in the include with component type CI_RP50D) - e.g., dates, indicator/s to show if the check is successful.

c)after the function call, use again P check if the function call provided a success condition 

(eg. P  RP50D-FIELD1=1)

d)if successful, use W with say BEGDA=RP50D-DATE1. etc

rgds, JG

Former Member
0 Kudos

Can you let me know the lines between the ones you mentioned? Will be easier to analyse the behavior once we see the full dynamic action.

former_member24966
Participant
0 Kudos

it is the standard dynamic action in SAP.

ZTERF06000PPSPAR-TCLAS='A'
ZTERF06001PP0007-ZTERF='1'/X
ZTERF06002PP0007-ZTERF='2'/X
ZTERF06003PPSAVE-ZTERF='8'
ZTERF06004IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
ZTERF06005WP0050-PMBDE='01'
ZTERF06006WP0050-BDEGR='001'
ZTERF06007WP0050-GRAWG='001'
ZTERF06008WP0050-GRELG='001'
ZTERF06009PPSPAR-TCLAS='A'
ZTERF06010PP0007-ZTERF='1'/X
ZTERF06011PP0007-ZTERF='2'/X
ZTERF06012PPSAVE-ZTERF='9'
ZTERF06013IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
ZTERF06014WP0050-PMBDE='01'
ZTERF06015WP0050-BDEGR='001'
ZTERF06016WP0050-GRAWG='001'
ZTERF06017WP0050-GRELG='001'
ZTERF06018PPSPAR-TCLAS='A'
ZTERF06019PP0007-ZTERF='1'/X
ZTERF06020PP0007-ZTERF='2'/X
ZTERF06021PPSAVE-ZTERF='0'
ZTERF06022IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
ZTERF06023WP0050-PMBDE='01'
ZTERF06024WP0050-BDEGR='001'
ZTERF06025WP0050-GRAWG='001'
ZTERF06026WP0050-GRELG='001'
ZTERF06027PPSPAR-TCLAS='A'
ZTERF06028PP0007-ZTERF='8'/X
ZTERF06029PP0007-ZTERF='9'/X
ZTERF06030PP0007-ZTERF='0'/X
ZTERF06031PP0007-ZTERF='7'/X
ZTERF06032PPSAVE-ZTERF='1'
ZTERF06033IMOD,0050,,,,(PSAVE-ENDDA)
ZTERF06034WP0050-ENDDA=P0007-BEGDA
ZTERF06035PPSPAR-TCLAS='A'
ZTERF06036PP0007-ZTERF='8'/X
ZTERF06037PP0007-ZTERF='9'/X
ZTERF06038PP0007-ZTERF='0'/X
ZTERF06039PP0007-ZTERF='7'/X
ZTERF06040PPSAVE-ZTERF='2'
ZTERF06041IMOD,0050,,,,(PSAVE-ENDDA)
ZTERF06042WP0050-ENDDA=P0007-BEGDA
ZTERF06043PPSPAR-TCLAS='A'
ZTERF06044PP0007-ZTERF='1'/X
ZTERF06045PP0007-ZTERF='2'/X
ZTERF06046PPSAVE-ZTERF='7'
ZTERF06047IINS,0050,,,(P0007-BEGDA),(P0007-ENDDA)
ZTERF06048WP0050-PMBDE='01'
ZTERF06049WP0050-BDEGR='001'
ZTERF06050WP0050-GRAWG='001'
ZTERF06051WP0050-GRELG='001'

I just added a country check and repeated the same code with different system subgrouping but that is not working. It gives the create screen twice with different system subgrouping.

Former Member
0 Kudos

Was asking for the sequence of dynamic actions along with the lines added by you. Where in the above have you added the country check and the default? Have you just replaced the lines in seq. no. 000 & 007?