Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

10 Answers

  • avatar image
    Former Member
    May 06, 2011 at 04:20 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    May 16, 2011 at 03:59 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    May 17, 2011 at 12:10 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 17, 2011 at 12:11 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    May 18, 2011 at 08:26 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2011 at 10:32 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2011 at 03:56 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    May 19, 2011 at 08:52 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    May 19, 2011 at 09:29 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • avatar image
    Former Member
    May 31, 2011 at 10:08 AM

    The issue was solved after implementing the following notes:

    1502213

    1505728

    1507011

    1538788

    1551540

    1585343

    Add comment
    10|10000 characters needed characters exceeded