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: 

Restrict printing from smartform

aneel_munawar
Participant
0 Kudos

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.

Regards,

Aneel

1 ACCEPTED SOLUTION

vinita_kasliwal
Active Contributor
0 Kudos

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 here..so 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.

Regards

Vinita

3 REPLIES 3

former_member196331
Active Contributor
0 Kudos

hi,

Some clarification  i need,

You want to restrict preview only once or.

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

former_member196331
Active Contributor
0 Kudos

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.

vinita_kasliwal
Active Contributor
0 Kudos

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 here..so 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.

Regards

Vinita