Skip to Content
author's profile photo
Former Member

passing parameters to dynamic actions

Hi all,

I created a dynamic action in table T588Z which runs a subroutine when a 0424 infotype is saved. The problem is that all my variables are empty when I enter in the subroutine.

Here is a part of my code:

REPORT ZHR_USER_EXIT.

TABLES: t001p,

p0001,

p0002,

p0003,

p0084,

p0085,

p0086,

p0088,

p0424,

p2001,

rp50d.

FORM RUN_RPUGENF1.

break-point.

data: test type persno.

test = p0424-pernr.

endform.

-


When I am in debug mode I can see that P0424 is empty and so are P0001, P0002 etc. What must I do to get values in these variables?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 17, 2007 at 02:44 PM

    i have this code and works fine for me..

    REPORT  zhr_dyn_act.
    
    TABLES : rp50d, p0041, p0000.
    
    PERFORM get_date.
    
    *&---------------------------------------------------------------------*
    *&      Form  get_date
    *&---------------------------------------------------------------------*
    *       text
    *----------------------------------------------------------------------*
    *  -->  p1        text
    *  <--  p2        text
    *----------------------------------------------------------------------*
    FORM get_date.
      DATA: date1 LIKE sy-datum.
      date1 =  p0000-begda.
      date1 = date1 - 1.
      rp50d-date1 = date1.
    ENDFORM.                    " get_date

    let me know if this helps you

    Amandeep

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 17, 2007 at 02:54 PM

    Hi,

    Can you please provide more information? (may be paste some more code)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Amandeep.

      Thanks but it didn't work either.

      I found why I couldn't get my values. My routine was in a simple program. I had to put the routine in the module pool of my infotype.

      And in the T588Z table, I wrote RUN_RPUGENF1(ZP042400) instead of RUN_RPUGENF1(ZHR_USER_EXIT).