I have a situation where I need to change the Status of the IDoc to Error Status "26", if some of the Mandatory Fields / Segments missing when Shipment is created (VT01N). In fact, the IDoc is created successfully with Status 03. But I want the IDoc to be errored out with Status 26, if I miss to give Special Processing Indicator or Shipping Conditions which are mandatory fields in the Shipment Document. I am using an Exit EXIT_SAPLV56K_002. Is it the right Exit to use?
I am using basic Type SHPMNT05 and Message Type SHPMNT. The Function Module is IDOC_OUTPUT_SHPMNT.
Somebody please help me.