We have an custom ABAP that calls BAPI_PO_CHANGE that changes the price on po's. These po's are specific to one vendor. It's been in production for several yrs, and now the issue is that they don't want the po's that are changed through this ABAP for this vendor faxed to the vendor. But if po's are changed the regular way me22n for other vendors, then they want them faxed. Is there any way to do this through the program?
I see subroutine pool ZSAPFM06P includes ZFM06PE02 for customizing, but I'm unsure if this is only for printing po's.
Thanks a lot in advance,
Configure ouput type using transaction MN08(change Output condition records). In this transaction you can maintain the timings to 4 for your relevant output and its key combinations.
In your VOFM transaction for output routine, establish a flag to determine if VOFM routine was either triggered by BAPI or by a user going into ME22 transaction.
If through a BAPI, change the timing setting to '3' within VOFM routine.
Additionally you can schedule transaction ME9F to print outputs for timing = '3'
Transaction MN06 (display) or MN07 (create)