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

Getting values from Subroutine to Dynamic Action

Hi Guys,

Can any one let me know how to get the values from subroutine to DA. My requirment is when IT88 is created then i should check one perticular wagetype exist for that employee in IT14. If exists then i should delimit that record with the validity of IT88, If not won't create IT14 record.

After checking wagetype existance iam putting flag condition but how we can pass this flag value to DA for check condition.

Please let mek now if any one face such kind of requirment.

Thanks in Advance.

Narendra Katuri.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 14, 2009 at 05:56 AM

    Hey... I am able to pass that flag condition successfully..

    Still i need how we can pass Calculated BETRG to DA..

    Any idea...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 14, 2009 at 05:59 AM

    Hi Narendra,

    Take the help of the structure RP50D to store the flag value in the sub-routine pool. It has four fields and check it in dynamic actions. Just read the documentation(F1) on how to call the subroutine and you ll come to know how to use it.

    Br/Manas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2009 at 02:53 PM

    Help please...canu2019t figure what is not correct. Date will not populate in DA for P0041-DAT04 from subroutine DATE_INC_30

    Thank you very much for your time.

    Subroutine:

    form date_inc_30.

    tables: p0000, rp50d.

    rp50d-date1 = p0000-begda + 30.

    endform. " DATE_INC_30

    Dynamic Action:

    0000 MASSN 04 50 P T001P-MOLGA='32'

    0000 MASSN 04 52 P P0000-MASSN='01'

    0000 MASSN 04 53 F DATE_INC_30(ZUPP2398)

    0000 MASSN 04 55 I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)

    0000 MASSN 04 57 W P0041-DAT04=RP50D-DATE1

    0000 MASSN 04 58 W P0041-DAT01=P0041-BEGDA

    0000 MASSN 04 59 W P0041-DAT02=P0041-BEGDA

    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.