If YPDF is not some kind of valuated delivery note (for valuated delivery notes you need to generate a proforma to fetch pricing data), then there are basically two ways to process the delivery outputs in case you have shipment processing:
- The first one is by using activity profiles for the shipment, which fetch the outputs and process them.
- The second one is without using activity profile, but relying only on the output determination and processing in shipping. For the second option you need a way to tell the system to process the output. Since you do not use activity profile, you can set the condition record to immediate and after it is determined (posting goods issue is a change in the delivery), the output is determined and with processing 4 it should go to green.
In case you need to print valuated delivery notes, the situation is a bit different - there you rely on a collective shipment output, to which you assign the delivery outputs. You do not set the delivery outputs in the activity profiles, just the shipment output. In this case you have to set the processing time to 3, otherwise the main program, that is used for DSDP will result in error.
In case you have a user exit for output determination - e.g. redirecting to a different printer, then setting the delivery output to immediate processing might not work as well.
I would suggest that you try the option with immediate delivery output and with requirement 1 (without activity profile usage) and see whether it works for your scenario.
In some cases the root cause for output determination and processing can be incorrectly developed print requirement, but since you stated that you use a SAP standard one, I believe that this is not the case.
If you decide to use the source tcode as a criteria in a new print requirement - you may need to evaluate a number of possible ways to print/reprint a delivery output (VL03n, VL02N, VT70, VL71 are the first that come to mind). It is not impossible, but could be a challenging task.
Edit:
You might want to check the explanation and the possible solutions in this SAP note - 509475 - Delivery output: Behavior during GI posting via shipment .