Skip to Content

call a routine in a dynamic action.

Hi Experts,

i want to write a routine in which i can give the error msg while saving the infotype 0002 incase the given condition is not fulfilled.

Can you tell me where i can write this routine and how to call it in a dynamic action.

i hav written other types of dynamic actions before but never called any routine before

Plz give me the detailed info regarding writing a routine.

regards

TS

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 12:09 PM

    Hello TS,

    You can do that using F in Indicator for step but iam not sure whether it will return an error message. We have user exits for this which might solve your issue. We have userexit PBAS0001 and in this EXIT_SAPFP50M_002 Function module, we need to write the code which ever you want to do.

    For Calling FORM in Dynamic actions.

    P - Check conditions

    I - Maintain infotype record

    W - Set default values when creating a new record

    V - Reference to another step

    F - Call routine

    M - Send mail

    Say you have a program ZTEST. In this you need to write the form that needs to be called in dynamic action and say for ex:form_test.

    You can fill only structure RP50D values, because these values you can get it back to dynamic action. ypu can check for examples in dynamic actions it self which have 'F' indicator step.

    Regards,

    Kiran I

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member TS SAP HCM

      Hello,

      DO you want this error message when ever user saves the IT0002 or only at hiring.

      If it is every time then we need to find the hiring date and check.

      For this we need to check whether any project in smod is created for this user exit.

      I can give you an idea,

      1) In SMOD create a project, and assign enhancement PBAS0001.

      2) Select the components function module exits EXIT_SAPFP50M_002.

      3) Double click on the Include zxp....

      4) if alerady exits then check is there any code for IT0002.

      In this include we need to write the coding.

      Regards,

      Kiran I

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 12:32 PM
    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.