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: 

To deactivate the Print button for PO

Former Member
0 Kudos

Hi friends,

I'm facing an issue in PO release strategy. I've to stop the user by not taking the print via print preview either the PO got released or not.The user has to do it only thru PO print program TCode...i.e., ME9F.

So, Pls post me ur comments with some sample codes or examples by way to deactivate the print button both in print popup window and the print icon in application tool bar available thru print priview ouput screen.

Pls note...it should be done only in me21n,me22n,me23n and me29n tcodes.

i.e., if sy-tcode eq me21n

then the user can't give a print .(it should be in deactivate mode)...

Pls advise.

thanks & regards

sankar.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I suggest you use the following process insted of hiding Print button.

Find the User Exit or Badi, which will trigger when you click on print button using following Tcodes from which you dont want to give print .

me21n,me22n,me23n and me29n.

Use that Exit put check as per your requirment, and not allow to give print.

Regards,

Vasanth.

3 REPLIES 3

Former Member
0 Kudos

I suggest you use the following process insted of hiding Print button.

Find the User Exit or Badi, which will trigger when you click on print button using following Tcodes from which you dont want to give print .

me21n,me22n,me23n and me29n.

Use that Exit put check as per your requirment, and not allow to give print.

Regards,

Vasanth.

0 Kudos

thanks Vasanth,

Do u have any more code to help me how to fix this...

i.e., to deactivate the print button screen in BADI methodolagy

Pls advise.

regards

sankar.

0 Kudos

In your Badi or Exit, check the Tcode for ME21N , ME22N..etc.

if that condition satisfied give the Error Message (e###) and then put exit.

I hope this will resolve your issue.

Regards,

Vasanth.