Skip to Content
avatar image
-2
Former Member

Print through Ctrl+P and Print button on standard toolbar

Hi,

I had requirement where i needed to bypass the print screen and i did that with below code.

CALL METHOD document->print_document

EXPORTING prompt_user = ' '.

BUT when user is giving print by pressing Ctrl+P from keyboard then print screen is prompting and when user is giving print from Print button on standard toolbar then it is not prompting the the print screen.

Any suggestions on what could be done to bypass the print screen for Ctrl+P ?

Thank You.

Add comment
10|10000 characters needed characters exceeded

  • Former Member Sandra Rossi

    Hi,

    print_document method belongs to interface I_OI_DOCUMENT_PROXY which Prints an Open Document in the Office Application.

    There is a parameter prompt_user, if you pass it as empty then it won't give you pop-up window but when you print by pressing Ctrl+P from keyboard then print screen is prompting. When you use print button on the standard toolbar then print screen won't appear.

    Thank you.

  • Why don't you give us such information in your question in the first place? Should we roll the dice? Should we guess? How should we know that this question belongs to DMS?

  • In ABAP, you can do your own coding when CTRL+P is pressed : see Horst answer for classical list processing, and for general dynpros put your code in the PAI of the dynpro.

  • Get RSS Feed

1 Answer

  • Aug 17, 2017 at 01:02 PM

    Are you talking about classical list processing or something else?

    In classical list processing, you can set your own list status with SET PF-STATUS, redefine the function code for printing, and implement your own functionality for that function code behind AT USER-COMMAND.

    Add comment
    10|10000 characters needed characters exceeded