Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartforms to the printer and the spool queue

Former Member
0 Likes
638

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
548

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.

2 REPLIES 2
Read only

Former Member
0 Likes
549

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.

Read only

Former Member
0 Likes
548

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' (立即打印)