cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Dynamic Action

Former Member
0 Kudos

Dear All,

I have to call a subroutine when a record in IT0015 is created/changed based on certain condition of IT0003(Payroll Status).

I created the following dynamic action for the same:

0015	0077		06	1	P	P0003-RRDAT<>SPACE
0015	0077		06	2	P	P0003-RRDAT<=P0003-ABRDT
0015	0077		06	3	F	CHECK_VAL(ZROUTINE)

But, despite the plausibilty conditions being true, the dynamic action is not getting triggered.

Please let me know the error I am committing.

Regards,

Kanupriya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

You just this 0015 0077 1 P PSYST-IOPER = INSERT and then you pass the subroutine with PSPAR-pernr, PSPAR-BEGDA, PSPAR-ENDDA like this. I think it will work.

thanks & regards,

sekhar.

Former Member
0 Kudos

Hi,

If fields of other infotypes are used for comparison, these must be stored in the module pool of the current infotype.

0015	0077		06	1	P	P0003-RRDATSPACE
0015	0077		06	2	P	P0003-RRDAT<=P0003-ABRDT
0015	0077		06	3	F	CHECK_VAL(ZROUTINE)

here the current infotype processed is 0015, and you are using the fields of infotype 0003, so P0003 must be accessible in module pool MP001500.

Structure named PSPAR, T001P, PSAVE and current work infotype 'PNNNN' are always can be accessed.

Pls check this point.

Good luck!

Chen Jian

Former Member
0 Kudos

Hi,

0015 0077 06 1 P P0003-RRDATSPACE

I think it should be

0015 0077 06 1 P P0003-RRDAT=SPACE (or "not equal"; sorry its not considering the actual inequality sign)

Its the little things that miss our eye!

Donnie

Former Member
0 Kudos

Hi Donnie,

Actually I am using: P0003-RRDAT NE SPACE (It is not showing not equal to sign here).

It is written correctly in my dynamic action, I think I committed some mistake while copying it here.

I have a doubt whether fields of other infotypes can be used for comparison directly as I have done or it has to be done in a subroutine. If it can't be used directly then this won't work.

Regards,

Kanupriya

Former Member
0 Kudos

Infotype field checks do work before calling a function. Have you debugged the routine?

Donnie