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

Linking a Reort Program with Transaction screen

Hello

Need your help to fix a problem. we are working on creation of Transaction screen for a financial data. How do I link this transaction screen with a report program so that when I click on "Push Button" for Print command on Transaction screen , it should refer to the contents/requirements of the Report Program and then give the desired display printout

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 12:23 PM

    hi,

    for assign tcode to a report use se93.

    to assign a report /print program to form use NACE.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 12:24 PM

    Hi,

    When you click the pushbutton, then call the Report program, Just use the Submit Statment.

    You can send a list from a called program directly to the spool system instead of displaying it on the screen. To do this, use the TO SAP-SPOOL addition in the SUBMIT statement:

    SUBMIT... TO SAP-SPOOL print-parameters.

    REPORT sapmzts1.
    
    TABLES spfli.
    
    GET spfli.
    
      NEW-LINE.
      WRITE: spfli-mandt, spfli-carrid, spfli-connid,
      spfli-cityfrom, spfli-airpfrom, spfli-cityto,
      spfli-airpto, spfli-fltime, spfli-deptime, spfli-arrtime,
      spfli-distance, spfli-distid, spfli-fltype.
    
    The following program calls sapmzts1 and sends the output to the spool system:
    
    REPORT demo_list_submit_to_spool NO STANDARD PAGE HEADING.
    
    DATA: val(1) TYPE c,
          pripar TYPE pri_params,
          arcpar TYPE arc_params.
    
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
         EXPORTING
              layout                 = 'X_65_132'
              line_count             = 65
              line_size              = 132
         IMPORTING
              out_parameters         = pripar
              out_archive_parameters = arcpar
              valid                  = val
         EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3
              OTHERS                 = 4.
    
    IF val <> space AND sy-subrc = 0.
      SUBMIT demo_list_output TO SAP-SPOOL
        SPOOL   PARAMETERS pripar
        ARCHIVE PARAMETERS arcpar
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    

    Regards

    Sudheer

    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.