View output from report output,display with null row

Hi ,
I view report output through browser,but the output content include with a null row inside.

Hi
That doesn't possible, so don't worry
what U need to consider is zoption-tdprogram has to have the name of main program, so the program where the variable are defined.
This field isn't usually filled, because the main program is the driver program (i.e the program where the sapscript is called), it need to fill it only if the program where the variable are defined is not the driver program.
So i believe this (your) code:
REPORT  z_sapscript.
DATA TEST_NAME(20) TYPE c.
CLEAR usr01.
SELECT SINGLE * FROM usr01 WHERE bname = sy-uname.
zoption-tddest    = usr01-spld.        "Output device (printer)
zoption-tdimmed   = 'X'.               "Print immediately
zoption-tddelete  = 'X'.               "Delete after printing
test_name = sy-uname.
CALL FUNCTION 'OPEN_FORM'
     EXPORTING
         application        = 'TX'
         device             = 'PRINTER'
         dialog             = 'space
         form               = 'Z_TEST_SAPSCRIPT'
         language           = sy-langu
         OPTIONS            = zoption
     IMPORTING
          language           = sy-langu
       EXCEPTIONS
         OTHERS     = 1.
IF sy-subrc  0.
  LEAVE PROGRAM.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
     EXPORTING
         window        = 'MAIN'
     EXCEPTIONS
          element       = 1.
CALL FUNCTION 'CLOSE_FORM'
  EXCEPTIONS
    unopened = 1
    OTHERS   = 2.
It should work now
Max

Similar Messages

  • CPU usage while generating text output from reports

    hi
    while we attempt to generate the text (delimited) output from reports and when the query fetches more than 1500 rows, the cpu usage stays around 100% for long time paralysing the operation...
    we faced the problem when we attempted to generate text output for around 10000 records.
    any suggestions?
    ravi kumar chandran

    You can burst with eText and I have done it
    successfully.
    I don't believe pagebreaks are an option in eText and
    I don't think it makes sense either since your
    generating a flat-file and not a customer or internal
    facing document. Does that make sense?
    Also, if you would like you can use the
    BIPublisherIDE, this code can be converted pretty
    easily to handle jcp. There is a an oa framework
    version I have developed but I haven't posted on my
    blog yet. I plan on adding a bolt on for java
    concurrent programs soon. it's really pretty simple
    just haven't had the time.
    http://bipublisher.blogspot.com/2008/03/bi-publisher-b
    ipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com
    Thanks Ike for your reply.
    I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
    I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
    As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
    I assume thats not what a JCP would do,so I am looking to explore that too.
    As I understand the process for report generation is
    1. Generate XSL from eTEXT template.
    2. Get the XML data from DB using XDO
    3. Apply XSL on XML to get the required template.
    If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
    In this case, where do we plug in the JCP to alter XSL or am I missing something.
    regards
    Gaurav

  • Build Reports from XML output from Reports

    Hi,
    I was just wondering if it is possible to build reports from output in XML format, originally generated by Oracle Reports.
    The XML output produced by Reports is stored in a database for further processing.
    TIA
    Hien

    Hi Hien
    If I have understood this right, you need to create report in XML format from an XML Report Definition File. From the Builder, Generate to File from the File menu and choose XML format for the output.
    Remember that XML output from Reports is Data driven and faithfully reproduces the Data Model. It is NOT layout driven.
    Regards
    Sripathy

  • Hwo to get the spool number from report output

    Hi,
    I am displaying some output in the report using write statements and within my program I need to collect the output written by write statements and send it as an email.So for that I need to generate the spool number and I am using the below code to do that
    CONSTANTS:
        l_linsz TYPE sy-linsz VALUE 201, " Line size
        l_paart TYPE sy-paart VALUE 'X_65_132'.  " Paper Format
      l_uname = sy-uname .
      l_repid = sy-repid .
    *-- Setup the Print Parmaters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          authority              = space
          copies                 = '1'
          cover_page             = space
          data_set               = space
          department             = space
          destination            = space
          expiration             = '1'
          immediately            = space
          new_list_id            = k_x
          no_dialog              = k_x
          user                   = l_uname
        IMPORTING
          out_parameters         = l_mstr_print_parms
          valid                  = l_mc_valid
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
      IF l_mstr_print_parms-pdest = space.
        l_mstr_print_parms-pdest = k_lp01.
      ENDIF.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      l_mstr_print_parms-linsz = l_linsz.
      l_mstr_print_parms-paart = l_paart.
      l_variante = sy-slset.
    * submitting the spool request
      *SUBMIT (l_repid) TO SAP-SPOOL*
                       *SPOOL PARAMETERS l_mstr_print_parms*
                       *WITHOUT SPOOL DYNPRO*
                       *AND RETURN.*
    *Calculating the lenth of report name
      lv_len = STRLEN( l_repid ) .
    *consutrucing the database variable  rq2name to search the spool
    *request
      IF lv_len >= 9 .
        CONCATENATE l_repid+0(9)
                    l_uname+0(3) INTO lc_rq2name .
      ELSE.
        lv_len = 9 - lv_len .
        DO lv_len TIMES .
          CONCATENATE lv_temp '_' INTO lv_temp .
        ENDDO.
        CONCATENATE l_repid lv_temp
                    l_uname INTO lc_rq2name .
      ENDIF.
    *selecting the spool request using the above consructed varibale
      SELECT   * FROM tsp01 INTO TABLE lt_tsp01
              WHERE rq2name = lc_rq2name .
    *sorting the interbla table
      SORT  lt_tsp01 BY rqcretime DESCENDING .
    *reading the first spool request
      READ TABLE lt_tsp01 INTO ls_tsp01 INDEX 1.
    but the problem with the above code is I am using variants to execute the report but when the above piece of code is getting executed it is clearing all the variant values on the selection screen and it is defaulting the values on the selection screen.
    Is there any way i can execute the above code without any problem in the selection screen.
    Thanks
    Bala Duvvuri

    Hello Bala,
    I wouldn't SUBMIT the same program to get the Spool number. You can achieve the same by [NEW-PAGE PRINT ON|http://help.sap.com/abapdocu_702/en/abapnew-page_print.htm#!ABAP_ADDITION_1@1@] command.
    Check the code snippet i've provided below:
    DATA: spfli_wa         TYPE spfli,
          print_parameters TYPE pri_params,
          valid_flag       TYPE c LENGTH 1.
    START-OF-SELECTION.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          no_dialog            = 'X'
        IMPORTING
          out_parameters       = print_parameters
          valid                = valid_flag
        EXCEPTIONS
          invalid_print_params = 2
          OTHERS               = 4.
      IF valid_flag = 'X' AND sy-subrc = 0.
    *   1. Write the output to the output list(no spool is generated)
        SELECT carrid connid
               FROM spfli
               INTO CORRESPONDING FIELDS OF spfli_wa.
          WRITE: / spfli_wa-carrid, spfli_wa-connid.
        ENDSELECT.
    *   2. Write the output to SAP spool(no list is displayed)
        NEW-PAGE PRINT ON PARAMETERS print_parameters NO DIALOG.
        SELECT carrid connid
               FROM spfli
               INTO CORRESPONDING FIELDS OF spfli_wa.
          WRITE: / spfli_wa-carrid, spfli_wa-connid.
        ENDSELECT.
        NEW-PAGE PRINT OFF.
        MESSAGE i000(zibi027) WITH 'Spool' sy-spono 'is generated!!!'.
        "You can use the spool number (SY-SPONO) to email the list output
      ENDIF.
    Hope this helps.
    BR,
    Suhas

  • No output from Simulink to LabVIEW with Simulation Interface Toolkit (0/1)

    I'm able to send data from labview to simulink, but the labview
    display doesn't show any output from the simulink model. I've attached
    two very simple labview and simulink files which gives me this
    problem. I have the same problem when trying to implement the sinewave
    example in the manual for the toolkit as well.
    I'm using LabVIEW 7.1 Pro, Matlab 6.5 and Simulink 5.0 on WinXP pro.

    The Simulation Interface Toolkit 2.0.1 or earlier does not work with LabVIEW 7.1. There is a patch available (or available soon) from NI support that corrects this problem. THe patch is Simulation Interface Toolkit 2.0.2.

  • Form preview output from report

    I am having a requirement to have the form print preview in the report output.
    Steps to check form output:
    T-code VF03 -> enter billing doc number -> click on billing document tab at the top of the screen -> click on the issue type to -> select any type -> then click print preview.
    According to my requirement, the report selection screen is having only document number, and on executing it should directly display the form output.
    I have tried using BDC but it wouldn't help.
    Please help.

    Hi
    That doesn't possible, so don't worry
    what U need to consider is zoption-tdprogram has to have the name of main program, so the program where the variable are defined.
    This field isn't usually filled, because the main program is the driver program (i.e the program where the sapscript is called), it need to fill it only if the program where the variable are defined is not the driver program.
    So i believe this (your) code:
    REPORT  z_sapscript.
    DATA TEST_NAME(20) TYPE c.
    CLEAR usr01.
    SELECT SINGLE * FROM usr01 WHERE bname = sy-uname.
    zoption-tddest    = usr01-spld.        "Output device (printer)
    zoption-tdimmed   = 'X'.               "Print immediately
    zoption-tddelete  = 'X'.               "Delete after printing
    test_name = sy-uname.
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
             application        = 'TX'
             device             = 'PRINTER'
             dialog             = 'space
             form               = 'Z_TEST_SAPSCRIPT'
             language           = sy-langu
             OPTIONS            = zoption
         IMPORTING
              language           = sy-langu
           EXCEPTIONS
             OTHERS     = 1.
    IF sy-subrc  0.
      LEAVE PROGRAM.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             window        = 'MAIN'
         EXCEPTIONS
              element       = 1.
    CALL FUNCTION 'CLOSE_FORM'
      EXCEPTIONS
        unopened = 1
        OTHERS   = 2.
    It should work now
    Max

  • Generating delimited output from Reports Runtime R60

    When generating a delimited file using Runtime how can you predict or determine how Oracle will form the output rows from the report layout? Does anyone have any documentation on Runtime that explains the generation process as there is nothing in the Runtime Reference manual.

    The only documentation (such that it is) that I've found on this is in MetaLink, in Note 68245.1 "Delimited Output in Reports" and a tiny bit more in Note 120072.1 "Suppressing header on delimited output".
    - Bill

  • Unable to view other's report output file?

    Dear all,
    I am using R12 and I am not able to see other's users report output file.
    Any setup which allows me to view others report output?
    Thanks

    I am using R12 and I am not able to see other's users report output file.
    Any setup which allows me to view others report output?Please see old threads for the docs/steps you need to refer to as we had this discussion many times in the forum before.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=View+request+submitted+by+other+user&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=563946.1&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=862812.1&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=736547.1&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Copying from report output to a module pool screen

    Hi to all experts
    My requirement is to call a transaction when i click a button in module pool programme .when i execute that transaction an alv report is displayed and user selects some records that should be copied over to the module pool screen.

    Yous should use ALV OOps concept to capture the selected data in the ALV report , and once you return back you can update yr module pool .

  • Issue with null rows and calc measure in pivot table

    hello;
    id like to ask if anyone encountered a similar behaviour in OBI and if there is woraround for that;
    in my BM i have 2 facts tables; i added in BM logical layer a calculated measure (calc_value) ,which is based on 3 other measures coming from these 2 facts tables
    :calc_value= value1 / (value2+value3) ; value1 coming from fact1 and value2 / vfalue3 coming from fact2
    depending on the chosen dimensions/level in report, the result of the calcuated measure is different ,which is correct;
    the lowest level in fact1 and fact2 are customer/product.
    in Answers when i select this calculated measure into report, a full outer join gets created, joining these 2 facts tables on all the dimensions that were chosen into the report i.e. in my case year/region/customer/product.
    as a result there are null rows created in the db query, if some of these combinations exist in 1st fact table , and do not exist in 2nd fact table and other way round;
    when i display result as a table, i can see the calculated measure only on the lines that are common for both fact tables and this is correct;
    however - when i create a pivot table, and DO NOT select into the pivot the customer/product (so the lowest level), but still select these items into criteria, then the calc_value is not displayed correctly; instead of the value that would be shown as if calculated at the higher level i.e. year/region, simply 0 is displayed;
    i was wondering how this can be corrected, so that OBI displayes in pivot the calc_value as of the level which is shown in pivot (so if i show in pivot year/region/customer/product -> then at this level; if i put customer/product to 'exclude' in pivot, then the level should be year/region);
    i noticed if i filter out at least 1 combination that create null rows then the values are shown correctly in pivot (but the db query still contains null rows), so i tend to think this is presentation issue, not design;
    id appreciate any tips on how to resolve this issue
    OBI vesion: 10.1.3.2
    thx
    rgds

    Hi write a case statement during logical column such that when value is present it takes value else zero for call the values i.e. value1, value2, value3.
    i.e. case when column1 is not null then column1 else 0.
    Then, do the calculation.
    Hope this might helpful for you.

  • Unable to view PDF output from Report Server

    Help!
    I have successfully setup CGI Report Server and can generate and view reports in IE5 as HTML repformat.
    However when I try to generate output as PDF I do not get the report displayed. Instead I get a little acrobat icon displayed in the top left of the browser window.
    When I click on the icon I get a IE5 message:
    "There is no viewer available for the type of object you are trying to open....
    Content Type: application/pdf"
    ...and then insists on taking me to Microsoft activex plugin page.
    This is very stange as I DO have Adobe Acrobat Reader 4 installed and the plugin works ok when viewing PDF files on Oracle webpage.
    Any suggestions on how to resolve are gratefully received!!
    Regards,
    Richard.

    You have run into an interesting problem. The problem is not with Reports. The problem is with Adobe. You can search Adobe's web site and they point to Microsoft (btw, this problem doesn't occur with netscape as the browser) Microsoft's web site point to Adobe.
    The Problem is that the .ocx Adobe puts out for use with IE times out if the report take stoo long to start sending back data. We had report that worked and some that didn't. We took a report that worked and put a sleep command in it and when the sleep command got to 10 the report quit working.
    My suggestion: move to netscape, make your reports as fast as absolutely possible.
    Jeff
    null

  • Problem with output from  report to excel, calling the report from form 10g

    Hi everyone, I'm having a problem generating a excel from a report, which is called from a form, I'm using Forms 10g. The problem is this: My report has a variable number of columns. These columns appear according to data obtained from the database, these columns are dates, In vesion 6 excel file generated shows the columns one after another starting in column A1 to column CP. I mean that the dates are correlative. But in version 10g the excel file generated shows the same report starting in column A to column T, only shows the 20 dates correlative corresponding to this columns, the rest of the dates are down the excel sheet in groups of 20 dates, it's something, the file in 6i grows across and in 10g grows down the excel sheet. The report (rdf file) is the same in 6i and 10g, I compiled the 6i version to obtain the 10g version. The excel sheet generated in 10g looks like the report was in pdf format, because PDF format, cuts the report in pages and the file grows down, if I generate the report in PDF format it has the same structure excel file in 10g has. I hope yo can help because I have days trying to solve this but I have no succes. If someone could help I could email the excel files generated in two versions. Here I put the code I use to generate the files in 6i and 10g. I have tried with DESFORMAT=SPREADSHEET in 10g but the result is the same. Thanks for your help. Greetings for all.
    Code for version 6i (Works Very well)
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
    cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
         BEGIN
    nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
              BEGIN
              nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
         BEGIN
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';      
              END;
    ELSE
              BEGIN
                        nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');
    END;
    Code for version 10g
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    --byt12122007.sn
    repid REPORT_OBJECT;
         vURL VARCHAR2(500);
         rep_status VARCHAR2(20);
         vJobID VARCHAR2(100);
         v_rep VARCHAR2(100);
    VAR NUMBER;
    w_name_repserv VARCHAR2(30);
    --byt1212007.en
    BEGIN
         --w_name_repserv:=F_OBTIENE_SERVREP;
    w_name_repserv:='repserv';     
    pl_id := Get_Parameter_List('mytmp_params');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('mytmp_params');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
         cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    /*Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );*/
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
    BEGIN
         repid := find_report_object('tdvenrli1577');
    --nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1577');
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
    BEGIN
         repid := find_report_object('tdvenrli1578');      
              --nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1578');
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
    BEGIN
         repid := find_report_object('tdvenrli1576');
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              --nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1576');     
              END;
    ELSE
    BEGIN
         repid := find_report_object('tdvenrli1545');
                        --nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1545');     
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESNAME,nom_arch);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, 'File');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'DELIMITED');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, w_name_repserv);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER, 'paramform=no');
         v_rep := RUN_REPORT_OBJECT(repid, pl_id);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')     LOOP
              rep_status:= report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              vJobID := SUBSTR(v_rep, INSTR(v_rep, '_', -1)+1);
              vURL:='/reports/rwservlet/getjobid'||vJobID||'?'||'server='||w_name_repserv;
         END IF;
         WEB.SHOW_DOCUMENT(vURL, '_blank');
         IF NOT form_success THEN
              MESSAGE('Error: PL/SQL held against Button failed to execute');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    /*Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');*/
    END;

    There are two problems with your VI.  First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this:  Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition.  When you exit the acquire/write to file loop, then close the file.  In particular, the opening and the closing of the file should not be inside the loop.
    As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus.  As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
    Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function.  Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
    Good Luck.
    Bob Schor

  • Output from Reporting Agent in BW is inconsistent

    Hi,
    I have created a scheduled package of print type in reporting aget. The job runs successfully but once I check the spool in SM37, the output is not corrrect.
    First it writes only characteristics and then below that it writes key figures. Both Char and Key Figures do not come in one line.
    Not sure where have I gone in creating this scheduling package in reporting agent.
    Any help is most welcome.
    Thanks in Advance.
    Prashant

    Hi,
    You can define threshold values (exceptions) for a query. Data that varies from these thresholds is highlighted in color or marked with icons. You can use these exceptions to identify deviations from expected results at a glance.
    Defining and Changing Exceptions
    1. In the Exceptions screen area, choose New Exception in the context menu. An entry with the default text Exception <Number> appears and you can edit the description directly.
    2.In the context menu, choose Edit. The exception editor appears; it displays the relevant parts for the definition on tab pages.
    You can also call the exception editor from the Properties screen area by choosing the Edit pushbutton.
    3.      Make the required settings for the definition of the exception. For more information, see Definition of Exceptions.
    4.      Choose OK. You return to the query definition.
    5.      Choose Save Query.
    Removing Exceptions from Queries
           1.      In the Exceptions screen area, select the relevant exception and choose Remove in the context menu.
           2.      Choose Save Query.
    Result
    You have defined or changed an exception for a query. Execute the query. The exception is evaluated online. The cell areas that are affected by the exception appear highlighted in the appropriate color or, where applicable, with icons in Web applications.
    You can display the exception descriptions and activate or deactivate the exceptions you want.
    For more info go through the below link
    http://help.sap.com/saphelp_nw70/helpdata/en/68/253239bd1fa74ee10000000a114084/frameset.htm
    Regards,
    Marasa.

  • Pull the data from legacy System into report and display with SAP data

    Hi Friends,
    My requirement is-
    Create report by processing data from SAP tables and prepare output.And Before displaying the output, I have to pull the data from non-sap system which is readymade (It will come as flat file with similar fields as Report structure has) and finally display the records from both SAP and Legacy System by filtering duplicates.

    Steps:-
    Define the file path on selection screen:-
      Selection screen data
        select-options   (s_)
          parameters     (p_)
          radio buttons  (r_)
          checkboxes     (x_)
          pushbuttons    (b_)
    SELECTION-SCREEN  BEGIN OF BLOCK block1 WITH FRAME TITLE text-f01.
    parameter:    p_file    type text_512 obligatory.
    Start-of-selection.
      data : l_fname type string. " File Name
      l_fname = p_file .
      call function 'GUI_UPLOAD'
        exporting
          filename                = l_fname
          filetype                = 'ASC'
          has_field_separator     = '#'
        tables
          data_tab                = lt_data
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          others                  = 17.
      if sy-subrc <> 0.
        message e000 with 'Unable to upload file from the PC'(t13).
      endif.
    lt_data is of same structure as the fields in the file.
    For filtering duplicates:-
    delete adjacent duplicates from lt_data.
    Now display the records using either ALV or using write statements.
    You can display the records in any of the way you want.

  • How To View Large PDF Reports Output?

    Hi all,
    EBS 11i
    We run a request with date from 01-JAN-11 to 31-JAN-11 in transaction register .
    The request status is Completed.
    Upon clicking the ‘View Output’ to export the file in PDF format, we encountered error. It seems the file is corrupted? or just to big to open?
    Already tried increasing the Cache memory of Firefox to be able to view some requests but cannot view if the file is more than some size.
    I also tried saving the report to PDF file (viewing it on Adobe Reader not on Firefox), same result.
    Are there other application other than Adobe Acrobat Reader to view PDF file formats?
    How can I resolve this issue please.
    Thanks

    How do I download the pdf file? Do I need to login to the linux server applmgr id? Or it is available via apps webpage.From the server as applmgr user, under $APPLCSF/$APPLOUT directory -- o<request id>.out format.
    Have you reviewed the docs referenced above?
    Thanks,
    Hussein

Maybe you are looking for

  • New to coding!!

    Hey there lovely peoples! Okay, I'm completely new to coding!! I realy want to get into it though. So my question is where to start? I already have dreamweaver installed, and I've found a great deal on a classroom in a book cs4 book. So my question i

  • IE8 bombs attempting to open PDFs.

    I installed Reader in new Win 7 64 installation (all updates, etc.) on two computers.  I can't open PDFs from IE8 (haven't tried any other browsers or readers yet).  I think that Reader won't work until the EULA is agreed to and causes that browser t

  • XPath Query Language Reference

    Aside from the three little examples given in the 11g Guide and the B2B Tech Note #011, is there a reference available for the XPath Query Language used by B2B? Is is possible to use complex XPath queries in the B2B Doc Definitions?

  • How do I open RW2 files in PSE and LR 5.3?

    My new Panasonic DMC-TZ61 produces raw images with ending "RW2". Eiher Elemenst 12 nor Lightroom 5.3 open these files. Who can help me with that problem?

  • Up/Down Arrow While Selecting Font - Not Working

    Does anyone know why the up down arrows don't work in Illustrator for selecting fonts? I'm on a mac running CS5. It does not work with CS3 either. When I first installed CS5 it was working but then quit a few weeks later. It works in photoshop, just