on 06-14-2011 1:46 PM
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
Dynamic actions for the above scenarios were standrad so why going for custom specific ?
Hope you have maintained the date properly in IT0002
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@ 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....
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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Replace:
0002 FAMST 6 154 I INS,0021,1,(P0002-FAMDT),(P0002-ENDDA)
with:
0002 FAMST 6 154 I INS,0021,2,01
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After INS you have '0021'.... this should be '0002'?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.