Skip to Content
author's profile photo Former Member
Former Member

Problem in Dynamic Action

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2009 at 05:32 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2009 at 06:18 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 08:43 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.