10-29-2007 8:32 PM
Hi,
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.
Thanks,
Venkat.
10-29-2007 8:36 PM
Hi,
You can use user exits EXIT_SAPLV56K_002 for validation purposes.
Regards,
Ferry Lianto
10-29-2007 8:36 PM
Hi,
You can use user exits EXIT_SAPLV56K_002 for validation purposes.
Regards,
Ferry Lianto
10-29-2007 8:37 PM
Can it be used for Changing the Status of the IDoc? That means, updating the Status Record of the IDoc?
Please let me know.
Thanks,
Venkat.
10-29-2007 8:40 PM
Hi,
You just need to raise an exception i.e. DATA_NOT_RELEVANT_FOR_SENDING in user exits EXIT_SAPLV56K_002 when the validation is not matched.
Regards,
Ferry Lianto
10-29-2007 9:08 PM
I have tried raising both the exceptions but they dont work. At the end, all I need to get is, when I go to WE05, I should see the IDoc with Status 26. Is there anyway, we can do it from RSNASTED?
Thanks,
Venkat.