01-17-2008 6:44 AM
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.
01-17-2008 7:00 AM
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.
01-17-2008 7:00 AM
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.
01-17-2008 7:18 AM
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.
01-17-2008 7:42 AM
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.