Skip to Content
author's profile photo Former Member
Former Member

What I have to do in this scenario ?

Hi all,

I have this scenario.

I have a separate custom transaction (A module pool program). In that module pool program I have to keep a print button by clicking which a SAP-Script will go to spool/printer (by triggering the driver program). What is the standard procedure to do this? Should I have to create any output type for this? If yes how can I create that? And how can I trigger the driver program?

Any help will be great.

Thanks in advance.

<i></i>

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2005 at 09:10 AM

    I am not sure about SAPScript, but in SMARTFORM this is simple:

    a) CALL SSF_FUNCTION_MODULE_NAME and submit the name of the form, here you can default, if you directly want it to print it out etc. The o/p is the name of the Function Module(say /BCW001/MMERT003)

    b) Call the Function Module /BCW001/MMERT003

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 14, 2005 at 09:46 AM

    Hi,

    in sapscript it's more depending on the print program.

    I made a little report, to test my smartform, even when message aren't customized yet. This is for invoices, other forms have different values (but you should get the picture):

    TABLES: nast.
    DATA: return_code TYPE syst-subrc,
          us_screen  TYPE xflag.
    
    PARAMETERS p_vbeln LIKE vbrk-vbeln.
    
    INITIALIZATION.
      p_vbeln = '0090115726'.
    
    START-OF-SELECTION.
    
      nast-objky = p_vbeln.
      nast-parnr = '0002010633'.
      nast-kappl = 'V3'.
      nast-spras = 'D'.
      nast-parvw = 'RE'.
      nast-kschl = 'ZXXX'.
    
      PERFORM entry(<your_report>)
                  USING
                     return_code
                     us_screen.
    

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.