Application Development 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: 

Printing problem (avoid test page printing)

Former Member
0 Kudos

Dear all,

I am having problem with printing invoice, when ever i am printing invoice some standard page (SAP Test print page) is also printing , this issue is onley in quality and production, in development it is working fine.

Can any one having solution for this, thanks for your help in advance.

Good Regards.

4 REPLIES 4

Former Member
0 Kudos

1. After calling the FM.

2. l_params-PRSAP = ''.

3. In debuggin, just check, what is the value.

it must be having either X or D

or

1. COVER_PAGE

Try this parameter while calling the FM.

2. COVER_PAGE = ''

0 Kudos

Hi,

The thing is, it is not printing in development same driver moved to quality and production, printing test page there, why?

Please reply.

Thanks for your help.

former_member223537
Active Contributor
0 Kudos

Hi,

Goto SPAD

Output Devices => DISPLAY

Double click on your output device

Goto OUTPUT ATTRIBUTES tab

Host spool cover page ... SELECT DO NOT PRINT HOST SPOOL COVER PAGE instead of ALWAYS PRINT HOST SPOOL COVER PAGE

Best regards,

Prashant

Former Member
0 Kudos

Dear Imran,

Just check it out. I m printed report directly instead of display.

w_destination = 'LOCL'.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

destination = w_destination

layout = 'X_58_170'

no_dialog = 'X'

IMPORTING

out_parameters = params

valid = valid.

IF valid space.

ALL DISPLAY PARAMETER RIGHT ON PRINTER

NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.

ELSE.

GIVE ERROR PRINTER DESTINATION IS NOT VALID

MESSAGE s208(00) WITH text-010.

ENDIF.

ENDIF.

User write stament, That will dirctly go for print.

OFF THE PRINTING AFTER REPORT IS DISPLAY

IF valid space.

NEW-PAGE PRINT OFF.

ENDIF.

it may sortout ur proble.

Best Regard,

Flavya