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

Pass runtime value from a user exit busineess object method

Hi All,

I'm trying to pass runtime value of schedule line cat. from a user exit MV45ZFZB to a custom method in business object. I tried with set parameter, but there is no use. actually i need the runtime value in the business object, i will use this value to build a query here.

Thanks

VT.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2006 at 03:13 AM

    You can place items in the task container and then pass to the method by using the SAP_WAPI_WRITE_CONTAINER function module. However, if your workflow is triggered by an event, that doesn't happen until the data is saved to the database which is after all the user exits in MV45AFZB have been executed.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2006 at 11:14 AM

    Hi VT,

    How do you call the BOR's method from User Exit?

    Are you triggering a workflow from User exit?

    Let's know...

    Regards,

    <i><b>Raja Sekhar</b></i>

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi,

      try to use this code, may be this is helpfull to you.

      *--


      EVENT RELATED DEFINITIONS--


      DATA: EVENT_CREATOR LIKE SWHACTOR, "HOlds event creator's login id

      • jeventid like SWEDUMEVID-EVTID, "Return parameter given Event ID

      • inforec type swc_object, " Business Object(BO) reference

      REQKEY LIKE SWEINSTCOU-OBJKEY,"Key Field of BO

      • * ev_container type SWCONT occurs 0 with header line.

      EV_CONTAINER LIKE SWR_CONT OCCURS 0 WITH HEADER LINE.

      *----


      EV_CONTAINER-ELEMENT = 'plant'.

      EV_CONTAINER-VALUE = P_PLANT.

      APPEND EV_CONTAINER.

      CLEAR EV_CONTAINER.

      CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'

      EXPORTING

      OBJECT_TYPE ='zptrav'

      OBJECT_KEY = 'number'

      EVENT = 'start'

      COMMIT_WORK = 'X'

      EVENT_LANGUAGE = SY-LANGU

      • * IMPORTING

      • * RETURN_CODE =

      • * EVENT_ID =

      TABLES

      INPUT_CONTAINER = EV_CONTAINER

      • * MESSAGE_LINES =

      • * MESSAGE_STRUCT =

      .

      COMMIT WORK.

      regards

      sankar

      Message was edited by: sankar surya

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.