04-23-2014 9:55 PM
Hi,
I have a requirement in which I need to restrict the EDI IDOC if there are errors in the PO. Also as the IDOC is not created the messages (type NEU) should remain with the yellow traffic light as the IDOC is not processed. What would be the best approach to keep the traffic light yellow , I have identified the point to restrict IDOC creation but the traffic light is set to red.
Thanks,
Esha
04-24-2014 10:28 PM
Holding output from processing would be too cumbersome, but we can easily prevent the output creation by adding a custom requirement routine to the output type. Only when the specific criteria is met (i.e. no errors), the output would be generated and then processed.
Search for 'VOFM output requirement' for more detail.
04-24-2014 3:04 AM
Hello Esha,
Debug the form nast_update in RSNAST00 and this is the place where all updates related to NAST are done.
Thanks.
04-24-2014 10:28 PM
Holding output from processing would be too cumbersome, but we can easily prevent the output creation by adding a custom requirement routine to the output type. Only when the specific criteria is met (i.e. no errors), the output would be generated and then processed.
Search for 'VOFM output requirement' for more detail.
04-25-2014 8:01 PM
Hi Jelena,
Thanks for the approach, I've been exploring the VOFM output possiblities.However, as the output type ''NEU" is used across various transmission mediums, is it possible to restrict the conditions only for a certain transmission medium in the output type?
04-25-2014 8:17 PM
I don't believe it's possible to restrict only specific medium because the medium is actually determined later from the condition records. In such case I'd suggest to create a custom output type, which is not difficult to do.
04-25-2014 7:11 AM
Hello Esha,
I have identified the point tojavascript:; restrict IDOC creation but the traffic light is set to red.
Yellow light in Output type shows its Not Processed. If you are talking about exits EXIT_SAPLEINM_002/EXIT_SAPLEINM_011 they come into picture when Output type processing started. So ultimately they will have either Success/Error status.
Even by setting sy-msgty = 'W' in EXIT_SAPLEINM_002 and raising exception will not help.
You can play around with FMs mentioned in group WMCP and can check.