Skip to Content

Enhancement for update PR


My requirement is to update a PR customize Zfield whenever a work order is created in transaction iw31. After the work order is created (means after user press save), the PR is also created but without the Zfield, because the Zfield is not in the screen and should be retrieve from another place.

So my question is where to update the PR exactly. I tried in the BADI WORKORDER_UPDATE through several methods such as (AT_SAVE, NUMBER_SWITCH, etc ) and also BADI IWO1_PREQ_BADI. But at the moment there, the PR is not yet being created, so I am not able to update it.

I search around saying that it is not possible to change the PR elsewhere but in the change mode of work order ( iw32). Is that so and if that happens what should I do in my case.

Please Help.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 09, 2012 at 08:04 AM

    You could CALL a Z_FM (RFC enabled) IN BACKGROUND TASK in one of the BAdI (somewhere just before COMMIT-WORK) when this FM will execute the PR will exist (Execution after end of Update tasks)



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member chin yun onn


      Put a breakpoint in GET_INSTANCE method of CL_EXITHANDLER class.

      Then create a PR through IW31, then the contol will stop each time a BADI is getting called.

      Find the suitable BADi or write a sample code and check.

      You could see your zfield in the input structure populated with other fields of your PR.(Your Zfield has to present in header structure of PR)

      Then populate your zfield and pass it to the structure before creating it in your BADI implementation.



  • Posted on Jan 16, 2013 at 08:29 AM

    Hi Chin,

    I have a similar requirement. Did you find the correct BADI to achieve this?



    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.