Skip to Content
0
Former Member
Jun 12, 2012 at 12:48 PM

VT01N - Generate IDOC only when Shipment Completion is pressed

408 Views

I need to have an outbound IDOC triggered only when the shipment completion button is pressed. In case the shipment is saved without pressing the shipment completion button, the shipment number should be allowed to be created, but no IDOC must be triggered.

Steps already followed -

1. I tried to code in the user exit of IDOC_OUTPUT_SHPMNT trying to raise an exception when the VTTK-STABF (Shipment completion flag) was not checked.

2. I tried to clear the IDOC control data structures in the user exit.

In both the cases the idoc is being generated with a red error line item in the messages. According to my requirement only in case of Shipment Completion being checked should a green line item for success be logged. In all other cases nothing should be logged.

Please, let me know if such a requirement is feasible or not. If feasible, please help.

Attachments