Skip to Content

Restrict printing from smartform

Dear ABAP Experts,

I want to restrict the user to get the print of a smartform only once.

How can I do it.? I want to use the print button on smartform preview to print the form.

In short, I will save the user name in the table when user clicks the print button on the smartform toolbar.

But I am unable to find the BADI or enhancement point for a smartform.

Your help is required in this.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 07, 2016 at 11:47 PM

    Hi Aneel

    I am not sure on your business requirement you would not want them to print it again and also they should not be able to print preview?

    Generally you should check your driver program and in that NAST table everytime the smartform is printed an entry is maintained you could probably use that

    So the next time the6y try to print it has also called a parameter called TCOPIEs or something like that you could forcefully change it to 0

    However I do not think you can restrict print preview of the doc.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2016 at 09:13 AM

    Hope you have to remember some points.

    May be you want to restrict print button for restricting print preview to hard copy.

    ->if they use pdf! at command prompt , what will happens, print preview will be convert to the soft copy.they can save in desktop and make it as hard copy, Have you imagined in this case.

    ->In my system there is no printer attached, so, when ever i press the print button one spool is generated. then i am go to sp01 and , i can download the soft copy, then i will make hard copy.

    hope you understood. above points you have to consider.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2016 at 09:03 AM


    Some clarification i need,

    You want to restrict preview only once or.

    after came print preview, after take print out then only restrict.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.