cancel
Showing results for 
Search instead for 
Did you mean: 

MM Service PO created as a regular (material) order in SUS

0 Kudos

Dear experts,

We are on SRM 7 and ECC 6 EhP 4 and we have set up the MM-SUS scenario.

What do I need to configure in order to get a service order in SUS?

I have created a simple service PO in MM (Item Type D).

After replication to SUS it is coming in as a regular SUS order and not as a service order.

The system is expecting these follow on documents:

- Purchase Order Response

- Shipping Notification

- Invoice

I was expecting a confirmation as following document in order to create a SES. But that is not the case.

Am I missing something?

Thanks for your help

Accepted Solutions (0)

Answers (10)

Answers (10)

0 Kudos

The issue was solved after implementing the following notes:

1502213

1505728

1507011

1538788

1551540

1585343

Former Member
0 Kudos

Hello Djurick,

Would you be able to put end to end steps you performed to get the service PO sent form MM to SUS.

This will be very helpful and appreciated !!

Regards,

-Devi Swain

joseph_fryda2
Participant
0 Kudos

hi,

I have a question regarding the output determination of the PO: it is should be EDI? it is a must to activate the following Business Functions  in your ECC system : LOG_MM_P2P_SE_1,ESOA_OPS01,ESOA_OPS_2,LOG_MM_CI_2.?

Regards,

Joseph

Former Member
0 Kudos

Right Joseph. You need to activate the LOG_MM switches. Which EHP are you in ECC?

Also you need activate the event linkages for CL_MM_PUR*....

You can still send an IDco if you want with the old way of adding message of type EDI in output determination.

Regards

joseph_fryda2
Participant
0 Kudos

Hi,

Thanks for your response

We are using ECC EHP4

I don't understand you need activate the event linkages for CL_MM_PUR*....

Do you have some doc to send me?

Thank you,

Joseph

0 Kudos

Hi Nikhil,

I have done the changes as you requested.

After creating a new PO I checked the event linkage and it was still active.

SXI_Monitor shows no different behaviour.

Kind regards,

Djurick

Former Member
0 Kudos

Hi,

Pl once again check if the yellow light next to the business functions is on.

Then under SPROXY in your ECC system, check if the outbound interface is active.

Regards,

Nikhil

ryan_gao
Advisor
Advisor
0 Kudos

Hello Djurick,

Please refer note 1317798.

In BAdI PUR_SE_PO_INTERFACE_OUT_SELECT, you can select which service will be used to send this message to SUS.

I think you use the wrong service name.

Please refer following mapping.

Service Class

-


PurchaseOrderERPConfirmation_Out CL_SE_PURERPCONFIRMATION

PurchaseOrderCreatedInformation_Out CL_SR_PUR_POCTREDINFO

PurchaseOrderChangedInformation_Out CL_SR_PUR_POCHGEDINFO

PurchaseOrderERPReplenishmentOrderCollaborationNotification_Out CL_SE_PUR_POERPROCOLLABNOTIF

PurchaseOrderERPRequest_Out_V1 CL_SE_PUR_POERPREQ_OUT

Also, you can check Class CL_SE_PUR_INTERF_OUT_SELECT_EX for sample code.

Besure following service_name in ct_service_name.

lv_service_name = 'PurchaseOrderERPRequestMessage'. "#EC NOTEXT

APPEND lv_service_name TO ct_service_name.

Normally, only one entry in ct_service_name, so you may empty the ct_service_name first.

May it can help you.

Ryan.

0 Kudos

Hello Nikhil,

I have done the changes as requested by you.

The settings are as follows:

Object Category: BOR Object Type

Object Type: BUS2012

Event: Created/Changed

Receiver Type: WS53800008

Receiver Call: Function Module

Receiver Function Module: SWW_WI_CREATE_VIA_EVENT_IBF

Check function module: OPS_SE_PUR_CHANGED_EVENT_CHECK

Receiver Type Function Module <<blank>>

Destination of Receiver: <<blank>>

Event Delivery: Using tRfc (Default)

Linkage activated <<checked>>

Enable event Queue <<checked>>

Behaviour upon Error Feedback: Mark Linkage as having errors

Receiver Status: Errors

After creating a Service PO (Item category D) I didn't notice any difference than before.

SXI_MONITOR displays 1 XML file. Sender Interface = PurchaseOrderCreatedInformation_Out and with status processed succesfully.

Also SWIA is not showing any errors. WS53800008 is completed.

Any other suggestions?

Former Member
0 Kudos

Hi Djurick,

Please leave Check function module as blank.

Also once you have created a PO, please go to SWETYPV and check if the 'Type Linkage Active' is still checked for BUS2012 (Created/changed).

Pl once again check if the yellow light next to the business functions is on.

Regards,

Nikhil

0 Kudos

Hi,

I'm no expert but isn't this standard BADI delivered by SAP? Shouldn't the conditions be adapted in order for the correct PO's to be sent to PI? Currently I see only a sample code in the system.

Please clarify

Former Member
0 Kudos

Hi Djurick,

Pl check if after PO creation the event linkages for BUS2012 (created/changed) are checked. If there are errors in event linkage, the check box automatically disappears after a PO is created and hence no XML is generated.

Do you mind changing the setting as mentioned?

Check Enable event queue.

Behavior Upon Error Feedback : Mark linkage as having errors

Receiver Status : Error

Once you have saved this.... then create a PO again and check in SXMB_MONI of your ECC system.

Pl do the above and get back.

Regards,

Nikhil

0 Kudos

Hi Nikhil,

Only PurchaseOrderCreatedInformation_Out is being generated in ECC.

PurchaseOrderERPRequest_Out_V1 is not there at all.

Event Type Linkages:

Object Category: BOR Object Type

Object Type: BUS2012

Event: Created/Changed

Receiver Type: WS53800008

Receiver Call: Function Module

Receiver Function Module: SWW_WI_CREATE_VIA_EVENT_IBF

Check function module: OPS_SE_PUR_CHANGED_EVENT_CHECK

Receiver Type Function Module <<blank>>

Destination of Receiver: <<blank>>

Event Delivery: Using tRfc (Default)

Linkage activated <<checked>>

Enable event Queue <<unchecked>>

Behaviour upon Error Feedback: System defaults

Receiver Status: No Errors

What I can see in tx SWIA is that WF WS53800008 is being triggerred.

So what you are saying is that this WF is suppose to trigger the BADI?

I'm not sure this is happening. Is there a way for me to check that?

0 Kudos

Hello Nikhil,

Thanks again for your reply.

Both notes have already been implemented as we are on ECC6 EhP 4 SP 6 and SRM 7 SP 9.

All business functions you mentioned here are active.

Nevertheless I have created a PO with Item Category "D" and when I check in SXI_MONITOR it has created a PurchaseOrderCreatedInformation_Out. I'm expecting a PurchaseOrderERPRequest_Out_V1.

I have no Idea what to do next.

Is there something else I can check?

Any suggestions?

Former Member
0 Kudos

Hi,

I am stating again please implement the BADI PUR_SE_PO_INTERFACE_OUT_SELECT if you need service hierarchy support.

For BADi implementation please check Note 1317798, this has a sample code and you just need to modify few parameters in the code to suit your system.

I hope you have maintained the following too:

Maintain Event Type Linkages for Purchase Order Output in PurchaseOrderERPRequest_Out_V1 SOA Service (Supplier Self-Services Scenario)

Run transaction Display/Maint. Event Type Linkages (SWETYPV).

Choose New Entries.

In the Object Types field, enter CL_SE_PUR_WF_OUT.

In the Event field, enter CREATED.

In the Receiver Type field, enter WS53800008.

In the Receiver Function Module field, enter SWW_W1_CREATE_VIA_EVENT_IBF.

Select the Linkage Activated checkbox.

Save your entries.

Choose New Entries.

In the Object Types field, enter CL_SE_PUR_WF_OUT.

In the Event field, enter CHANGED.

In the Receiver Type field, enter WS53800008.

In the Receiver Function Module field, enter SWW_W1_CREATE_VIA_EVENT_IBF.

In the Check Function Module Field, enter OPS_SE_PUR_CHANGED_EVENT CHECK.

Select the Linkage Activated checkbox.

Save your entries.

Regards

Sam

Former Member
0 Kudos

Hi Djurick,

Is PurchaseOrderERPRequest_Out_V1 message there in RED or is it completely absent?

Can you confirm if Linkage Activated checkbox has been checked under the events CREATED/CHANGED for BUS2012.

Sam : The BADI need not be explicitly implemented as it is called internally by the tasks under workflow WS53800008.

Regards,

Nikhil

Former Member
0 Kudos

Hello Sam,

Please look into this posting of mine. I am facing a similar error on this interface. Getting an error in the wrokflow.

http://scn.sap.com/message/13557959#13557959

Request you to give me some pointers.

Thanks.

0 Kudos

Hi Sam, Nikhil,

Thank you both for your reply.

I have done the following:

ECC:

- Enable Enhancement Package for Service Procurement

- RFC Connections --> SUS and PI

- Define Port to PI

- Create Reduced Message Type Z_CREMAS_SUSMM

- Define object Class for Master data distribution

- Assign Message type Z_CREMAS_SUSMM to distribution Class Z_CRED_SUSMM

- Create distribution model

- Define Purchasing Output type NEU with processing routine EDI (RSNASTED & EDI_PROCESSING)

- Define Message schema for PO

- Partner profile setup (a.o. ORDERS and ORDCHG)

- Set up Output conditions for message type NEU (Vendor 12345678 and POrg ABCD)

- PO Output for services - Activate WF event Linkage (BUS2012, Created & Changed, WS53800008)

PI:

- XI Scenario = SE_SERVICE_PROCUREMENT

I have not implemented the BADI PUR_SE_PO_INTERFACE_OUT_SELECT.

Is this Badi required for this scenario?

Will this scenario not work without implementing this scenario?

Thanks for your reply.

Former Member
0 Kudos

Hi,

BADI PUR_SE_PO_INTERFACE_OUT_SELECT is mandatory if want the service hierarchy structure in SUS .

This is a new feature from SRM70 and is based on SOA services.

Regards

Sam

Former Member
0 Kudos

Hi Djurick,

You do not need to implement BADI PUR_SE_PO_INTERFACE_OUT_SELECT.

Pl ensure that the following notes have been implemented :1359191,1316245.

Please remember : Your service PO needs to be an XML message and not an IDOC

Then check if the following Business Functions have been activated in your ECC system : LOG_MM_P2P_SE_1,ESOA_OPS01,ESOA_OPS_2,LOG_MM_CI_2 .

After all this when you create a PO in ECC, an XML for this PO should be visible in SXMB_MONI of your ECC system. Pl check if the item category is 'D' here.

Regards,

Nikhil

0 Kudos

Hi Sam, Nikhil,

Thank you both for your reply.

I have done the following:

ECC:

- Enable Enhancement Package for Service Procurement

- RFC Connections --> SUS and PI

- Define Port to PI

- Create Reduced Message Type Z_CREMAS_SUSMM

- Define object Class for Master data distribution

- Assign Message type Z_CREMAS_SUSMM to distribution Class Z_CRED_SUSMM

- Create distribution model

- Define Purchasing Output type NEU with processing routine EDI (RSNASTED & EDI_PROCESSING)

- Define Message schema for PO

- Partner profile setup (a.o. ORDERS and ORDCHG)

- Set up Output conditions for message type NEU (Vendor 12345678 and POrg ABCD)

- PO Output for services - Activate WF event Linkage (BUS2012, Created & Changed, WS53800008)

PI:

- XI Scenario = SE_SERVICE_PROCUREMENT

I have not implemented the BADI PUR_SE_PO_INTERFACE_OUT_SELECT.

Is this Badi required for this scenario?

Will this scenario not work without implementing this scenario?

Thanks for your reply.

0 Kudos

Hello,

We have implemented the XI Scenario SE_Service_Procurement in PI.

We have activated the linkage for object type BUS2012 for the events created and changed.

When we create an order for an item with category D (Service) the system is generating an IDOC which is transferred to SUS through PI. The Service Hierarchy is not avaikable in SUS but displayed as a flat Item with the total for the service item.

I expected the system to generate an XML instead of an Idoc.

Can anyone help me with this issue?

Former Member
0 Kudos

Hi Djurick,

When you create an order for an item with category D (Service) the system should not generate an IDOC, but an XML message which is transferred to SUS through PI.

Request you to list down the steps you have already done in the config so that I can help you accordingly.

Regards,

Nikhil

Former Member
0 Kudos

HI,

Please implement the BADI mentioned in path

Materials Management->Purchasing->Enterprise Services (Purchasing)->Business Add-Ins (BAdIs) for Enterprise Services in Purchasing

This badi will generate xml instead of the idocs and as this uses the SOA services your service hierachy will be maintained in the SUS also after the PO transfer

Hope this helps

-Sam

Former Member
0 Kudos

Hi,

Could you name the XI scenario you have used for this setup?

Also activate workflows for BUS2012 object type in ECC for create/change event.

Regards,

Nikhil

Former Member
0 Kudos

HI ,

KIndly get SE_Services_Procurement & SE_Sourcing_Enhancements content in XI configured to handle both your material and service PO in SUS. Hope this helps

Regards

Sam