cancel
Showing results for 
Search instead for 
Did you mean: 

How to send iDoc for TO confirmation

Former Member
0 Kudos

Hi all.

I need to send an idoc outbound from SAP to an external system when a TO is confirmed.

I've added the following row in transaction OMKY -> function module for idoc:

- type message: WMTOCO

- inactive = no

- f.m. = ZL_IDOC_CREATE_WMTCID01

Unfortunately, when I confirm TOs through LT11 or LT12, no idoc is generated (if I executed manually the custom f.m., it works fine).

I've made the same steps for TO creation and idoc generation is ok.

How could I create an idoc automatically on TO confirmation?

Thanks in advance

S

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Make sure your Partner system is setup in We20. WMTOCO message type must exist as an outbound message type. Also ensure the WMTOCO msg type for the partner is set to immediate output ( as opposed to collect)

Answers (0)