Skip to Content
0

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

Oct 22, 2017 at 10:09 AM

95

avatar image

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.

10 |10000 characters needed characters left characters exceeded

Hi everyone,

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

Thanks.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Nov 02, 2017 at 09:38 AM
0

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

Show 5 Share
10 |10000 characters needed characters left characters exceeded

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.

0

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.

0

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,

0

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*

0

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.

0
Raymond Giuseppi
Nov 03, 2017 at 06:36 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded