How to send the output of a standard report

Hi Friends,
I came across an issue where I need to send the output list of the SAP standard report to an email ID .
Please, let me the the right way for doing this . or any useful information regarding this will be regarded.
Thanks
Prasead K

use submit <program name>
convert data to tab delimited or excell file and use some email FM's and email it.

Similar Messages

  • How to get the output of a standard report  RFBILA00 in PDF form.

    hi,
    I have to get the output of the standard report RFBILA00 in the PDF form.
    Thanks.

    Hi Rao,
    you can run your report RFBILA00 in background  and in background  job you can add one more step, next in that step you can add custom  report like zsubmit .
    job should be set like
    step1:  RFBILA00 with variant.
    Step2:  zsubmit report with variant.
    In Zsubmit report  you can  read, your first step spool using FM GET_JOB_RUNTIME_INFO
    and pass that spool  in the FM  CONVERT_ABAPSPOOLJOB_2_PDF.
    when second  report run in job  you can set your target like download in the server or  send email etc.
    Regards,
    Prasenjit

  • How to send the output to PDF format in reports 6i?

    Hi,
    How to send the output to PDF format in reports 6i? I given Mode = BITMAP.
    DESTYPE = File, DESFORMAT = PDF, DESNAME = C:\x.pdf.
    Report is running fine. But PDF file not generated. I don't know what i missed. Any one can help this?
    Thanks
    Kavitha

    Hello,
    Do you get this problem only for DESFORMAT=PDF ?
    Test with :
    DESFORMAT = RTF, DESNAME = C:\x.rtf
    or
    DESFORMAT = HTMLCSS, DESNAME = C:\x.html
    does it work ?
    Check if DESNAME is modified in the reports itself.
    Regards

  • How to send the output of one step as input to next step

    Hello All,
                   I have a question that how to send the output of the first step as the input to the next step.
     for e.g
                  consider a test sequence as below,
      1.battery ON.
      2. read Voltage
      3. Check battery voltage.
     as initially the battery gets ON when ever the test starts. in the second step it reads the voltage. let us assume that the voltage is 11.5V,
    in the third step we r checking/validating that battery voltage in the range 11V to 12 V. . I mean if the vloltage value is  less than 11V or greater than 12V te test has to FAIL.
     so in order to check that voltage we need to send the voltage read from the second step.
    so how can I send the voltage read from the second step to the third step so that I can check the battery voltage test.
    kindly suggest me this using LabVIEW/Test stand.

    Hi,
    Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
    Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
    But to answer your reoriginal question, some additional information is required.
    What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to send the output of the 1st BPEL process as a input to 2nd BPEL Proce

    Hi,
    I am working on OBPM 11G and my requirement is like below,
    From Mediator we need to call two different BPEL process. 1st one is Synchronous one and second one will be a one way interface. We need to call a java call out from Mediator and then give the output to the first BPEL process. The output from the first BPEL process has to be given to the second BPEL process with a filter condition.
    However we have achieved to call Java callout as well as call to two different BPEL process but facing issues in sending the output of the first BPEL process as a part of input to the second BPEL process.
    Any help on this would be appreciated.
    Bibhu

    Hi,
    Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
    Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
    But to answer your reoriginal question, some additional information is required.
    What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to get the output data of Standard drill down report into z-program?

    HI every one,
            I want to get the output data of drill down report into z-program.
           Actually,if the output is only one, I can get into z-program,
          But, Here the report consists 3 alv outputs. when double clicking function happens, it will direct to another alv output.
        Those, all the outputs of report i want to get into z-program.
    PLease , give reply as early as possible.
    Thank u in advance,
    karthik

    HI,
      When i download,only one output i will get.
      But,if i double-click the particular record it will show another output. I want that output also.
      Like that,when i double-click particular record, it will show some other alv ouput based on record,     
    i wanted all those outputs.
    If  i copy the code, whether i face any problems?

  • How to  send the  output into separate file..(from spool)

    Hi  friends,
       i was create a  executable program  .. it was executing fine.. imagine.. my program is just  fetching  the data from MARA  table based on some conditions..  every thing is fine.. and i'm getting the output also..
           but i want to save this output in a separate file.. that means..  what can i do.. my program is  executing background... so, i want to save this out put in a file... so, can any one plz provide me the  coding steps...
            i dont know coding.. I'm learning ABAP... so, can you plz provide the exact coding..for storing these data into separate file from spool..
    help ful answers will be rewarded
    Thanks
    Babu

    hi
    if you want the o/p data in the seperate file in-addition to the spool
    call FM : 'GUI_DOWNLOAD'
    pass file name as
    w_localfile = 'C:\fite.txt'
    itab
    = the final o/p table                                                                               
    CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                = w_localfile
            filetype                = 'ASC'
            write_field_separator   = 'X'
          TABLES
            data_tab                = itab
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6
            header_not_allowed      = 7
            separator_not_allowed   = 8
            filesize_not_allowed    = 9
            header_too_long         = 10
            dp_error_create         = 11
            dp_error_send           = 12
            dp_error_write          = 13
            unknown_dp_error        = 14
            access_denied           = 15
            dp_out_of_memory        = 16
            disk_full               = 17
            dp_timeout              = 18
            file_not_found          = 19
            dataprovider_exception  = 20
            control_flush_error     = 21
            OTHERS                  = 22.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    thanks & regards
    vinsee

  • How to get the output of a background report to be shown on the screen

    When we run the background process it goes to spool request. my requirement is to show it on the screen may be after some time to the user. how can we do that. Thanks in advance

    Hello Varun,
    You cqan submit the report as a JOB and export the out put to memory, once the job is complete you can read the list to display the output.
    Cheers,
    Mano
    Cut & Paste form SAP help.
    Submit report ....
    EXPORTING LIST TO MEMORY
    Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".

  • How to fetch the data from a standard report to a user defined report

    Hi,
    i m using a standard report RFEBKA00 which uses CHAR300 variable(it is not used in selection screen).
    can u help me ,
    to collect the data from CHAR300 and to use it in my own report.
    Message was edited by:
            jaya raman

    hi   jayaramm..
    you have to  use  SUBMMIT  and  send the parameters of your selection screen to the standard submmit  prorgram...
    beliow is the  program for you  ....  just  pick the selection parameter and  pass corresponding parameter in the Submit  which i mention as  ......  replace with  = and  parameter in the selection screen.
    report  zrsers.
    INCLUDE rfebka03.
    INCLUDE rfebfr03.                      " Data France
    INCLUDE RFEKAP00.                                          "n927883
    TABLES: rfsdo,
            sscrfields,
            hrdeaoifld.
    DATA: lt_statements TYPE STANDARD TABLE OF fieb_kukey,
          l_statement TYPE fieb_kukey.
    *Daten für die Mahnsperre                                  "mo260105
    TYPES: BEGIN OF s_kukey_mansp,
            sign(1),
            option(2),
            low TYPE kukey_eb,
            high TYPE kukey_eb,
            mansp TYPE mansp,
            anztg TYPE anztg,
            bukrs TYPE bukrs,
          END OF s_kukey_mansp.
    DATA: lt_kukey TYPE STANDARD TABLE OF s_kukey_mansp,
          l_kukey LIKE LINE OF lt_kukey,
          l_gjahr TYPE gjahr,
          LT_GJAHR TYPE STANDARD TABLE OF GJAHR,
          L_MANSP TYPE MANSP,
          l_kunnr TYPE kunnr,
          l_lifnr TYPE lifnr.
    FIELD-SYMBOLS: <mansp> LIKE LINE OF gt_mansp.
    SELECTION-SCREEN  BEGIN OF BLOCK 1 WITH FRAME TITLE text-165.
    PARAMETERS:     einlesen     LIKE rfpdo1-febeinles,
                    format       LIKE rfpdo1-febformat DEFAULT 'M' AS
                    LISTBOX VISIBLE LENGTH 30 USER-COMMAND bai,
                    AUSZFILE     LIKE  RFPDO1-FEBAUSZF,
                    umsfile      LIKE rfpdo1-febumsf,
                    pcupload     LIKE rfpdo1-febpcupld DEFAULT 'X'.
    SELECTION-SCREEN  END OF BLOCK 1.
    *------- Buchungsparameter ---------------------------------------------
    SELECTION-SCREEN  BEGIN OF BLOCK 2 WITH FRAME TITLE text-160.
    *SELECTION-SCREEN  BEGIN OF LINE.
    PARAMETERS: pa_xcall TYPE febpdo-xcall    RADIOBUTTON GROUP 1.
    *SELECTION-SCREEN
    *  COMMENT 03(29) FOR FIELD pa_xcall.
    PARAMETERS: pa_xbkbu TYPE febpdo-xbkbu.
    *SELECTION-SCREEN
    *  COMMENT 35(16) text-171 FOR FIELD pa_xbkbu.
    PARAMETERS: pa_mode  TYPE rfpdo-allgazmd NO-DISPLAY.
    *SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN  BEGIN OF LINE.
    PARAMETERS: pa_xbdc  LIKE febpdo-xbinpt   RADIOBUTTON GROUP 1.
    SELECTION-SCREEN
      COMMENT 03(29) text-163 FOR FIELD pa_xbdc.
    SELECTION-SCREEN
      COMMENT 35(20) text-164 FOR FIELD mregel.
    PARAMETERS: mregel   LIKE rfpdo1-febmregel DEFAULT '1'.
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    PARAMETERS: pa_test LIKE rfpdo1-febtestl RADIOBUTTON GROUP 1.
    SELECTION-SCREEN
      COMMENT 03(29) text-168 FOR FIELD pa_test.
    SELECTION-SCREEN: END OF LINE.
    PARAMETERS: valut_on     LIKE rfpdo2-febvalut DEFAULT 'X'.
    SELECTION-SCREEN  END OF BLOCK 2.
    *------- Finanzdisposition ---------------------------------------------
    SELECTION-SCREEN  BEGIN OF BLOCK 5 WITH FRAME TITLE text-172.
    SELECTION-SCREEN: BEGIN OF LINE.
    PARAMETERS: pa_xdisp LIKE febpdo-xdisp.
    SELECTION-SCREEN
      COMMENT 03(29) text-170 FOR FIELD pa_xdisp.
    PARAMETERS: pa_verd  LIKE rfffpdo1-ffdisxverd.
    SELECTION-SCREEN
      COMMENT 34(15) text-174 FOR FIELD pa_verd.
    SELECTION-SCREEN
      COMMENT 55(15) text-173 FOR FIELD pa_dsart.
    PARAMETERS: pa_dsart LIKE fdes-dsart.
    SELECTION-SCREEN: END OF LINE.
    PARAMETERS: intraday     LIKE rfpdo1_en-akintraday AS CHECKBOX.
    SELECTION-SCREEN  END OF BLOCK 5.
    *C5060356
    *------- BAI Preprocessor --------------------------------------
    SELECTION-SCREEN  BEGIN OF BLOCK 6 WITH FRAME TITLE text-007 .
    PARAMETERS:     p_baipre   TYPE bai_prep AS CHECKBOX MODIF ID mo1,
                    p_priord   LIKE prior_day AS CHECKBOX MODIF ID mo1,
                    p_stop     LIKE stop_flag AS CHECKBOX MODIF ID mo1.
    SELECTION-SCREEN  END OF BLOCK 6.
    *------- Interpretationsparameter --------------------------------------
    SELECTION-SCREEN  BEGIN OF BLOCK 3 WITH FRAME TITLE text-166.
    DATA: num10(10) TYPE n.
    DATA: chr16(16) TYPE c.
    SELECT-OPTIONS: s_filter FOR  febpdo-febfilter1.
    SELECT-OPTIONS: t_filter FOR  febpdo-febfilter2.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN
       COMMENT 01(31) text-176 FOR FIELD pa_bdart.
    PARAMETERS: pa_bdart     LIKE febpdo-bdart.
    SELECTION-SCREEN
       COMMENT 36(21) text-177 FOR FIELD pa_bdanz.
    PARAMETERS: pa_bdanz     LIKE febpdo-bdanz.
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN  END OF BLOCK 3.
    *------- Ausgabeparameter ----------------------------------------------
    SELECTION-SCREEN  BEGIN OF BLOCK 4 WITH FRAME TITLE text-167.
    PARAMETERS: batch        LIKE rfpdo2-febbatch,
                p_koausz     LIKE rfpdo1-febpausz,   " Kontoauszug drucken
                p_bupro      LIKE rfpdo2-febbupro,
                p_statik     LIKE rfpdo2-febstat,
                pa_lsepa     LIKE febpdo-lsepa.
    SELECTION-SCREEN  END OF BLOCK 4.
    SUBMIT RFEBKA00
            WITH AUSZFILE = AUSZFILE   ***like this replace the  .... and pass  selection parameters
            WITH BATCH =  BATCH
            WITH EINLESEN ...
            WITH FORMAT ...
            WITH INTRADAY ...
            WITH MREGEL ...
            WITH PA_BDANZ ...
            WITH PA_BDART ...
            WITH PA_DSART ...
            WITH PA_LSEPA ...
            WITH PA_MODE ...
            WITH PA_TEST ...
            WITH PA_VERD ...
            WITH PA_XBDC ...
            WITH PA_XBKBU ...
            WITH PA_XCALL ...
            WITH PA_XDISP ...
            WITH PCUPLOAD ...
            WITH P_BAIPRE ...
            WITH P_BUPRO ...
            WITH P_KOAUSZ ...
            WITH P_PRIORD ...
            WITH P_STATIK ...
            WITH P_STOP ...
            WITH S_FILTER ...
            WITH T_FILTER ...
            WITH UMSFILE ...
            WITH VALUT_ON = VALUT_ON   and return  .
    reward points if it is usefull
    Girish

  • How to send the output of a script to a txt or rpt file using T-sql?

    Hi!
    I have some code which we use to record info about a database when we decommission it. I normally click Query > Results to File and then run it to produce a file.  I need to do this via t-sql so I can automate it. Any idea what code I need to make
    this script output to file?
    Thanks,
    Zoe
    SET NOCOUNT ON
    DECLARE @Databasename varchar(50)
    DECLARE @date as char(10)
    DECLARE @session_usr nchar(30);
    SET @Databasename = db_name()
    SET @date = convert(char(10), getdate(), 121)
    SET @session_usr = SYSTEM_USER;
    DECLARE @sqlCommand varchar(1000)
    select current_user
    Print '================================================================================'
    Print '========== SQL Decommission Report for '+ @@SERVERNAME +' ========='
    Print '========== Executed on ' + @date +' by '+ rtrim(@session_usr) +' ========='
    Print '================================================================================'
    Print ' '
    Print 'Database properties'
    Print '----------------------------------'
    select substring(name,1,25) as Name,substring(filename,1,40) as File_Name,cmptlevel as Compatibility_level from master.dbo.sysdatabases
    where name = @databasename
    Print 'Full Text Catalogs'
    Print '----------------------------------'
    select substring(name,1,20)as Name,status,substring(path,1,52) as Path FROM [master].[dbo].[sysfulltextcatalogs]
    Print 'SSIS Packages'
    Print '----------------------------------'
    IF (select cast(@@version as varchar)) like '%2012%' begin
    print 'sql 2012 instance'
    select substring(name,1,20) as Name,substring(description,1,40) as Description,ownersid as Owner from msdb.dbo.sysssispackages
    end else if (select cast(@@version as varchar)) like '%2008%' begin
    print 'sql 2008 instance'
    select substring(name,1,20) as Name,substring(description,1,40) as Description,ownersid as Owner from msdb.dbo.sysssispackages
    select substring(name,1,20) as Name,substring(description,1,40) as Description,substring(owner,1, 18) as Owner from msdb.dbo.sysdtspackages
    end else if (select cast(@@version as varchar)) like '%2005%' begin
    print 'sql 2005 instance'
    select substring(name,1,20) as Name,substring(description,1,40) as Description,suser_sname(ownersid) as Owner from msdb.dbo.sysdtspackages90
    select substring(name,1,20) as Name,substring(description,1,40) as Description,substring(owner,1, 18) as Owner from msdb.dbo.sysdtspackages
    end
    Print 'Linked Servers'
    Print '----------------------------------'
    SELECT substring(srvname,1,35) as LinkedServer_Name,substring(datasource,1,35) as Data_Source FROM master.dbo.sysservers WHERE isremote = 0
    Print 'Replication'
    Print '----------------------------------'
    IF (select count(*) from master.dbo.sysdatabases where name = 'Distribution') > 0
    select substring(publisher_db,1,20) as Published_DB,substring(Description,1,40) as Description from distribution.dbo.MSpublications
    ELSE print 'No replication'
    Print ' '
    Print 'Database Mail'
    Print '----------------------------------'
    SELECT substring(name,1,20) as Name,enabled,substring(email_address,1,35) as Email_address,last_email_date FROM msdb.dbo.sysoperators
    where last_email_date > dateadd(day,-30,getdate())-- detect whether any of the systems have sent an email in the last 30 days
    Print 'CLR Assemblies'
    Print '----------------------------------'
    select substring(Name,1,20) as Name,substring(Type_desc,1,35) as Description,Create_date from sys.objects where object_id in (select object_id from sys.assembly_modules)
    Print 'Logins'
    Print '----------------------------------'
    SET @sqlCommand = 'select substring(name,1,40) as Name,substring(dbname,1,30) as Default_Database from master.dbo.syslogins where sid in (select sid from '+ @databasename +'.dbo.sysusers where issqlrole <> 1 and hasdbaccess <> 0 and name <> ''dbo'')'
    EXEC (@sqlCommand)

    You can use bcp to export from database to flat file.
    It requires xp_cmdshell to work from a stored procedure.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to change the lines in a standard report

    Hello experts, i would like to change the line limits in some ot the standard repoorts, ie RFGSRRCUA and RFBILA00 how do i go about please help step by step?
    Tatenda Chaibva

    in the top of the Report..
    REPORT RFBILA00 MESSAGE-ID FR
    <i><b>                LINE-SIZE   132</b></i>
                    NO STANDARD PAGE HEADING.
    adjust this as per your need.
    A.

  • How to send the Report output thru email

    Dear All,
    Is there a way to send the output of a abap report thru mail. I am sure it is there.
    My report output is as following.
    Emp Code : A01234
    Name: XYZ
    Email-ID: [email protected]
    Dear XYZ,
    You have Rs....... as outstanding. Please clear all dues by ..(date).
    Thankyou,
    asdf.
    Please advice how to accomplish this. Send a sample source code if possible.
    Regards,
    Alok.

    Below you can find the sample code for sending the report as email.
    Do use this as cross reference..
    DATA: reclist      LIKE somlreci1  OCCURS 0 WITH HEADER LINE,
            objpack      LIKE sopcklsti1 OCCURS  1 WITH HEADER LINE,
            objhead      LIKE solisti1   OCCURS  1 WITH HEADER LINE,
            objtxt       LIKE solisti1   OCCURS 10 WITH HEADER LINE,
            objhex       LIKE solix      OCCURS 10 WITH HEADER LINE,
            listobject   LIKE abaplist   OCCURS 0  WITH HEADER LINE,
            so_ali       LIKE soli       OCCURS 0  WITH HEADER LINE,
            list_index   LIKE  sy-lsind  VALUE 0,
            packing_list LIKE sopcklsti1,
            docdata      LIKE sodocchgi1,
            tab_lines    TYPE i,
            l_rqident    LIKE tsp01-rqident,
            att_type     LIKE soodk-objtp.
      objtxt[] = mail_text[].
      IF p_skip_attach IS INITIAL.      " INS SIR 3971 TODD
        SYSTEM-CALL LOAD LISTLEVEL-STACK INTO wrkstack.
        IF  wrkstack[] IS INITIAL.
          SKIP 2.
          WRITE: /30 text-001 COLOR 5.
        ENDIF.
      ENDIF.                                " INS SIR 3971 TODD
    Prepare Receipient List
      REFRESH:  reclist.
      LOOP AT rcpnt_userids.
        IF rcpnt_userids-l_adr_name NA '@'.
          reclist-receiver    = rcpnt_userids-usrnam.
          reclist-rec_type    = 'B'.
          reclist-express     = 'X'.
        ELSE.
          reclist-receiver    = rcpnt_userids-l_adr_name.
          reclist-rec_type    = 'U'.
          reclist-express     = 'X'.
        ENDIF.
        APPEND reclist.
        CLEAR reclist.
      ENDLOOP.
    Prepare Doc Data
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ     TABLE objtxt INDEX tab_lines.
      docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
      docdata-obj_langu  = sy-langu.
      docdata-obj_name   = 'ABAP Listing'.
      docdata-obj_descr  = subject.
      docdata-sensitivty = 'O'.
    Prepare OBJPACK
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'RAW'.
      APPEND objpack.
      att_type = 'ALI'.
      DESCRIBE TABLE so_ali LINES tab_lines.
      READ     TABLE so_ali INDEX tab_lines.
      objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( so_ali ).
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = att_type.
      objpack-obj_name   = 'ATTACHMENT'.
      objpack-obj_descr  = subject.
      APPEND objpack.
    SAP supplied API function module to send Message
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = docdata
          put_in_outbox              = 'X'
          commit_work                = 'X'     "used from rel. 6.10
        TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_bin               = so_ali
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_reclist           = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE i398(00) WITH 'SAP Office API Error'
                              sy-subrc
      ENDIF.

  • How to send the Layout as an email..?

    Hi,
    I have a layout. How to send the output of the layout as an email..? Is it something that needs to be done in the layout(SE71) or do we need to write any coding in the print program..? I mean, calling any function module kind of things.
    Or do we need to maintain some settings in SE71 itself..?
    Please provide your inputs. Thanks in advance.
    Thanks & Regards,
    Paddu.

    hi,
    if u want to send the layout, n the other person also need to open it in se71 only, then simply download ur layout, send that file in email. then the other person can upload it n can open in se71.
    to download the layout, just execute the program RSTXSCRP, there give ur script name, then it downloads.
    hope this may slove ur problem.
    reward if helpful.

  • How to send the ALV GRID output to spool by using the print button in std t

    How to send the ALV GRID output to spool by using the print button in standard tool bar.
    We have created a button in the va02 transaction.  If user click on the button the new screen will be display on that screen we are populating the alv grid output using the oops concept.  But i am unable to send the output to spool using the print button in the standard tool bar.
    I am able to display the Print parameter dialog box but i am not able to send it to spool.
    Kindly help.
    Thanks In Advance.
    G.V.Ramana

    Hi Shaik,
    There is not properties button in my print screen.
    MODULE user_command_0900 INPUT.
        WHEN 'EXCEL'.
          PERFORM excel_download.                              
        WHEN 'PRI'.
          PERFORM print_output.
    form Print_output.
    CALL FUNCTION 'RSPO_LIST_LAYOUT_FITS'
               EXPORTING
                    columns        = 80
                    device         = 'ANY '
                    lines          = 65
                    maxpenality    = 1999
               TABLES
                    layouts        = lt_layouts1
               EXCEPTIONS
                    unknown_device = 1
                    OTHERS         = 2.
          IF sy-subrc = 0.
            LOOP AT lt_layouts1.
              IF lt_layouts1-penality < 1000        AND
                 lt_layouts1-penality < l_min_penality.
                l_layout       = lt_layouts1-layout.
                l_min_penality = lt_layouts1-penality.
              ENDIF.
            ENDLOOP.
            IF NOT l_layout IS INITIAL.
              CALL FUNCTION 'GET_PRINT_PARAMETERS'
                   EXPORTING
                        mode                   = 'CURRENT'
                        line_size              = 80             "#EC *
                new_list_id            = l_new_list_id
                        no_dialog              = l_no_dialog
                        layout                 = l_layout
                   IMPORTING
                        out_archive_parameters = rs_arc_params
                        out_parameters         = rs_pri_params
                        valid                  = l_valid
                   EXCEPTIONS
                        archive_info_not_found = 1
                        invalid_print_params   = 2
                        invalid_archive_params = 3
                        OTHERS                 = 4.
              IF sy-subrc NE 0.                                 " INS SLIN
              ENDIF.                                            " INS SLIN
              IF rs_pri_params-linsz LT 80 OR
                 rs_pri_params-linsz LT gt_stack-s_lprint-width.
                gt_stack-print_line_break = 'X'.
              ELSE.
                CLEAR gt_stack-print_line_break.
              ENDIF.
              IF l_valid NE 'X'.
                rs_pri_params = ls_pri_params_sav.
                rs_arc_params = ls_arc_params_sav.
              ENDIF.
            ENDIF.
          ENDIF.
    endform.                    " Print_output
        CALL METHOD gv_cost_tot_alv_grand->set_table_for_first_display
                EXPORTING
                   is_layout         = gs_layout_cost_tot_grand
                CHANGING
                   it_fieldcatalog   = gt_fcat_cost_tot_grand[]
                   it_outtab         = gt_cost_tot_grand[].
    Please check my code

  • How to send the report output to the application server in a excel file

    Hello,
    how to send the report output to the application server in a excel file.
    and the report runs in background.
    Thanks in advance.
    Sundeep

    Dear Sundeep.
    I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
    D A T A D E C L A R A T I O N *
    TYPES: BEGIN OF TY_EXCEL,
    CELL_01(80) TYPE C,
    CELL_02(80) TYPE C,
    CELL_03(80) TYPE C,
    CELL_04(80) TYPE C,
    CELL_05(80) TYPE C,
    CELL_06(80) TYPE C,
    CELL_07(80) TYPE C,
    CELL_08(80) TYPE C,
    CELL_09(80) TYPE C,
    CELL_10(80) TYPE C,
    END OF TY_EXCEL.
    DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
    WA_EXCEL TYPE TY_EXCEL..
    E V E N T : S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Here you populate the Internal Table.
    Display - Top of the Page.
    PERFORM DISPLAY_TOP_OF_PAGE.
    E V E N T : E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    SET PF-STATUS 'GUI_STATUS'.
    E V E N T : A T U S E R - C O M M AN D *
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EXPORT'.
    Exporting the report data to Excel.
    PERFORM EXPORT_TO_EXCEL.
    ENDCASE.
    *& Form DISPLAY_TOP_OF_PAGE
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_TOP_OF_PAGE .
    SKIP.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'O R I C A'
    CENTERED COLOR 1,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
    CENTERED COLOR 4 INTENSIFIED OFF,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE.
    E X C E L O P E R A T I O N
    CLEAR: IT_EXCEL[],
    WA_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    WA_EXCEL-cell_02 = ' XYZ Ltd. '.
    APPEND WA_EXCEL TO IT_EXCEL.
    CLEAR: WA_EXCEL.
    WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
    APPEND WA_EXCEL TO IT_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    ENDFORM. " DISPLAY_TOP_OF_PAGE
    *& Form APPEND_BLANK_LINE
    text
    -->P_1 text
    FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
    DO P_LINE TIMES.
    CLEAR: WA_EXCEL.
    APPEND WA_EXCEL TO IT_EXCEL.
    enddo.
    ENDFORM.
    *& Form EXPORT_TO_EXCEL
    text
    --> p1 text
    <-- p2 text
    FORM EXPORT_TO_EXCEL .
    DATA: L_FILE_NAME(60) TYPE C.
    Create a file name
    CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
    '.' SY-DATUM+0(4) INTO L_FILE_NAME.
    Pass the internal table (it_excel which is already populated )
    to the function module for excel download.
    CALL FUNCTION 'WS_EXCEL'
    exporting
    filename = L_FILE_NAME
    tables
    data = IT_EXCEL
    exceptions
    unknown_error = 1
    others = 2.
    if sy-subrc <> 0.
    message e001(ymm) with 'Error in exporting to Excel.'.
    endif.
    ENDFORM. " EXPORT_TO_EXCEL
    *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
    Regards,
    Abir
    Don't forget to award Points *

Maybe you are looking for

  • How to Hold/Block the messages in PI for particular system

    Hi, I want to know the way of holding/blocking the message in PI for particular system. For other system message flow should happpened normally. My Scenario is, R3->PI->SRM. For connection between PI and SRM we are using proxy. We are going to upgrad

  • HT3805 Trouble importing into Aperture form Memory Card

    Coincidentally or not, after installing Mountain Lion, I am no longer able to import photos into Aperture from a USB connected memory card - the card does not appear in the Import Window any longer - has the method for this process changed or is it a

  • Can I find out how many people are subscribed to my RSS feed?

    Just curious - I don't want to know who they are, or spam them - I'm just wondering about a count. --drkenfp

  • XCode debugging problems

    For some reason, when I try to debug or run my application within XCode, my Application menu does not appear, and keys pressed go to the runlog window, not my application controls. Any Idea what's going on, or how I should start troubleshooting this

  • Timeout when creating a view

    Hi, apologies if this has been posted in the wrong place, new to SQL Server and these forums! We have a large-ish transaction file (around 57million rows currently) which i'm trying to aggregate to a weekly level to aid with reporting, so attempting