10 g report on line printer

Hello Here Sumit ,
Please Help me, I want To print My report which is made by 10 g report, in line printer.
Thanks.

Hi Sumit,
You can define 10g reports to be character mode reports and then output to a character mode lineprinter using a prt file to control the output.

Similar Messages

  • How to print a crystal report in Tally MT691 line printer?

    I have recently developed a crystal report with version 8.5 in windows-based operation system (windows xp). My client today told me that the report has to be able to print to a network printer - line printer (Tally MT691); otherwise, the crystal report I developed becomes useless. I have no experiences with line printer. Could you please give me some instructions on how to make it happen?
    Any help is greatly appreciated. Thanks again.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 7, 2009 11:05 AM

    Hi
    Unfortunatelly you need to worry about the printer, please don't consider the last replies.
    As far I can see this model is a dot matrix printer, only the following models are supported for SAP B1:
    For 2005A those are the supported models:
    - Citizen PROdot 300    
    - Epson FX-880          
    - OKI MICROLINE 320 Elite
    - Epson FX-890          
    For the 2007
    - Citizen PROdot 300    
    - Epson FX-880          
    - OKI MICROLINE 320 Elite
    Please note that some workaround can be found to use different printer but only the mentioned devices are supported. Those workarounds may work in one patch but may stop to work after patch or version upgrade.
    Also a multipurpose (combine fax, printer, scanner) devices are also note supported (SAP Note 925841).
    Paulo Calado
    SAP Business One Forums Team

  • Printing Oracle 10g Reports in Line Matrix Printers

    Hello!
    I encountered problem when printing a generated report in Oracle 10g Reports to a Line Printer. When the report is in PDF format, the fonts when printed on line printers become scattered and the orientation of the report rotates 90 degrees. If I use HTMLCSS format, the pages are not of fixed size. Please help me.
    Thanks in advance.

    1. Setup CUPS Printing Environment in Linux / Unix (on many modern Linux systems, CUPS is the default Printing System at the moment). The details of setup / build of CUPS is beyond the scope of this article. For details, please visit CUPS sites and documentation :
    http://www.cups.org
    http://www.cups.org/doc-1.1/sam.html
    The setup of CUPS is complete for our purposes, once you are able to print PDF documents directly from unix shell as follows :
    $ PRINTER=yourprinter
    $ export PRINTER
    $ lp test.pdf
    OR
    $ lpr test.pdf
    * The "yourprinter" above should be substituted with the name of your printer queue defined in CUPS and "test.pdf" is any pdf document available on this server.
    2. In reports.sh, set the following parameter and restart the Report Server:
    REPORTS_CUPS_PRINTING=YES; export REPORTS_CUPS_PRINTING
    3. Setup PDF functionality (including Font Subsetting / Embedding etc) to display the output as required in PDF format. To check this, run the report with the option "...destype=cache&desformat=PDF...".
    4. Run the report with parameters "...&desformat=PDF&destype=printer&desname=yourprinter&...."
    This way, Reports Server generates a PDF file in cache and sends it to CUPS printer queue, ie the "desformat=pdf" option is no longer ignored with "destype=printer".

  • Pdf reports with Line Matrix Printer

    Dear All,
    I am working with oracle reports 10g and printing my reports as pdf on Line Matrix Printer but the output isn't good so we want to know how to generate this report in character mode & can be previewed and printed

    Bonjour je m'excuse beaucoup pour poster dans un premier temps en anglais. Je ne savais pas que c'était possible en français.
    Voici mon problème: J'ai une imprimante matricielle de type EPSON LX-350 et je souhaite imprimer des fichier PDF (Adobe reader). Mais la police qu'elle sorte est différente de celle attendue après impression et pourtant avec un fichier Word ou Excel je n'ai pas ce problème de format de police. Alors la question est: est t-il possible d'imprimer sans probléme avec une imprimante matricielle un fichier PDF si oui qu'est comment doit procéder. Existe t'il quelqu'un qui l'a déja essayer et avec quelle marque d'imprimante.
    Merci de votre disponibilité.

  • Print report with line-size 999

    Hi everyone,
    I need to print a report with line-size 999 in letter size. I´m using the complete 999 lines.
    REPORT zfr1000g MESSAGE-ID fr
                    LINE-SIZE   999
                    NO STANDARD PAGE HEADING.
    ANY SUGGESTIONS???
    Thanks.

    Hi,
    You can go ahead. The max. size is <b>1023</b> chars.
    REPORT zfr1000g
           NO STANDARD PAGE HEADING
           LINE-SIZE 999
           MESSAGE-ID fr.
    Regards,
    Anjali.
    Refer the Documentation on Reports.
    ... LINE-SIZE col
    Effect
    Creates a report with col columns per line.
    If the LINE-SIZE specification is missing, the line length corresponds to the current screen width. The system field SY-LINSZ contains the current line size for generating lists. The maximum width of a list is 1023 characters. You should keep lists to the minimum possible size to improve useability and performance (recommendation: LINE-SIZE < 132). For very wide lists (LINE-SIZE > 255), you should consult the notes for using LINE-SIZE

  • Print customized report on client printer

    I'm evaluating HTMLDB as an option to some MS Access applications we have in place and I have to add I'm a new user with no experience on HTMLDB.
    One of my applications basically generate a report to be printed on pre-printed forms. For what I've read the reporting capabilities of HTMLDB are very limited, so I'm not sure how we can implement this type of reports with HTMLDB.
    Any suggestions are appreciated.
    Thanks

    I'm evaluating HTMLDB as an option to some MS Access
    applications we have in place and I have to add I'm a
    new user with no experience on HTMLDB. HTML DB is a far superior development environment to MS Access. I did Access for quite a while and don't ever really want to look back. Although, I'm forced to sometimes. I think you'll really come to appreciate HTML DB pretty quickly.
    One of my applications basically generate a report to
    be printed on pre-printed forms. Printing to preprinted forms will get tricky. Basically, you're going to have to work with standard HTML constructs (generated by the Oracle server of course) to create your page output. I'm not saying it's impossible but it will be a significant challenge to line up your data output with preprinted forms. Especially given the variability of browsers.
    Could be that someone has more experience with some other reporting (e.g. Oracle Reports) that could accomodate your need better than HTML DB page templates.
    I'm sure everyone here would be interested to hear how your evaluation goes. Keep us posted. Good luck.
    Earl

  • Print report directly to printer using RUN_PRODUCT in Forms6i

    Hi all,
    I would like to have information regarding print any .rdf directly to printer from form 6i using RUN_PRODUCT.
    I got help from Form Builder Help option and tried following coding in form
         DECLARE
         PL_ID                    PARAMLIST;
         printername          VARCHAR2(50);
         BEGIN
         PL_ID := GET_PARAMETER_LIST('WEIGHMENT');
              IF NOT ID_NULL(PL_ID) THEN
                   DESTROY_PARAMETER_LIST(PL_ID);
              END IF;
              PL_ID := CREATE_PARAMETER_LIST('WEIGHMENT');
              printername := '"'||'I.T Printer'||'"';
              Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER, PRINTER);
              Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, printername);
              Add_Parameter(pl_id, 'P_EQ_NBR', TEXT_PARAMETER, :weighment.eq_nbr);
              Add_Parameter(pl_id, 'P_WT_GKEY', TEXT_PARAMETER, :weighment.gkey);
              Run_Product(REPORTS, 'c:\wegt001r', ASYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
         EXCEPTION
              WHEN OTHERS THEN
              MESSAGE(SQLERRM);
         END;
    END IF;
    But report did not printed and following message received in Reports Background Engine
    Error submitting report [Thu May 07 18:49:23 2009] ...
    REP-0159: Syntax error on command line.
    Pls help.
    Thanks,
    Hassan

    Hi Heidi
    I have already tried printername := 'I.T Printer'; but result is same.
    This is also my default printer and I tried to add / remove the following coding
    Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, PRINTER);
    but in both cased I received the same error.
    I also tried to print thru HOST command as follows
    the_username := Get_Application_Property(USERNAME);
         the_password := Get_Application_Property(PASSWORD);
         the_connect := Get_Application_Property(CONNECT_STRING);
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid= '||the_username||'/'||the_password||'@'||the_connect||' DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306';
    Host( the_command );
    Host command displays correctly but no printing.
    I then change my command as follows
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid=test/test@test DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306'; and now report prints on printer.
    But I cannot hard coded the username, password and connect.
    Thanks,
    Hassan
    Edited by: Hassan Raza Khan Lodhi on May 7, 2009 6:55 PM

  • Form 6i printing report directly to printer

    Hi Professionals,
    I am in badly need of help to print my barcode report directly to printer from form, currently it is working fine if i make it preview first and then user has to select network printer to print, but user is not accepting that manual step, and therefore we are unable to launch our material management module.
    MY CURRENT CODE WHICH WORKING FINE WITH PREVIEW..................
    add_parameter(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PREVIEW');
    add_parameter(PL_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    add_parameter(pl_id,'paramform',TEXT_PARAMETER,'NO');
    add_parameter(pl_id,'STR',TEXT_PARAMETER,:IM_STR_ISSUE_MASTER.STR_CODE);
    add_parameter(pl_id,'BAT',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.BAT_ID);
    add_parameter(pl_id,'DIV',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.GRP_CODE);
    add_parameter(pl_id,'GRP',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.SUB_GRP_CODE);
    add_parameter(pl_id,'ITM',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.ITEM_CODE);
    add_parameter(pl_id,'COPIES',TEXT_PARAMETER,:IM_STR_ISSUE_DETAILS.QTY);
    RUN_PRODUCT(REPORTS,'F:\IMS\REPORTS\STOCK_IN_BARCODE.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,PL_ID);
    IF I CHANGE IT TO THE FOLLOWING FOR DIRECT PRINTING IT IS NOT WORKING
    ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
    ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, 'SOLABEL');
    I appreciate any efforts to resolve this issue.
    Thanks
    Ahon
    Edited by: [email protected] on Oct 4, 2009 11:20 PM

    Guide to Implement local printing on client in 10gas/9ias
    To archive this goal we have used orarrp(Oracle Reports Remote Printing Utility), which can be downloaded from the OTN website http://otn.oracle.com/sample/products/reports/index.html.
    Steps:
    1.Add the required ORARRP mime types to the Oracle HTTP Server configuration.
    (Note: This will be the Oracle HTTP Server belonging to the Oracle Application Server 10g/9ias middle (BI & Forms) tier)
    Do this manually by editing the httpd.conf
    or
    via the Oracle Application Server 10g AS Console e.g.
    Navigate to the Middle Tier Components Page
    Click on HTTP_Server -> Administration -> MIME Types
    NOTE: MIME types added in httpd.conf are as per requirement mode in which report has to be run e.g. pdf, rt(rtf) and html etc. syntax for manual entry in httpd.conf is given below.
    AddType application/x-orarrp-text     rrpt
    AddType application/x-orarrp-ps     rrpp
    AddType application/x-orarrp-pdf     rrpa
    AddType application/x-orarrp-rt     rrpr
    AddType application/x-orarrp-ini     rrpi
    AddType application/x-orarrp-html     rrph
    2. Create an aliasmatch in forms.conf pointing to a physical directory \tmp- for example, directory will be c:\tmp
    Do this by manually editing the forms.conf
    or
    via the Oracle Application Server 10g AS Console e.g.
    Navigate to the Middle Tier Components Page
    Click on HTTP_Server -> Administration -> Advanced Server Properties -> forms.conf
    Add a line like :
    # Virtual path for physical directory of temp
    AliasMatch ^/tmp/(..*) "C:\tmp/$1"
    ** IMPORTANT NOTE **
    The advantages of making the changes via EM / AS console, rather than editing the files manually, are:
    - the EM / AS console will put the mime type entries in the correct place
    - the EM / AS console automatically issues a 'dcmctl updateconfig' which synchronizes the file changes with the Infrastructure Metadata Repository
    - the EM / AS console will do the required restart of the HTTP Server component
    (Only the HTTP Server needs to be stopped and restarted – Oracle AS 10g components can remain up and running)
    If the changes are made manually then the following commands must be issued after the changes to httpd.conf and forms.conf have been made.
    Run these command at run prompt
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat updateconfig -ct ohs -v -d
    (to synchronize the changes with the Metadata Repository)
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat stop -ct ohs -v -d
    DRIVE:\oracle\FRHome_1\dcm\bin\dcmctl.bat start -ct ohs -v -d
    where DRIVE: is the drive where \oracle\frhome_1\ is installed.
    3. Copy and run orarrp.exe on client machine in program files\orarrp\ folder.
    4. Set value of options '”choose_printer=no” in orarrp.ini created at above folder.
    5. Add following lines in your code of run_report procedure.
    In declare section
    vc_file varchar2(225);
    In begin block add
    /* Generate a pseudo unique filename */
    vcfile:=:global.user_code||to_char(sysdate,'YYYYMMDDHHMISS');
    vcfile:=vcfile||'.rrpr';
    /* In this example - output will be rtf so adding .rrpr extension */
    set_report_object_property(repid, report_filename,store_var);
    set_report_object_property(repid, report_server, :global.r_server);
    set_report_object_property(repid, report_execution_mode, batch);
    set_report_object_property(repid, report_comm_mode, SYNCHRONOUS);
    set_report_object_property(repid, report_destype, file);
    set_report_object_property(repid, report_desformat,'rtf');
    set_report_object_property(repid,REPORT_DESNAME,'C:\tmp\'||vcFile);
    ---- path can be made dynamic by making a database entry in makess.path_entry for tmp folder and
    ---using proc_path procedure from path lib.
    :GLOBAL.PrintOutPut := vcFile;
    In Run report section make following change:
         vc_reportserverjob := RUN_REPORT_OBJECT(repid,pi_id);
         report_job_id:=substr(vc_reportserverjob,length(:global.r_server+2,length(vc_reportserverjob));
         v_rep_status:=report_object_status(vc_reportserverjob);
         if v_rep_status='FINISHED' then
              web.show_document('/tmp/'||:global.printoutput,'_blank');
         else
              message ('error when running report'||v_rep_status);
    end if;
    Edited by: amitphynyl on Oct 5, 2009 1:36 AM

  • How Can I print directly the report from the printer without showing it ?

    I know how to run the report from Form as it illustrate on this site:
    http://www.lv2000.com/articles/runreport.htm
    but the question here how could i to generate the report directly to the printer without showing it on the screen???
    I search on the net and I find that I should change this line :-
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE, cache);
    to this
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE, printer);
    but it is not working with me :-(
    is there any suggest ?!

    Check if any of these helps
    Re: Direct Printing in Forms10g
    Web.Show_Document() print report directly
    Direct Printing from client PC

  • Sample for printing report directly to printer

    Hi Guys
    Does anyone have a report which can print directly to the printer when the radio button option is selected .
    I want to print the ALV in excel format.
    Printer >>>>.
    Screeb >>>>>
    Regards
    P.Eslam

    Hi
    I tried with this FM but giving short dump error can anyone explain why pls see the below program for testing.
    REPORT  Z_ESLP_ZTCODE .
    "LINE-SIZE 600 .
    TABLES : AGR_TCODES,
    AGR_USERS,
    TSTCT.
    type-pools: slis.                                 "ALV Declarations
    CONSTANTS MARK VALUE 'X'.
    *Data Declaration
    LIFNR, NAME1, STRAS, ORT01, REGIO, PSTLZ, PFACH, LAND1
    TYPES: BEGIN OF  T_DISP,
    AGR_TCODES TYPE AGR_TCODES-TCODE ,             " Transaction code A
    AGR_NAME   TYPE AGR_TCODES-AGR_NAME,           " Role Name B
    AGR_UNAME  TYPE AGR_USERS-UNAME,               " Short User Name B
    TTEXT      TYPE TSTCT-TTEXT,                   " Description Name C
    TEXTC      TYPE USER_ADDR-NAME_TEXTC,          " Long User Name
    SPRSL      TYPE TSTCT-SPRSL ,                  " Language c
    END OF t_disp.
    DATA: it_disp TYPE STANDARD TABLE OF t_disp INITIAL SIZE 0,
          wa_disp TYPE t_disp.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    DATA:L_PARAMS TYPE PRI_PARAMS,
           L_VALID TYPE C.
    DATA: w_file      TYPE  rlgrap-filename VALUE 'it_value'.
    SELECTION PARAMETER CRITERIA
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME.
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: P_TCODE FOR AGR_TCODES-TCODE  , "OBLIGATORY, "no-extension no intervals,
    U_NAME FOR AGR_USERS-UNAME,
    R_NAME FOR AGR_USERS-AGR_NAME .
    SELECTION-SCREEN END OF BLOCK BLK1.
    SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN END OF BLOCK BLK2.
    SELECTION-SCREEN END OF BLOCK BLK.
    SELECTION-SCREEN BEGIN OF BLOCK radio WITH FRAME.
      PARAMETERS :scr   RADIOBUTTON GROUP rbg1 ,
                  pr  RADIOBUTTON GROUP rbg1 .
      SELECTION-SCREEN END OF BLOCK radio.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
      fieldcatalog-fieldname   = 'AGR_UNAME'.
      fieldcatalog-seltext_m   = 'User'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'TEXTC'.
      fieldcatalog-seltext_m   = 'Name'.
      fieldcatalog-outputlen   = 50.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AGR_NAME'.
      fieldcatalog-seltext_m   = 'Role Name'.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AGR_TCODES'.
      fieldcatalog-seltext_m   = 'Trans Code'.
      fieldcatalog-col_pos     = 3.
      fieldcatalog-outputlen   = 15.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'TTEXT'.
      fieldcatalog-seltext_m   = 'DESCRIPTION'.
      fieldcatalog-outputlen   = 40.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events
                is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_disp
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc  EQ 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form lfa1 table and populate itab it_lfa1
    form data_retrieval.
    CASE MARK.
        WHEN scr.
       SELECT AGR_TCODESTCODE AGR_TCODESAGR_NAME AGR_USERSUNAME TSTCTTTEXT USER_ADDR~NAME_TEXTC
      INTO TABLE IT_DISP
      FROM AGR_TCODES
      INNER JOIN AGR_USERS
      ON  AGR_TCODESAGR_NAME = AGR_USERSAGR_NAME
      INNER JOIN USER_ADDR
      ON AGR_USERSUNAME = USER_ADDRBNAME
      INNER JOIN TSTCT
      ON AGR_TCODESTCODE = TSTCTTCODE
      where
      agr_tcodes~tcode in p_tcode
      and
      agr_users~uname in u_name
      and
      agr_tcodes~agr_name in r_name
      and
      TSTCT~SPRSL EQ 'E'.
        WHEN pr.
      CALL FUNCTION 'FTBU_START_EXCEL'
        EXPORTING
          data_name           = w_file
          data_path_flag      = 'T'
    *---Start Excel and not Wait
          wait                = ' '
        TABLES
          data_tab             = it_disp
        EXCEPTIONS
          no_batch            = 1
          excel_not_installed = 2
          wrong_version       = 3
          internal_error      = 4
          invalid_type        = 5
          cancelled           = 6
          download_error      = 7
          OTHERS              = 8.
          NEW-PAGE PRINT ON   PARAMETERS L_PARAMS NO DIALOG.
           write : 'print'.
          NEW-PAGE PRINT ON.
    ENDCASE.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'Transaction codes by User and Role Name ' .
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_disp lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Transaction Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
    *&      Form  BUILD_EVENTS
          Build events table
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events[].
      read table gt_events with key name =  slis_ev_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.

  • Change Font size for Line printer when Printing ALV

    We are using device type IBM 64xx LP+ emulation 1.00A to print to an IBM line printer.
    I would like to change the font size of an ALV report I am sending to the device.
    Can the font size be set in the Printer Initialization section of the Format?
    Ex. I am using X_65_255
    What/Where can I add the font size
    Set to P-Series Emulation (SSCC P 0)
    \0x1b\0x7c\0x7d\0x3b\0x50\0x30
    Emulation Reset                               (SFCC @)
    \0x01\0x40
    Character Set = IBM PC, ASCII, IBM PC(0850)   (SFCC l 0 0 1)
    \0x01\0x6c\0x30\0x30\0x31
    Print Mode/Pitch Selection = DP Quality, 20 cpi
    \0x01\0x7c\0x7d;Sxxxxx;0;0;xxx;0024;0048
    Line Spacing = 6 lpi                          (SFCC 2)
    \0x01\0x32
    Forms Length Set = 66 lines                   (SFCC LINES;66 <CR><LF>)
    \0x01LINES;66\0x0d\0x0a
    Thanks,
    Mike

    You will find the P-series emulation here: [LinePrinter Plus programmer's reference manual|http://www.printronix.com/WorkArea/downloadasset.aspx?id=4546] (printronix doc)
    You don't have many options with P-series. Maybe it's better to choose another emulation, and get the IBM 64xx programmer's guide.

  • Output to line printer (132 x 66)

    I need to print statement to a Line Printer (such as Epson LQ-1600K) on preprinted form.
    Should I use character mode?
    I've tried to setup a character mode report as described in
    Daily BI Views
    (except output chr(14) to printer)
    The layout of printout is as follows
    - 132C x 66R
    - 14 7/8 x 11 inches (paper)
    However, the layout scale is 124 x 52. I can place more than 132 characters on each line. And, my printer definition file is as follows:
    --- starts ----
    printer "dflt"
    height 66
    width 132
    after page control(L)
    return control(M)
    linefeed control(J)
    ---- ends ----
    Is there anything I missed? Please help! Thanks!

    And, error message "REP-1352: The fonts specified for this report cannot be found
    for the character set specified by NLS_LANG" was prompted. The fonts will be automatically set to "r_control" other than "courier new".
    report font : courier new
    NLS_LANG : AMERICAN_AMERICA.US7ASCII
    Please help.

  • Reports 3.0 Printing on Dot Matrix EPSON-LQ1170

    Hi,
    I have a problem while printing the report on EPSON-LQC1170.
    When I am printing a report first page prints very fine, before
    printing the next page it feeds 3 lines then prints the next
    page. After printing first page it does form feed properly after
    the form feed it lives one line blank & start printing next
    page. your earliest solution will be highly appreciated.
    Note :- when I print the same on laser printer it works very
    fine it doesn feed blank line.
    Lets together make the difference.
    thanx
    best regards
    Mohd.Rahmathullah
    null

    Post Author: ole
    CA Forum: .NET
    Continuous paper is a little bit longer than normal A4 paper. I found only one way to set it: ReportDocument.PrintOptions.PaperSize =CrystalDecisions.Shared.PaperSize.PaperFanfoldStdGermanI had no success, setting continuous papersize by printer setup.  ... waiting for CustomPaperSize-Property (like CustomPaperSource)... Olaf 

  • Small window changes in line printer

    We are using a line printer EPSON FX-980. We are using sapscripts to print.
    We are printing in a not so flexible format. We have the formats already pre-printed and we need to make small changes to adjust the output.
    Almost everything is alright, except some variables that cross some pre-printed lines.
    We only need to move a window aprox. 1mm down to adjust the exit.
    However, when we try to make small changes, the windows jumps a whole line, not like laser printer that adjust to fractions.
    For example, my problematic windows is in 28 ln. No matter if I change it to 28,01 or 28,5, the widow jumps to 29ln.
    I tough it was the printer couldn't print small details, but I drew several lines with small spaces between in ms paint and it prints them fine. So I'm guessing is the driver.
    I already used the two drivers for line printers, also changed the device type line lenght and nothing has been resolved.
    Is there a way to do this?

    hi,
    Modifying the SWIN (SAPWIN) Device Type
    The SWIN device type allows you to use any printer or fax that the Microsoft Windows Print Manager can use, regardless of whether the SAP R/3 System has a device type for the corresponding device. In this case, it is actually the Microsoft Windows Print Manager and Windows driver that format a document and make an output-ready data stream out of it.
    Modifying SWIN is a little different than working on other device types because SWIN does not deliver an output-ready data stream. Rather, it converts the internal SAP R/3 document format into a special SAP R/3 formatting language. The SAPSprint service understands this formatting language. SAPSprint, in turn, converts the SAP R/3 formatting commands into Microsoft Windows GDI commands, which the Print Manager and the Microsoft Windows device driver can use for preparing print-ready output data.
    The upshot: rather than modifying printer commands in actions and print controls, in SWIN you need to work with SAP R/3 formatting commands. The SWIN formatting language is documented in this section.
    SWIN Device Format Actions
    With SAPscript formats, SWIN does not use the Printer initialization or Reset actions. Enter a comment line -- # Not used -- in these two actions in the SAPscript device formats in your copy of SWIN. This ensures that the actions will be ignored when they are called during output. SWIN list formats do use the Printer initialization and Reset actions.
    In your copy of SWIN, insert commands only in the device type format actions that the SAP R/3 standard device type SWIN uses.
    Frequently Made Changes to SWIN
    &#9679;      Adjusting the position of output on the paper.
    In a SAPscript form definition, positioning information refers to the absolute dimensions of the paper to be used for outputting the form. However, the position information in SAPscript forms is added to the coordinates system of the target output device during execution to determine where the form objects are to appear on the output page.
    Since output devices use different origins for their coordinate systems, this means that SAPscript and the spool system must offer a way to adjust form positionings to reflect the coordinate system used by an output device.
    You can adapt your forms to the differing coordinate systems of output devices in the device definition, where individual printers and fax machines are made known to the SAP R/3 spool system.
    Set the fields: Choose Tools ® CCMS ® Spool ® Spool Administration, change the corresponding output device, and switch to the Output Attributes tab page. There, you can set the horizontal positioning in Horizontal move, the vertical positioning in Vertical shift. Positive values (> 0) move the output down or to the right. Negative values in the format xxx move the output up or to the left. No decimal values are permitted. For fine positioning, use MM (millimeters) or PT (points, 10 points / inch).
    If a window in a form definition is to appear 1 cm from the left edge of the paper, the window will actually be printed 1.5 cm from the left edge of the paper on a Hewlett-Packard LaserJet printer. The LaserJet starts its X-axis coordinate system 0.5 centimeter from the left edge of the paper. On a PostScript printer, on the other hand, the window will start 1 cm from the left edge of the paper, because PostScript uses the physical boundaries of the paper for its coordinate system.
    You can adjust the positioning of the output on the HPLJ4 (LaserJet) printer by entering -5 MM in the Horizontal move field in the second screen of the device definition of each HPLJ4 printer.
    &#9679;      Setting Basic List Print Properties: Character pitch, line leading, type size.
    To make these adjustments, you need to change the Printer initialization action in the X_ formats in your copy of the SWIN device type.
    There, you can adjust the character pitch (character spacing), leading (line spacing), and type size with the following commands:
    Property
    SWIN Formatting Command to Use
    Character pitch
    ec is the type size in twips (20 twips = 1 point).
    For example: eS200X sets the type size to 10 points (200 twips / 20 = 10 points).
    The SWIN data stream protocol is an internal SAP R/3 format that may change without prior notice. SAP intends to make only upwardly compatible changes to the SWIN protocol. That means that you should always be able to use the newest version of SAPSPrint, even if you have not upgraded your SAP R/3 System itself.
    SAP guarantees, however, only that the SWIN device type will function correctly with the development level of the SAPSPrint transfer program that is specified for a particular SAP R/3 Release.
    SAP Printing Guide (BC-CCM-PRN)
    Implementation considerations
    The SAP Printing Guide describes the functions of the SAP Spool System. This system was designed to be used on various platforms. SAP provides its own spool service and a spool database so that users do not have to deal with operating system-specific issues.
    The platform-independent SAP spool system is responsible for the output of forms and documents. The data to be printed is first temporarily stored (“spooled”), then formatted, and finally transferred to a host spool system to be output. You can control all of your output from the SAP System and do not need to arrange further processing in the host spool system.
    The following are among the main tasks of the SAP spool system:
    ·        Processing and managing print requests
    ·        Administering output devices
    ·        Technical mapping of the output devices in the SAP System
    Features
    Among other things, the SAP Printing Guide describes the following:
    ·        Print Process in General
    An introduction for users and administrators, in which the print process from document to printout is explained in general.
    The focus of the introductory sections is the Output Controller (transaction SP01), which can be used by both administrators and users to manage print requests.
    ·        Spool Access Authorizations
    This sections and its subsections describe the access authorizations required specifically for the spool system.
    ·        Possible Print Architecture and Print Methods
    The various print architectures are described in this section and its subsections, that is, the different constellations of hardware and software components with the corresponding access methods: Each architecture also requires a specific print method, such as:
    ·         Local printing: The spool server (application server with a spool work process) and host spool system (operating system spooler) are on the same host.
    ·         Remote printing: The spool server and the host spool system are on different hosts.
    ·         Frontend printing: Print data are to be printed on the default printer of the user’s PC.
    ·         Printing using SAP GUI for HTML
    ·        Output Devices in the SAP Spool System
    Output devices must be defined in the SAP System so that they can be addressed from the SAP System.
    You do this using device definitions with which the devices are managed in the SAP System.
    This link takes you to a description of these device definitions and their printer settings.
    ·        Spool Server
    This section explains what a spool server is, how you define it, and what using logical servers and alternative servers involves.
    ·        Device Types for SAP Output Devices
    Device types are explained in this section. A device type in the SAP system is the category of printer to be addressed. The information in the device type, such as font selection, page size, and character set selection is used to convert a document from the internal SAP format to a device-specific, printable data stream.
    ·        Connecting to an External Output Management System (OMS)
    This section explains how you can connect the SAP spool system to an external Output Management System.
    ·        Maintaining the Spool Database
    This link takes you to a section explaining how you maintain your spool database to ensure optimal performance.
    ·        TemSe Database Storage
    This section and its subsections explain what TemSe is and how you can manage TemSe objects.
    ·        Analyzing Printing Problems
    This link takes you to examples that will provide you with support in identifying and correcting errors
    Printing from the SAP System
    Features
    Using the SAP output system, you can output many types of documents on output devices such as printers or fax machines: purchase orders, invoices, delivery note, payroll documents, e-mails, report lists, and so on.
    Process Flow
    Unlike most other programs, which forward print requests directly to the printer, the SAP System temporarily stores the print data. If you want to print data in an SAP System (online or in the background) and choose a print function, such as , the SAP output system creates two types of print requests:
           1.      a spool request, which temporarily stores the data to be printed in the system
           2.      an output request, which sends the data to the desired output device
    If you want your document to be printed immediately on your printer without temporary storage, you must have made a setting in the print window for immediate output. In this case, the spool request and output request are generated immediately, and the data is printed.
    If you want to temporarily store the data, do not choose print out immediately. You can display the temporarily stored print request (spool request) in the output controller and/or print it at a later time
    thanks
    karthik

  • Report column footer print after report footer

    I have a report which has column footer and report footer.
    The column footer always print in the bottom of the page and it happens the report has half page then report footer print before column footer.
    I would like to know is it possible to have column footer just after last detail line print and report footer print after column footer which is more professinal report format,
    Your help and information is great appreciated,
    Regards,
    Iccsi

    iccsi wrote:
    I would like to know is it possible to have column footer just after last detail line print and report footer print after column footer
    It is not possible to change the order in which the footers print.
    To achieve what you want, do not use the "column footer" band. Create a dummy report group and use that group's footer, which will always print before the "report footer".

Maybe you are looking for