cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action does not trigger

Binu
Participant
0 Kudos

Hi All,

I have set this dynamic action to update spouse details when Married option is selected in IT 0002.

0002 FAMST 6 150 P >>INDIA - IT0002 UPDATE MARITIAL STATUS <<<<<<<<<<<

0002 FAMST 6 151 P T001P-MOLGA='40'

0002 FAMST 6 152 P PSAVE-FAMST<>P0002-FAMST

0002 FAMST 6 153 P P0002-FAMST='1'

0002 FAMST 6 154 I INS,0021,1,(P0002-FAMDT),(P0002-ENDDA)

For us 0 = single, 1 = Married.

Same is the case with saving children details,

0002 ANZKD 6 400 >>INDIA - IT0002 NUMBER OF CHILDREN = 2 <<<<<<<<<<<

0002 ANZKD 6 401 P PSPAR-TCLAS='A'

0002 ANZKD 6 402 P T001P-MOLGA='40'

0002 ANZKD 6 403 P PSAVE-ANZKD<'2'

0002 ANZKD 6 404 P P0002-ANZKD>'2'

0002 ANZKD 6 405 I INS,0021,2,01,,(P0002-ENDDA)

0002 ANZKD 6 406 I INS,0021,2,02,,(P0002-ENDDA)

No matter what i do, nothing happens after saving IT 2.

Please check and suggest.

Thanks,

Binu Philipose

Accepted Solutions (1)

Accepted Solutions (1)

sikindar_a
Active Contributor
0 Kudos

Dynamic actions for the above scenarios were standrad so why going for custom specific ?

Hope you have maintained the date properly in IT0002

Binu
Participant
0 Kudos

There were nothing for MOLGA = 40.

And I have maintained the dates properly.

sikindar_a
Active Contributor
0 Kudos

sorry for typo mistake it is data not dates

Binu
Participant
0 Kudos

Initially nothing happened after saving IT 0002, So I went ahead to customize it.

Former Member
0 Kudos

Why are you using

0002 FAMST 6 154 I INS,0021,1,(P0002-FAMDT),(P0002-ENDDA) in last line

0002 ANZKD 6 405 I INS,0021,2,01,,(P0002-ENDDA)

0002 ANZKD 6 406 I INS,0021,2,02,,(P0002-ENDDA)

You just waant to trigger IT0021 with subtype 1 or 2. You can only use INS,0021,2,01

Binu
Participant
0 Kudos

@ vasehgal,

Why are you using

0002 FAMST 6 154 I INS,0021,1,(P0002-FAMDT),(P0002-ENDDA) in last line

I used this statement to capture the Married date and make spouse records start date as the married date.

So as per u, I should use,

0002 FAMST 6 154 I INS,0021,1

And

0002 ANZKD 6 405 I INS,0021,2,01

0002 ANZKD 6 406 I INS,0021,2,02

plz confirm....

Former Member
0 Kudos

yes ...try it ..

Binu
Participant
0 Kudos

Hey Guys,

Changed the lines to

0002 FAMST 6 154 I INS,0021,1

and

0002 ANZKD 6 405 I INS,0021,2,01

0002 ANZKD 6 406 I INS,0021,2,02

and still not working.

Pa30 -> edit/create -> married = no action

pa40 -> create-> single or married --> have to go thru the spouse and child screens.

same for child option from PA30.

There is something missing somewhere, which m not able to figure out..

plz suggest,

Binu

Binu
Participant
0 Kudos

Do i need to change any thing through ABAP??

Former Member
0 Kudos

instead of using FC 06, use FC 04.

Former Member
0 Kudos

Hi

Why are you using change & Create just use Create.

"04 for Create

06 for Change and create"

R K

Answers (6)

Answers (6)

Binu
Participant
0 Kudos

Hi Sikindar, Gemini Twin ,vasehgal, RK, Apoorwa, Kumarpal Jain,

Apologies for sharing the result this late. The Dynamic Action logic worked the moment I added the factor TCLAS A & B.

Have pasted the code below:

0002 ANZKD 06 401 P PSPAR-TCLAS='A'

0002 ANZKD 06 402 P T001P-MOLGA='40'

0002 ANZKD 06 403 P P0002-ANZKD='1'

0002 ANZKD 06 404 I INS,0021,2,01

0002 ANZKD 06 405 P PSPAR-TCLAS='A'

0002 ANZKD 06 406 P T001P-MOLGA='40'

0002 ANZKD 06 407 P P0002-ANZKD='2'

0002 ANZKD 06 408 I INS,0021,2,01

0002 ANZKD 06 409 I INS,0021,2,02

0002 FAMST 06 150 >>>>>>>INDIA MARTIAL STATUS UPD<<<<<<<<

0002 FAMST 06 151 P PSPAR-TCLAS='A'

0002 FAMST 06 152 P T001P-MOLGA='40'

0002 FAMST 06 153 P P0002-FAMST='1'/X

0002 FAMST 06 154 P P0002-FAMST='2'/X

0002 FAMST 06 155 I INS,0021,1,,(P0002-FAMDT),(P0002-ENDDA)

0002 FAMST 06 156 I INS,0021,1,,(P0002-FAMDT),(P0002-ENDDA)

Binu
Participant
0 Kudos

And Points awarded to all. Thanks for your time and suggestions.

Former Member
0 Kudos

Hi Binu,

Try this.. It should work.

For Spouse

IType Subtype Field

0002 FAMST 06 150 P **** INDIA - IT0002 UPDATE MARITIAL STATUS *******

0002 FAMST 06 152 P T001P-MOLGA='40'

0002 FAMST 06 154 P P0002-FAMST='1'

0002 FAMST 06 156 I INS,0021,1,,(P0002-FAMDT),(P0002-ENDDA)

In the condition above, In the Line no. 156, you have not mantained additional Comma(1,,(P0002-FAMDT))..check this and it would work.. Also, i cannot make out if you have maintained the value FAMST in Field or Subtype.... You need to maintain the Value in Field.

Also in case you want to maintain the Date of Marriage captured in IT0002 in IT0021, the above line of code would work. However, you will have to maintain Marital status and Since field at the same time.

It is advisable, that you clear both the fields and retest again after you implement the above code.

For Children

0002 ANZKD 06 400 ********INDIA - IT0002 NUMBER OF CHILDREN = 2 ******

0002 ANZKD 06 401 P PSPAR-TCLAS='A'

0002 ANZKD 06 402 P T001P-MOLGA='40'

0002 ANZKD 06 403 I INS,0021,2,01,(P0001-BEGDA),(P0002-ENDDA)

0002 ANZKD 06 403 I INS,0021,2,02,(P0001-BEGDA),(P0002-ENDDA)

0002 ANZKD 06 403 P PSAVE-ANZKD<'2'

0002 ANZKD 06 404 P P0002-ANZKD>'2'

By writing the two conditions above, what you are asking the system is to check if the values in the field ANZKD is greater than 2, and also check if the previous value in that field if it is less than 2; then perform the conditions.....Because on the header text commented, you wrote that INDIA - IT0002 NUMBER OF CHILDREN = 2; which makes me understand that; if the value in ANZKD is maintained as 2, call the infotype 0021 with Subtype 2 (Child) - two times, with child number 01 and Child number 02.

Hope this helps.

Good Luck,

Kumarpal Jain.

Former Member
0 Kudos

Hi,

Please add this and try for insert.

P T001P-MOLGA='40'

I INS,0021,1,(P0002-FAMDT),(P0002-ENDDA)

W P0021-BEGDA=P0002-FAMDT

W P0021-ENDDA=P0002-ENDDA

Rgards,

ARU

Binu
Participant
0 Kudos

Hi All,

I have changes FC to 04

and the code looks like this as per your suggestions:

0002 FAMST 04 150 P >>INDIA - IT0002 UPDATE MARITIAL STATUS <<<<<<<<<<<

0002 FAMST 04 151 P T001P-MOLGA='40'

0002 FAMST 04 152 P P0002-FAMST='1'

0002 FAMST 04 153 I INS,0021,1,(P0002-FAMDT),(P0002-ENDDA)

0002 FAMST 04 154 W P0021-BEGDA=P0002-FAMDT

0002 FAMST 04 155 W P0021-ENDDA=P0002-ENDDA

Result: Negative

PA30 - Create/change - 0002- upade Status 'Married = 1' - Save = no action.

I am confused about the issue now.

plz suggest..

Binu

Former Member
0 Kudos

Hi Benu,

Please dont be confused because I have written the same code and its working fine let me explain you

USe:

0002 06 151 P T001P-MOLGA='40'

0002 06 152 P P0002-FAMST='1'

0002 06 153 I INS,0021,1,(P0002-FAMDT),(P0002-ENDDA)

0002 06 154 W P0021-BEGDA=P0002-FAMDT

0002 06 155 W P0021-ENDDA=P0002-ENDDA

**no need to use field name and 04 and 06 its upto your requirement.

Use this code it will work. And share the result.

Regards,

ARU

Former Member
0 Kudos

Hi Binu,

Have you tried the code that i have written above?

Else drop me an e--mail listed on my profile with your number..and i can try to help you out..

Regards

Kumarpal Jain.

former_member201275
Active Contributor
0 Kudos

Replace:

0002 FAMST 6 154 I INS,0021,1,(P0002-FAMDT),(P0002-ENDDA)

with:

0002 FAMST 6 154 I INS,0021,2,01

former_member201275
Active Contributor
0 Kudos

Please ignore my last comment... I had lost the plot.

I think the parameters of your INS statement may be incorrect. All of our dynamic actions for 0021 look as follows: INS,0021,2,01

Binu
Participant
0 Kudos

@ Gemini,

Thats how I have mapped too... I think its something more than the parameters cos I have tried different permutations and combinations, no matter wht I do to IT 2, IT 21 doesnot show up..

Any suggestions to get that thing happen..

Former Member
0 Kudos

Exclude 0002 FAMST 6 152 P PSAVE-FAMST<>P0002-FAMST

Try using INS,0021,1,,(P0002-FAMDT),(P0002-ENDDA)

Check the standard dynamic action written for country grouping 29 or 32.Just copy the same and change molga.

Edited by: vasehgal on Jun 14, 2011 3:37 PM

former_member201275
Active Contributor
0 Kudos

After INS you have '0021'.... this should be '0002'?

Binu
Participant
0 Kudos

I need to update 0021 , hence thot of keep 0021 after INS