Conditional Printing Included In Sapscript? 追蹤
I would like to conditionally print pictures based on a variable's value.
My variable, ID_02, is a printer code template field type. Also, I am using embedded pictures.
I used the following logic to execute conditional printing in Bartender.
If ID_02 is not empty and ID_02 = ‘CC’ then
Print Picture1
If ID_02 is not empty and ID_02 = ‘NC’ then
Print Picture2
However, this logic seems to work only in the Bartender program (see attachment).
When I generated the SAPscript and tested it in SAP this logic does not work.
Picture 1 is never printed. Picture2 is always printed.
Is conditional printing included in the SAPscript?
Does the conditional printing work for embedded pictures?
2 意見

Ian Cummings
版主If BarTender is not in use at time of print then there is nothing running that can make the logical decisions. This is one of many drawbacks for using this method of printing labels. If SAP offers some form of logical decision making in the script, then such conditional logic will need to be implemented there.
請登入寫評論。