10-02-2008 4:57 PM
Hi!
We are using idoc FIDCC2 to transfer fi documents from one SAP system to another SAP system.
Also, we have exit EXIT_SAPLF050_005 to change a certain field depending of a value of another field in a Z table. If no data is found in this table, the idoc must be created but not be sent. Is it possible to do this changing the idoc status? If the answer is yes, how can I do this?
This exit has a field called NO_DISTRIBUTION, if this field is modified with an 'X', the idoc is not created.
The idoc is created by sap standard program, there is no z program.
Thanks!
Cristian
10-02-2008 5:03 PM
Hi ,
Weather u r creating the idoc or From SAP . Could you please explain little more...
Regards,
Bharani
10-02-2008 5:34 PM
Normally we have outbound idoc status as ready for sending, try setting it to something else in EDIDC records in the user exit. it might help you.
10-02-2008 6:09 PM
Hi,
If you can get the Idoc number ,try with the FM 'IDOC_STATUS_WRITE_TO_DATABASE' to change the status, so that it won't be sent.
Thanks,
Savitha
10-02-2008 6:25 PM
HI,
What you can do is try giving an error message if no data is found. The IDoc will be created but it will be in error status.
You can mess up the Control record also by changing the Receiver Partner to a dummy partner which doesn't exists in the partner profile.
regards,
Advait