Skip to Content

Update Material No. Field of Service Order through MEB (Tcode WPS1)


Is there any option of updating PMSDO fields(MATNR, MENGE & MEINS) of Service Order, while creating Service Orders through Tcode WPS1(MEB - Maintenance Event Builder).

Please suggest, if there is any BADI or Exit to meet the requirement.

Would highly appreciate any prompt suggestions on this.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 02, 2017 at 09:38 AM

    Did you try something with a WPS BAdI like DIWPS_ORDER_CREATE coupled with classic BAdI WORKORDER_UPDATE?

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Raymond,

      Field MATNR is getting passed to both BADI method 'FILL_PARAM_ORDER_GENER' and the FM 'CO_IH_ORDER_GENER_5'.

      Also, I could observe in debugging the FM 'WPSTS_TL_ORDER_GENER', that the value that I have passed to parameter MATNR in method 'FILL_PARAM_ORDER_GENER' is getting passed to FM 'CO_IH_ORDER_GENER_5' with variable L_MATNR .

      However, the result is same. Its not updating the Service Product(PMSDO-MATNR) value of Service Order.


  • Nov 03, 2017 at 06:36 AM

    Yes but which values does the FM pass to parameter PMSDO_PROPOSAL, you should continue the debug during CO_IH_ORDER_GENER_5 execution.

    Also, ask SD, CS functional, as AFAIK those fields are usually filled when order is created from within a sales order item?

    If you find no suitable enhancement/BAdI available for the table fields you required, then consider using method ORDERS_CREATE of BAdI DIWPS_ORDER_CREATE and create yourself the order per your requirement, or export some data to memory and use any other BAdI/Enhancement to move those to PMSDO.

    Add comment
    10|10000 characters needed characters exceeded