cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action Query

former_member182377
Active Contributor

Hi Team,

I have written a dynamic action for address to be created in the foreground whenever 0001 is created or changed.. It works and address infotype pop up but how ever whenever i try to default some fields it is not working i try to default district field in infotype 0006 with u1 but not working .. could you please guide me is there anything wrong in my coding .

001 06 1 P T001P-MOLGA='16'
0001 06 2 P PSAVE-BTRTL<>P0001-BTRTL
0001 06 8 I INS,0006,5,,(P0001-BEGDA),(P0001-ENDDA)
0001 06 10 I INS,0006,D102,,(P0001-BEGDA),(P0001-ENDDA)
0001 06 11 W P0006-ORT02='u1'
0001 06 20 P T001P-MOLGA='16'
0001 06 22 P PSAVE-WERKS<>P0001-WERKS
0001 06 24 I INS,0006,5,,(P0001-BEGDA),(P0001-ENDDA)
0001 06 26 I INS,0006,D102,,(P0001-BEGDA),(P0001-ENDDA)
0001 06 27 W P0006-ORT02='u1'

as you can see distruct.suburb field is still empty.. but dates are defaulted correctly..

Could you please help me out ?

Thanks

Sriram



Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

Hi Sriram,

I think you have to write the dynamic action two times with different address types.

for example:

06100PT001P-MOLGA='16'

06105PPSAVE-BTRTL<>P0001-BTRTL

06110IINS,0006,5,,(P0001-BEGDA),(P0001-ENDDA)

06120WP0006-ORT02='TEST For PSA'

06125PT001P-MOLGA='16'

06130PPSAVE-WERKS<>P0001-WERKS

06135IINS,0006,5,,(P0001-BEGDA),(P0001-ENDDA)

06145WP0006-ORT02='TEST For PA'

And same with other sub type CZ02 instead of 5.

Best Regards,

Praneeth kumar

former_member182377
Active Contributor
0 Kudos

Hi Praneeth,

thanks a lot for this.. so for each sub type i must write two times,, is that the case?

Thanks

Sriram

former_member182377
Active Contributor
0 Kudos

Hi Experts,

Any reply seems to be urgent

Thanks

Sriram