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

Print smartforms in background

Former Member
0 Likes
781

Hi experts,

There's a smartforms to print invoice documents and the problem is in the automatic print.

When i print in J1B3N, the smartforms goes correctly. But when this print is made by a communication user (in background), it stays untidy, the logo image stays with a low resolution.

There's something to do on the smartforms or it's a problem with the printer driver?

The function below is called on the badi CL_NFE_PRINT~CALL_RNAST00:

CALL FUNCTION 'J_1BNFE_CALL_RSNAST00'

      EXPORTING

        i_active    = i_active

        i_kappl     = 'NF'

        i_nacha     = '1'

        i_dimme     = 'X'

        i_printer   = l_prnter

      EXCEPTIONS

        print_error = 1

        OTHERS      = 2.

Thanks in advance.

Best regards,

Gustavo Prado

4 REPLIES 4
Read only

arindam_m
Active Contributor
0 Likes
642

Hi,

Check the smart form to see if there is anything in the code to select a different logo for foreground and background execution also compare the devices used for foreground and background execution in SPAD T-Code.

Cheers,

Arindam

Read only

saranwin
Contributor
0 Likes
642

Hi Gustavo,

Is that problem is showing in the same printer which you tested or different printer?

If you have that issue in another printer it might be issue with printer so check with another printer.

Regards,

Saravanan Madhappan

Read only

Former Member
0 Likes
642

Hi Saravanan, yes, i tested in 2 different printers and the problem was the same.

Read only

Former Member
0 Likes
642

Hi Gustavo,

The problem is with the printer driver by what you mention.

Check the printer used in the foreground and background are using the same printer in SPAD and have the same setting.

Regards