Hi Alexander, could I suggest with all due respect that instead of promoting your products here, you give the guy a tip on how to do this himself? After all, that's what this forum is intended for.
Hi REL. You didn't quite give us all the detail required to answer your question, but in general:
In the Post Button Clicked event of the 'OK' form exit, you can put in a System Function to 'Report Interconnect' your UBE to print the order. However you have to be a bit careful here as, for instance, Sales Order Entry business functions (or are you talking about purchase orders?) might be completing the order in the background, so you can't be sure when it's completed! In this case you might need a further mod to change the business function (EndDoc) to run synchronously. Then you know when its done and you can also check that the order did indeed create without any error.
If your UBE runs locally on the client (unlikely) the PDF will display automatically. If the UBE runs on a server (typical case) then your JDE CNC admin can configure the system so it prints immediately. In this case getting the PDF to automagically display on the screen is more tricky, but not too hard. If you look at the Work With Server Jobs application (P986110B) at the code behind the 'View PDF' row exit you will see exactly what you need to do! Just dupicate that logic.
But as I say, beware of the EndDoc business function being async, leading to you attempting to run your UBE before the order creation has completed!
Another tip: You should consider writing all this in a Named Event Rule so the only mod to your application is a one liner. This makes retrofitting your mod after upgrades and ESUs easy.
Hope that helps,
JohnO