on 12-12-2007 10:08 PM
Hello all,
I need your help. I am struck in the following problem. In transaction ME23N for displaying purchase order, you enter the
purchase order number and then you click on print preview and print off from the printer icon in the top of the preview. My client
wants me to remove the print button or print icon from the print preview of the purchase order. How can i accomplish this? Iam new to
abap, plz help me out... thanks in advance...
Is there any user exit/ field exit to accomplish this? Or is there any better alternative to this... please let me know at the earliest possible. thanks
Cheers,
Jwelit.
You need to change the driver program of the Smartform to restrict to only Print Preview.
If you are using any standard Output/message type than you need to copy that to your Z output type. Tcode NACE can help you. Than you need to copy the driver program attached to your output type.
Now, in your copied Z program, you need to set some parameter of the Smartform FM.
DATA: LS_COMPOSER_PARAM TYPE SSFCOMPOP.
LS_COMPOSER_PARAM-TDNOPRINT = 'X'.
Than you need to pass this to your SMARTForm FM.
Like:
CALL FUNCTION LF_FM_NAME
EXPORTING
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMETERS = ARC_PARAMS
CONTROL_PARAMETERS = LS_CONTROL_PARAM
MAIL_RECIPIENT = LS_RECIPIENT
MAIL_SENDER = LS_SENDER
OUTPUT_OPTIONS = LS_COMPOSER_PARAM " <<
ZXEKKO = L_DOC-XEKKO " user_settings = ' '
ZXPEKKO = L_DOC-XPEKKO
......
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.