cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hi,

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.

Thanks.

Former Member
0 Kudos

Hi everyone,

Can anyone please provide any helpful input on the above query?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor
0 Kudos

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.

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Raymond,

First of all, thanks for your message. Appreciate your help.

Yes, I tried Method FILL_PARAM_ORDER_GENER of BADI(DIWPS_ORDER_CREATE ) to pass values to its Changing Parameters MATNR and GAMNG, but it is not populating the respective PMSDO fields.

Could you please suggest me how I can couple it with BADI WORKORDER_UPDATE?

Regards.

raymond_giuseppi
Active Contributor
0 Kudos

Could you first check if your method is actually executed, also check you pass correct values (internal format) with some debug (Set a break-point at start of FM WPSTS_TL_ORDER_GENER)


NB: You should also analyze the WPS generated protocol with SLG1.

Former Member
0 Kudos

Yes. My method FILL_PARAM_ORDER_GENER is getting triggered and the values are properly getting assigned to the respective parameters. I have also set Break Point in FM WPSTS_TL_ORDER_GENER, which is used by class CL_REVISION_WPS.

Observation:

1. FM: WPSTS_TL_ORDER_GENER doesn't has field MATNR/GMANG/MEINS, but it has other Service Order fields like KTEXT.

2. Observing Point 1, I tried the same Method to change the value of parameter KTEXT, and it did work to change the respective field value of the Sales Order, however the same method is not working for MATNR/GAMNG.

PS: Sorry, but I could not understand, what you meant by "WPS generated protocol with SLG1".

Regards,

raymond_giuseppi
Active Contributor
0 Kudos

Look at the call of the fill_param_order_gener method in the code of the WPSTS_TL_ORDER_GENER FM, fields like matnr should be there and passed to FM CO_IH_ORDER_GENER_5, else look for OSS notes available for your version (which one?) AFAIK those fields are here since 46c/2001...

Execute transaction SLG1 with generic object *WPS*

Former Member
0 Kudos

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.

Regards.