‎2009 Mar 22 9:53 PM
I am populating a few custom segments using a BAPI in the customer and vendor master outbound user exits. I need to fail the IDoc, if the BAPI returns an error. The user exits EXIT_SAPLVV02_001 and EXIT_SAPLKD01_001 does not have the idoc status table passed to it as a parameter. Does anyone know of any other user exits that could be used for modifying the idoc status. Thank you for your response.
‎2009 Mar 23 3:29 AM
Hi,
For each and every idoc getting generated having entry in EDIDC, EDIDS and EDID4. If you want to manully change the status of idoc make the change in the status of that idoc in table
EDIDS(Status record).
Thanks,
Asit Purbey.
‎2009 Mar 23 11:44 AM
Is there a way to fail the idoc during the creation process. I want the IDoc to get created, but with a failed status. I tried modifying the status in the control record via the exit - EXIT_SAPLEDI1_001 in enhancement SIDOC001. However, the status is getting overwritten later on during the IDoc creation.
‎2009 Mar 23 11:55 AM
Try to find an exit which triggers at end of functio nmodule master_idoc_distribute fm like EXIT_SAPLBD11_001 exit?
‎2009 Mar 23 1:18 PM
Hi Prameeda,
Per my info BAPIs are mainly used for creating/updating Data at the Inbound side but I am not sure how its been used in your scenario?
The data validation is generally done at the receiver end and not at the senders system, If you want you do data Validation before creating the IDOC you can put error message on the Program report and delete the entries from IDOC_DATA.
But I am not sure if there is I am way to to achive what you are trying to achive.
Regards
Shital