Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Update on Output Routines

Former Member
0 Kudos

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

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

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)