Let me give you the scenario first. We are using the program RSNAST00 to mass generate EDI outbound invoices that...
are transferred immediately to an output file, which is then picked up by a non-SAP software to send out to customers. Everything works fine in this process.
Recently, a customer told us that they would prefer to not receive an IDoc if the invoice is for $0. We have been unable to find a way to prevent an IDoc from being created from such invoices. Can you suggest a solution?
We used VOFM to create a procedure for the EDI output type, which checks the invoice amount and if it's 0, returns subrc as false. This works when you actually change the invoice but does not get triggered when RSNAST00 is used.
Next we looked for user exits where we could influence the status/delete the IDocs, etc., but the function module being used J_4A_IDOC_OUTPUT_INVOIC does not provide any useful exits for outbound invoices, especially with RSNAST00 as the triggering program.
We have also looked for a way to delete the IDocs before transferring, but have been unable to find a program to delete IDocs. WE09 allows a search to retrieve the IDocs, but is there a way to then delete (or even change the status of selected IDocs) so that they won't get processed?
Dig Deeper on SAP interface technologies
Related Q&A from Axel Angeli
An SAP user wants to know how to upload data into SAP R/3 when SAP Scripting is not enabled. Continue Reading
An SAP user is receiving an error message while integrating SAP iDoc PORDCR1 for a purchase order. Continue Reading
An SAP user is having difficulty with PERNR iDoc while transporting data from SAP to an external system. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.