cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on smartform to print purchase order.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

naimesh_patel
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Could plz tellme are telling me to change the output type?

But i wanted to remove the print icon in the print preview of the purchase order...