01-06-2011 3:07 AM
Dear Expert,
I'd like the smartforms to print to the printer which i can decide on the selection screen, at the same time, the smartforms can generate spool id to the spoll queue.
Thanks to the documents on the page
http://www.sdn.sap.com/irj/sdn
Now I can get the spool , but there is a infomation message "OTF end command // missing in OTF data" .
If there any method to hide this message? Is there any example to get the spool and also make the smartforms print on the printer which i can select on the screen ?
Ross
Edited by: ross.wang on Jan 6, 2011 4:07 AM
01-06-2011 4:10 AM
Hi,
Either you can print the smartform or generate the spool ID.
The error message "OTF end command // missing in OTF data" is because you are trying to print the smartform
and trying to convert the OTF data at the same time.
Call the smartform twice once for printing and once for getting the spool ID.
Regards,
Srini.
01-06-2011 4:10 AM
Hi,
Either you can print the smartform or generate the spool ID.
The error message "OTF end command // missing in OTF data" is because you are trying to print the smartform
and trying to convert the OTF data at the same time.
Call the smartform twice once for printing and once for getting the spool ID.
Regards,
Srini.
01-25-2011 4:05 PM
just set the parameters and that's will be ok.
the parameters as follows:
G_WA_ST_CONTROL_PARAMETERS-NO_DIALOG ='X' (SMARTFORM一般标识符)
G_WA_ST_CONTROL_PARAMETERS-LANGU = P_LANGU (语言选择)
G_WA_ST_CONTROL_PARAMETERS-PREVIEW = '' (无预览)
G_WA_ST_OUTPUT_OPTIONS-TDNEWID = 'X' (生成新SPOOLLIST号)
G_WA_ST_OUTPUT_OPTIONS-TDDEST = G_V_DEVICE (设置打印设备)
G_WA_ST_OUTPUT_OPTIONS-TDIMMED = 'X' (立即打印)