Change in Normal list when i execute Report in Background.

Hi all ,
When we execute the Report in background a normal list will be displayed in the spool. In that Normal
list is it possible to shift the columns that are displayed at the last to be displayed at the beginning.
Regards ,
Murthy

Hi,
Yes you can do that.
You can determine the program is runing in background mode by using system variable SY-BATCH = 'X'.
If SY-BATCH = 'X'.
Then you can shift the column of internal table.
Endif.

Similar Messages

  • EXCEL attachment as EMAIL to USER - When USER executes REPORT in BACKGROUND

    Hi Friends,
    I have 10 records in Internal Table. In BACK GROUND execution, I have to send this 10 records as EXCEL attachment through EMAIL to the USER who executed in background.
    How to do this? Thanks in advance.
    Regards,
    Viji.

    hi,
    the following excerpt converts to excel:
    REPORT ZEX_DATATOEXCEL .
    Parameters: P_file like RLGRAP-FILENAME.
    data : begin of int_head occurs 0,
    Filed1(20) type c,                     " Header Data
    end of int_head.
    data : begin of int_data occurs 0,
    Field1(20) type c,                     " Data
    Field2(20) type c,
    Field3(20) type c,
    Field4(20) type c,
    end of int_data.
    int_head-Filed1 = 'Sales Ord'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Sold-to-Party'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Purchase Ord'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Ship-to-Party'.
    APPEND int_head.
    CLEAR  int_head.
    int_data-field1 = '1JOHN'.
    int_data-field2 = '2TOM'.
    int_data-field3 = '3BRAD'.
    int_data-field4 = '4PETER'.
    Append int_data.
    Clear int_data.
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
    EXPORTING
    file_name = p_file " path offile where u need to download
    * CREATE_PIVOT = 0
    * DATA_SHEET_NAME = ' '
    * PIVOT_SHEET_NAME = ' '
    * PASSWORD = ' '
    * PASSWORD_OPTION = 0
    TABLES
    * PIVOT_FIELD_TAB =
    data_tab = int_data "internal table with data
    fieldnames = int_head "internal table with header
    EXCEPTIONS
    file_not_exist = 1
    filename_expected = 2
    communication_error = 3
    ole_object_method_error = 4
    ole_object_property_error = 5
    invalid_filename = 6
    invalid_pivot_fields = 7
    download_problem = 8
    OTHERS = 9
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    got it from
    http://abaplovers.blogspot.com/2008/05/abap-internal-table-to-excel-sheet.html.
    then you can export to spool and mail it.
    ags.

  • Time out when run execute report on Webgui or transaction iView

    Dear All,
    We found the error as bellow when we execute report that load huge size of data so it would like many time to get it.
    500 Connection timed out
    Error: -5
    Version: 7000
    Component: ICM
    Date/Time: Thu Mar 6 19:33:49 2008 
    Module: icxxthr_mt.c
    Line: 2698
    Server: irpc16_QAS_50
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    Anyone please tell us about the way to edit timeout of webgui or iView.
    Thank you very much,
    Anek.

    Dear Krishna
    It's helpful.
    Goto rz10 transcation
    Choose: Instance profile
    Select: extended maintaince
    Click: change
    Set value for parameter 'icm/keep_alive_timeout'
    If there is not parameter 'icm/keep_alive_timeout', create it.
    Save it.
    Restart SAP.
    Please tell me how to give point for you.
    Thank you for ur reply,
    Anek.

  • Changing default color scheme when exporting ALV report to Excel spreadshee

    Hi all,
    We have a bunch of FI reports created using OOPS in abap.  Each of the reports has the functionality to be exported to an excel spreadsheet.  When exporting to Excel, the headers are a very dark brown color, making them difficult to read and it has been requested that they are shaded a lighter color.  I have not defined any sort of color scheme within the report itself, and I was wondering if there was a way to change the color scheme when exporting the report to excel.  Let me know if there is anything that can be done, thanks!

    check ur fcat

  • Restrict 'Executing report in background' from selection screen

    I want user to not to select option for executing report in background from Selection Screen of the program.
    i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.
    Thanks,
    Falguni

    Hi Falguni,
    Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :
    AT SELECTION-SCREEN
    CASE SY-UCOMM.
    WHEN 'SJOB'.
    MESSAGE E000 WITH 'You cannot schedule background job'.
    ENDCASE.
    Thanks & Regards,
    Faheem.

  • Execute report in background

    hi
    we have one requirement for execute report in background
    we want to run the report ME5A for a large date range and at plant level.
    Due to this, transaction data selected is large and so reportis taking very long time when executed in foreground.
    so requirement is
    execute report in background (i know possible in SAP)
    download the report output on desktop automatically
    can you pl suggest how to do this without customisation
    regards
    sara

    Hi Sara,
    Go to ME5A then enter the required field then go to Programme and then select the option execute in background

  • Display hidden fields in output list when submitting a report from another

    I have a report A that is submitting another report B and exporting the list to memory. Report B is a standard report and cannot be executed on its own.
    SUBMIT ReportB          
               WITH p_select = p_select
               EXPORTING LIST TO MEMORY
               AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
          TABLES
            listobject = t_list
          EXCEPTIONS
            not_found  = 1
            OTHERS     = 2.
        CALL FUNCTION 'LIST_TO_ASCI'
          TABLES
            listasci           = t_ascitab
            listobject         = t_list
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
    The output of report B displays an ALV report, default layout of this ALV has a number of hidden fields. So when I am exporting the list to memory, the returned internal table finally extracted (t_ascitab) has only the default fields and not the hidden fields.
    The default layout of the standard report B cannot be altered (as per requirement).
    Is there any way the hidden fields of the output of report B can be returned to report A??

    Hi ,
    You have to  Set layout of report  B as per your requirment  .
    There is  also other method 
    You can include Reportb   in main report and access  internal table  data  for further processing  .
    regards
    Deepak.
    Edited by: Deepak Dhamat on Aug 25, 2011 7:59 AM

  • Problem to spool when Executing reports in background

    Hi experts,
    I  executed  reports in backgroud , but when i checked in SM37 the generated spool not given proper layout format.
    This problem occurs when report having more columns.
    plz help me earliest.
    Regards,
    jyotsna

    Hi jyotsna,
    this happens with ALV output because the output format is determined at runtime.
    You can control the print format used: Just fromyour reports list in online mode, choose PRINT. A Popup should come up letting you specify the printer, number of copies, pages to be printed and so on.
    At the bottom of the popup you have the Properties button. This button opens the overview sceen for all the available print parameters. Double-Click the Format section, choose a format you want to use.The the Specifications button takes you to another screen. Here you can choose 'Valid for this report only' and Check the Background checkbox.The push the 'Copy settings' button. Then Enter to close all the popups. This should help. Additionally you can set a default layout variant for your list to be used.
    For this, in the ALV list, use Menu Settings-Layout-Layout Management. Here yu can set a default variant.
    Regards,
    Clemens

  • Error when executing report in background

    Hi experts,
    I developed a new report. In that report I am getting data from KRMI transaction. For getting data from KRMI I have all the program and transaction and function modules under KRMI transaction to Z program, transcation and function modules and by using Call Transaction on ZKRMI and using Import and export parameters I am fetching data from KRMI transaction.
    By doing this I dont have any problem while executing report online and when I am executing this report in back ground I am not getting in the above mentioned case.
    Can anyone advise me in solving the issue

    As already said....the import and export wont work in background...however what you can do is import and export in shared buffer
    Please refer this below thread for how to proceed on this...
    Re: Problem with export/import in back ground
    Check the below link for information on shared buffers
    http://help.sap.com/saphelp_webas630/helpdata/en/c4/3a6dbb505211d189550000e829fbbd/frameset.htm

  • Problems when scheduling a report in background

    Hi Guys
    I have a report that has a lot of columns so i have created a display variant with 22 cols. When I run this report online (foreground) It picks up my variant and I can see all 22 cols. The problem is when I schedule this in background it does not display all the cols, the last three cols get cut off.
    Any idea why this is happening?
    Thanks
    Sameer

    you have to change the format in SPAD.  
    Go to transaction SPAD -> FULL ADMINISTRATION -> DEVICE TYPES -> FORMAT TYPES and there you can see all the available formats. Create a new format Z_65_700 in the similar manner with X_255... with a different number of columns (700) and save it.
    Then in the tab DEVICE/SERVERS go to OUTPUT DEVICES and type your printer -> ENTER -> then from the Menu GOTO device type -> then there is a button FORMATS where you can see all the existing formats (plus the one you have just ctreated). Find it and choose it. Then save.
    Now you have attached the new format to your printer.
    The next step is simple.
    You can do it the way you described, but there is also another way. Run your program with F9 and not F8 from the selection screen. It will ask you for printers, formats etc. There you will first select the appropriate printer and then (after ENTER) you have to go down to formats and select the new format. Do not print it immediatelly, click only the NEW SPOOL REQUEST checkbutton. This will create a new spool request.
    If you go to SP01 you will find the number of your finished job. If you click the abap list button it will only show you collumns with up to 255 characters.
    But if you take the spool number and put it as a parameters to the zzz program , it will show everything.
    Source:
    Spool List output display > 255 char when the rpt is run in Background

  • Executing Report in Background

    Dear All,
    I have a report with more than 400 characters in width. If it is executed in foreground the report is properly displayed but if the report is executed in background, the generated spool only displays upto 255 characters.
    Is there a way to execute the report in background and make sure that the spool is generated with required width?
    Regards,
    Anosh

    Hi Sharabh,
    I have tried printing it after unchecking the "spool request max 255 characters width" option. Still the generated report does not show the report upto 400 characters.
    Can you please suggest some other solution or maybe provide a way to define our own printing format?
    Regards,
    Anosh

  • How to skip the alv list when submit a report by SUBMIT statement?

    Dear Experts,
    I  have  to submit a report(RMVKON00) for a special request in my  add-on program,  I use the following statment:
    SUBMIT RMVKON00
    AND RETURN EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        LISTOBJECT = ABAPLIST_TAB
      EXCEPTIONS
        NOT_FOUND  = 1
        OTHERS     = 2.
    CALL FUNCTION 'LIST_TO_ASCI'
    * EXPORTING
    *   LIST_INDEX               = -1
    *   WITH_LINE_BREAK          = ' '
      TABLES
        LISTASCI                 = LISTASCI_TAB[]
       LISTOBJECT                = ABAPLIST_TAB
    EXCEPTIONS
       EMPTY_LIST               = 1
       LIST_INDEX_INVALID       = 2
       OTHERS                   = 3
    But  it still display the alv list , and I must click  button 'BACK' ,then it return my add on program.
    I hope to skip the alv list  (does not display the alv list ) .
    Would you like to help me?
    Thanks and Best Regards,
    Colin.
    Edited by: Colin on Jan 8, 2010 10:09 AM

    Hi Colin,
    I dont think you would be able to skip the ALV output using SUBMIT. However try changing the value of sy-lsind after the submit statement.
    SUBMIT RMVKON00
    AND RETURN EXPORTING LIST TO MEMORY.
    sy-lsind = sy-lsind - 1.
    If that doesnt work then try using JOB_START JOB_SUBMIT, JOB_CLOSE...
    Thanks,
    Best regards,
    Prashant

  • How to remove "Records passed" list when printing ALV report

    Hi all,
    I have developed an ALV report, in which I have used reuse_alv_list_display functional module to print the output. After pressing print button, when I view the output in spool request transaction, an additional list with Number of records passed and "Calculated total records" is displayed. How to remove this additional list.
    I am using Get_print_paramaters FM to print.
    Thanks,
    rajan

    Hi
    Suppress the messages of the FM by commenting the exceptions and message statement
    Regards
    Shiva

  • Change the Locale settings when scheduling the report with an Excel format?

    Hi,
    My reports have been scheduled with Excel format, however, when the report is viewed in Excel, the date fields are in the format "mm/dd/yyyy" i.e. English(United States) and they need to be in the format "dd/mm/yyyy" i.e. English (Ireland).
    I am wondering if there is any way to change the Locale settings within Business Objects?
    For the time being users have been advised to manually change the format within excel, however, this is not the preferred option.
    Any ideas?

    Hi,
    Thanks for the reply.
    The cell format is set as "Date dd/mm/yyyy" but it still runs as an Excel doc with the format mm/dd/yyyy.
    When I schedule the report to run as a Web Intelligence document and then manually export it to Excel, the Date format is correct i.e. dd/mm/yyyy.
    Any more ideas?
    Regards.

  • How do u change the paper size when using the Report Editor?

    i have an existing report layout on a letter size page (8.5 x 11), how do i change the page size to say (8.5 x 13) or legal size from within reports?
    when i try to extend the margin, it wont budge.
    any tricks for this problem?

    Hi,
    In the object navigator expand 'Papar Layout' node and double click on the
    'Main section' node. There you vill be able to change paper size.
    Vismantas

Maybe you are looking for

  • Error while browing cube in SSMS but now while executing MDx

    Hi all, I have a cube and When I browse(in SSMS) I get error while if I write MDX (in SSMS) and execute that, It executes without any error. This is strange and only happens for one measure group while it does not happen for other. In first case when

  • Corrupted Files Blocking Transfer of Purchases

    I recently purchased a 160GB iPod Classic with the intention of being able to store all of my music on a single device. Due to a hard drive crash on my old computer, the only place aside from assorted burned CDs that I have all of my previously purch

  • ABAP Query - Selection fields

    Hello all, I understand that SAP automatically generates an ABAP program for every ABAP Query wherein the selection fields are connected by an "AND" statement within the WHERE clause of the actual SELECT statement. Is there a way to control this WHER

  • Data Filtering Problem

    Hi all, i have a report which has to display country wise sales based on the prompt(having drop down values: India, Australia, SouthAfrica). Here i have set filter for the country (Is prompted) in the report. On the selection of the prompt value, the

  • Trying to install adobe flash player 9 on my mac

    Ok, so i was able to download the installation file ok, but when i start the installation it gets to the part where it says it is searching my hard drive and never passes that part. I've left it running for hours hoping it would just finish, but it n