Skip to Content

Order type PM03 Not allowed in IW31 to create

Hello,

I need to stop creating in order type PM03 in IW31 since it is created in background job.

and i have another order type and assigned to roles so I am not able to use the role control for this.

is there any other user exit for this?

Shri

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 19, 2014 at 03:36 PM

    The following code in userExit IWO10009 (Include ZXWOCU07) , will not allow PM03 Orders created directly.

    IF SY-TCODE = 'IW31' AND CAUFVD_IMP-AUART = 'PM03'.
    MESSAGE: 'Direct Order Creation not allowed for PM03 Order type' TYPE 'E' DISPLAY LIKE 'I'.
    ENDIF.

    Note that this is prevented at the time of saving the Order. The error you get is

    KJogeswaraRao


    error.JPG (25.8 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 19, 2014 at 03:36 PM


    Hi Shrithar,

    I would suggest that you create a seperate role for IW31, with restriction in order type level. For your reference use authorization Object I_AUART, Order Types with fields AUFAR - Order Type.

    Hope this will resolve your query..

    Regards,

    Joydeep..

    Add comment
    10|10000 characters needed characters exceeded