cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while using print Control in Smartforms

0 Kudos

Hi All,

We have a requirement to print the output in a page smaller that A4 size(in a pre-printed stationary). Now when we print this in the printer it prints thinking it as an A4 size and move to 1/2 of the next paper too. The problem is we cannot update the printer setting in each and every printer as we have a lot of printers.

So we got to know that we can create print control and add that in the device type with a specific hexadecimal code. We created the print control and added in the device type of printer and also calling that print control from our smartform too by creating a command node in smartform and include our print control.

By doing all these steps too our we are not able to send the print control commands to printer, we checked the note 5799 too and in that they have specified to go to debugger mode in SPAD but we are not able to find that too.

Can you please help us why these print control are not being picked up by printer from our smartforms, is there any steps which we missed or something we need to do extra.

Your help in this regard is really appreciated.

Regards,

Jitendra Singh

Accepted Solutions (1)

Accepted Solutions (1)

former_member187748
Active Contributor
0 Kudos

Hi,

can you please attach your part of code you have written for smartforms,

how you are calling it.

Please check that you have written output_options-TDNEWID =  'X' .

Please see this link, which might help you in configuring your issue..


Device Definition (General) (SAP Library - SAP Printing Guide (BC-CCM-PRN))

0 Kudos

Hi Sanjeev,

Yes i have added the output_options-TDNEWID =  'X'  in smartforms(New Spool Request).

Also for calling that print control we tried 2 methods:

1). Created a program lines and added the following code ( PRINT-CONTROL FUNCTION 'ZTOP1'.)

      in smartforms where ZTOP1 is the print control added in my device type with Hexadecimal code as '1B34'.


2). Created command node at the top window of smartform and in its output options in

     Include  Printer Control I have added 'ZTOP1'.

Both didn't worked.

Regards,

Jitendra Singh

Former Member
0 Kudos

Hi Jitendra

on the custom Print Control, have you ticked the check boxes "Use in STND SAPscript driver" and "Use by SAP"?

this should help if they are not ticked! 

Barry

Answers (1)

Answers (1)

0 Kudos

Hi Barry,

After marking those check boxes and using command element in our smartform for including these print control, problem solved. Thanks a lot for your help.

~Jitendra