on 05-06-2011 3:53 PM
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
The issue was solved after implementing the following notes:
1502213
1505728
1507011
1538788
1551540
1585343
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.