08-26-2009 7:14 PM
Hello guys,
Regarding output routines like the ones attached to outputs like BA00 on sales orders or RD00 on invoices (or any customized output type), do you know if it is safe to include in those routines codes that will trigger a DB update? For example
a) a BAPI call to change a sales order within the output routine or
b) any call transaction that will update data or
c) an IDoc creation by calling function IDOC_INBOUND_SINGLE or
d) direct update to a table customized or otherwise.
I'm pretty sure commit statement is not allowed on these output routines that is why I'm asking.
Thanks,
John
08-26-2009 9:18 PM
I think you have the right answer! I saw that some output routines were called inside update task, so any COMMIT WORK (so, especially a CALL TRANSACTION) would dump. In your case, I don't know, but I learnt from SAP that we should really use exits as they suggest. Try to execute these special processings in "background task as separate unit" so that there is no conflict with sap programs, or use implicit enhancement options (from SAP 7.0)