cancel
Showing results for 
Search instead for 
Did you mean: 

PO Delivery Tolerances to SNC

Former Member
0 Kudos

Hi Experts,

We need to send delivery tolerances to snc from the PO Header. We understand you can do this using the XML PurchaseOrderERPReplenishmentOrderCollaborationNotification.

We have Snc 7.0 and have the relevant business function enabled. I have also configured BUS2012 (ECC) and assigned inbound and outbound XML in SPRO in SNC.

What do i need to do to ensure that when i click save on a PO after changing or creating (ME21N), it sends an XML to the SNC system? At the moment nothing happens. Is there further configuration required in ECC? Can this XML be sent via a background job (preferrable)/report?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

in the tcode : SWETYPV the following lines need to be activated.

CL_SE_PUR_PO_WF_OUT : CHANGED : WS53800008

CL_SE_PUR_PO_WF_OUT : CREATED : WS53800008

But even for these things to work, the work flow customizing need to be done, or else the PO xml will not be sent out of ERP.

in the Tcode: SWU3, maintain the automatic workflow customizing.

Thanks,

Krishna

Former Member
0 Kudos

How do i maintain the Automatic Workflow via SWU3?

Former Member
0 Kudos

Hi Dominic..

Setting Up Automatic Workflow Customizing

1. In transaction SM59, create a logical connection for SAP Business Workflow (for example, WORKFLOW_LOCAL_900).

2. On the SAP Easy Access screen, choose Tools ® Business Workflow ® Development ® Utilities ® Automatic Workflow Customizing.

3. Activate all the nodes by choosing the Perform Automatic Workflow Customizing pushbutton or by pressing F9.

The following nodes do not need to be activated:

§ Schedule Background Job for Event Queue

§ Maintain Prefix Numbers

Best Regards

Vinod

Former Member
0 Kudos

Could you please be more specific to checking the workflow for PO XML send? Thanks

Former Member
0 Kudos

Hi,

In addition to the above reply.,

when you are creating a RFC conneciton "WORKFLOW_LOCAL_900", make sure you are replacing 900 by the client number of your ERP system.

Thanks,

Krishna

Former Member
0 Kudos

I have checked these settings and unfortunately, I am still not getting an XML/PO in SNC when creating using ME21N etc.

Former Member
0 Kudos

Hi Dominic

Sorry for late reply

Could you please make sure

1. The Badi PUR_SE_PO_INTERFACE_OUT_SELECT is active in your ERP system

2. Go to se11 view : V_T175SOA, display the table view, press (cntrlshiftf10) view the contents of table

make sure you have the following entry

Context : 1 Purchase Order Created/ Changed

Service Id: 3 CL_SE_PUR_POERPROCOLLABNOTIF

Also go to trnx /Npftc_dis

input Tasktype : WS Workflow Template

Task: 53800008

Display and go to tab Triggering Events

Make sure two entries are maintained for object type CL_SE_PUR_PO_WF_OUT and Events Created & Changed and in active status(Green color button)

Please let me know any issues

Best Regards

Vinod

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dominic

Please refer this thread

SXI_MONITOR -for monitoring xmls

If xml is not triggered check logs st22 and slg1

Best Regards

Vinod

Former Member
0 Kudos

Hi Vinod

I have seen that forum page before and used it up till now. Ive checked the business function and it is set to active. When creating a purchase order, is there a specific order type that will only be sent via XML?

Should there be a message output for the PO? Usually we use NEU and the PO gets sent via the ORDERS.ORDERS05 IDOC. We dont want this however as we want XML messages for delivery tolerance to be sent to SNC.

Thanks

Edited by: Dominic Fernando on Jan 5, 2011 9:49 AM

Former Member
0 Kudos

Hi Dominic

Go to swetypv

Object Category: ABAP CLASS

Object Type: CL_SE_PUR_PO_WF_OUT

Event: Created & Changed

Activate the linkage type field "Linkage Activated" check box

Now the xml will start triggering

is there a specific order type that will only be sent via XML?

Ans: No, irrespective of the order type this is triggerd, the workflow is designed that way

If you want to use xml no need of output types

If you want use idocs to send this information, there is user exit provided by SAP, refer this note 373647

Happy New Year

Best Regards

Vinod

Former Member
0 Kudos

That Object Type does not exist...should i add it?

I have the ability to add the entry but need to know the further fields

e.g Reciever Type? Receiver function module etc.

Thanks..if this works ill give you as many points as i can!

Edited by: Dominic Fernando on Jan 5, 2011 10:12 AM

Edited by: Dominic Fernando on Jan 5, 2011 10:15 AM

Former Member
0 Kudos

Hi Dominic

Object Category: CL ABAP Class

Object Type: CL_SE_PUR_PO_WF_OUT

EVENT: CREATED

RECIEVER TYPE : WS53800008

Reciver Call : Function Module

Reciever Funtion Module: SWW_WI_CREATE_VIA_EVENT_IBF

Event Delivery Using tRFC(Default)

Linkage Activated: ticked

Behavior: system defaults

Reciver Status:No Errror

Object Category: CL ABAP Class

Object Type: CL_SE_PUR_PO_WF_OUT

EVENT: CHANGED

RECIEVER TYPE : WS53800008

Reciver Call : Function Module

Reciever Funtion Module: SWW_WI_CREATE_VIA_EVENT_IBF

Event Delivery Using tRFC(Default)

Linkage Activated: ticked

Behavior: system defaults

Reciver Status:No Errror

Best Regards

Vinod

Former Member
0 Kudos

Unfortunately this did not trigger the sending of XML when creating a PO using ME21N. Not sure what else needs to be done.

I have:

AGD EHP4 with Business Function Active - Yes

SNC 7.0 - Yes

Activated Linkage as specified above - Yes

I use ME21n to create a PO with NB Order type. I check XML monitor in SNC and no messages are there and no PO recieved in SNC.

Anything missing?

Former Member
0 Kudos

Hi Dominic

This is the basic setup required to trigger xml

look like some problem with workflow WS53800008

Go to transaction swi2_freq and run for the day you created po's & mark all workitem types

Did you get any errrors???

Best Regards

Vinod

Former Member
0 Kudos

Hi went to the transaction mentioned. There were 81 entries. I changed a PO quanity in ME22N for a PO which was previously sent to SNC (EDI ORDERS05) and saved. There was no additional entries in the swi2_freq transaction.

Seems as though nothing is triggering the workflow you mentioned.

Edited by: Dominic Fernando on Jan 6, 2011 9:22 AM

Former Member
0 Kudos

Hi Dominic

Take help of administrator (who knows abap)

Test the workflow ws53800008 using swus transaction

like input the data EBELN ---YOUR PO NUMBER

EVENT_NAME----


CREATED

Then you will have idea whats going wrong???

Best Regards

Vinod