Help: calling report from report in report 9i

Background:
1. Report Builder 9i and the outputs are PDF files;
2. Report A and Report B both have two identical parameters: P1 and P2;
3. Calling Report A through FORM using web.show_document() with paraform=YES,
Help:
If Report B can be called from Report A, the parameters P1, P2 passed through calling report A, the user then needs not to enter twice P1 and P2 using web.show_document().
Wishful way of thinking:
The Calling FORM refered here is the one that provides all buttons for more than 20 reports and that is the reason of using parameter form. Consequently, I am looking for ways of making:
Calling FORM -> REPORT A -> REPORT B
where both Report A and B have same parameters, calling FORM calls REPORT A using REPORT A parameter form and hoping that REPORT A can call REPORT B with these parameters.
Any help are greatly appreciated.
Jimmy

I tried something in Before Report trigger like:
function BeforeReport return boolean is
begin
srw.run_report('batch=yes sf1='||:pf1 || 'sf2='||:pf2 || ' report=REPORT_B destype=cache desformat=pdf');
return (TRUE);
end;
An error raised as: REP-1428: 'beforereport': Error while running SRW.RUN_REPORT.
Here sf1, pf1 and sf2, pf2 and two pairs of identical parameters.
Any suggestions?

Similar Messages

  • Calling one WAD Report from another WAD Report

    Hi All,
              I want to Call one WAD report from another WAD Report and I want to show that Report in a Container of the Calling Report Itself. Kindly give the Solution. Thanks for your support in advance.
    Thanks & Regards
    Shiva

    Hi Shiva,
    There is Command called "SET_TEMPLATE" Set Web Template.
    Here you can select any of your existing web template and choose to open it in current page of in a new window.
    Hope it helps.
    Regards,
    Pratap Sone

  • How to call a detail report from a master report in 11g?

    How to call a detail report from a amster report in 11g?
    We have a requirement to call a detail report based on the invoice id that will parsed from the master report in OBIEE 11g. Any ideas sugegstions will be greatly appreciated.
    Thanks,
    Edited by: user8957415 on Jul 31, 2012 9:04 AM

    Check these links
    http://gerardnico.com/wiki/dat/obiee/master_detail
    http://prasadmadhasi.com/2011/11/13/master-detail-event-in-obiee-11g-and-pass-multiple-events-to-one-detail-report/
    Hope these helps

  • What is the best way to call a report from within a report

    What is the best way to call a report from within a report(master / Detail concept)
    A type of drill down report
    Oracle Database 10g
    Forms 10.1.2.0.2
    Report Builder 10.1.2.0.2

    Hi
    Have a look in this link, certainly you will get fix, if not just post a comment on blog, will get reply soon
    http://windows7bugs.wordpress.com/?s=oracle+10g+bug

  • Call  ABAP From a Web Report

    Hi All,
    Can anyone pls tell me how can we call an ABAP report from a WAD report.
    We have a requirement that is when we click on a tab in a WAD report it should go to the system and execute a ABAP Report.
    Pls reply ASAP.
    Thanks
    Kapil

    Hi All,
    There is a small change in the requirement..
    I'll brief you with the entire scenario again.
    We have a reporting requirement that we were not able to achieve through BEx or WAD. So we decided to write a ABAP report for this. Since all the other reports are made in WAD.. we want this report also to be executed through WAD ie. when we execute this particular Web Template it should actually take us to the system and execute the ABAP report.
    Pls give your suggestions on achieving this.
    Thanks
    Kapil

  • Open a PDF report from a PDF report

    I would like to open a PDF report from a PDF report, but in a new IE window.
    I have the following code attached to an item in the report:-
    function F_RECONFormatTrigger return boolean is
    begin
    IF trim(:btch_ref) = 'PL' and trim(:recon) is not null and trim(:recon) <> ' ' then
    srw.set_font_weight(srw.bold_weight);
    srw.set_font_style(srw.underline_style);
    srw.set_text_color('blue');
    srw.set_hyperlink_attrs('onMouseover "window.status="Click here to see what is in your shopping basket"; return true"'||'onMouseout ="window.status=" "; return true"');
    srw.set_hyperlink('/reports/rwservlet?cmdkey=famis+desformat=pdf+report=FAMREP011+p_orderno='||trim(:recon));
    srw.set_hyperlink_attrs('target=_blank');
    -- srw.set_hyperlink_attrs('target="_blank"');
    END IF;
    return (TRUE);
    end;
    All of the commands work except for the 2 srw.set_hyperlink_attrs commands. The "onMouseover" and the "target" seem to have no effect. Can anyone help?
    Thanks in advance
    Michael

    The built in srw.set_hyperlink_attrs does not work , if the report format is PDF. There is no way to open another PDF report from a PDF report in a seperate window. Also think there is no way to hide URL which apperars when the mouse pointer moves over the hyperlink.
    In other report formats like HTML, the built in srw.set_hyperlink_attrs works.
    Kranthi

  • Generatation of 4 PDF Reports from One Oracle reports 10 G

    Hi All,
    i am generating 4 PDF reports from one Oracle reports in 10 G.
    i used RUN_REPORT_OBJECT built in 4 times with some different parameter list at a single time.
    some time it generates but some time it generate 2 or 3 out of 4.
    Can you anyone help me on this issue.
    Regards,
    Abhishek
    Code that i used for generation of report:
    on key-F0:
    DECLARE
         PL_ID PARAMLIST;
         PL_NAME VARCHAR2(10) := 'REP';
         USRNM VARCHAR2(50);
         pl_id2 paramlist;
         pl_name2 varchar2(10):= 'REP';
         usrnm2 varchar2(50);
         pl_id3 paramlist;
         pl_name3 varchar2(10):= 'REP';
         usrnm3 varchar2(50);
         pl_id4 paramlist;
         pl_name4 varchar2(10):= 'REP';
         usrnm4 varchar2(50);
    BEGIN
                        USRNM := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID := GET_PARAMETER_LIST(PL_NAME);
                        IF NOT ID_NULL(PL_ID) THEN
                             DESTROY_PARAMETER_LIST(PL_ID);
                        END IF;
                        PL_ID := CREATE_PARAMETER_LIST(PL_NAME);
                        IF ID_NULL(PL_ID) THEN
                                  MESSAGE('Error Creating Parameter List ');
                        END IF;
                        ADD_PARAMETER(PL_ID, 'P_PRNT_C_FAM_ID', TEXT_PARAMETER, :PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID, 'P_NOTICE_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID, 'P_REDET_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID, 'USR_NM', TEXT_PARAMETER, USRNM);
                             ADD_PARAMETER(PL_ID, 'SCHEDULE', TEXT_PARAMETER, :RUN_TIME);
                   ADD_PARAMETER(PL_ID,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
                   ADD_PARAMETER(PL_ID, 'P_ENG_SP', TEXT_PARAMETER,'N');
                   REDET_REPORT('506',PL_ID,'CT506_Parent_FamId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                   USRNM2 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID2 := GET_PARAMETER_LIST(PL_NAME2);
                        IF NOT ID_NULL(PL_ID2) THEN
                             DESTROY_PARAMETER_LIST(PL_ID2);
                        END IF;
                        PL_ID2 := CREATE_PARAMETER_LIST(PL_NAME2);
                        IF ID_NULL(PL_ID2) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID2,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID2,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID2,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID2,'USR_NM',TEXT_PARAMETER,USRNM2);
                        ADD_PARAMETER(PL_ID2,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                   ADD_PARAMETER(PL_ID2,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
                        ADD_PARAMETER(PL_ID2,'P_ENG_SP',TEXT_PARAMETER,'Y');
                        REDET_REPORT('506',PL_ID2,'CT506_Parent_FamId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                   USRNM3 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID3 := GET_PARAMETER_LIST(PL_NAME3);
                        IF NOT ID_NULL(PL_ID3) THEN
                             DESTROY_PARAMETER_LIST(PL_ID3);
                        END IF;
                        PL_ID3 := CREATE_PARAMETER_LIST(PL_NAME3);
                        IF ID_NULL(PL_ID3) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID3,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID3,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID3,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID3,'USR_NM',TEXT_PARAMETER,USRNM3);
                        ADD_PARAMETER(PL_ID3,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                        ADD_PARAMETER(PL_ID3,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
                        ADD_PARAMETER(PL_ID3,'P_ENG_SP',TEXT_PARAMETER,'N');
                        REDET_REPORT('506',PL_ID3,'CT506_Prov_ProvId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                        USRNM4 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID4 := GET_PARAMETER_LIST(PL_NAME4);
                        IF NOT ID_NULL(PL_ID4) THEN
                             DESTROY_PARAMETER_LIST(PL_ID4);
                        END IF;
                        PL_ID4 := CREATE_PARAMETER_LIST(PL_NAME4);
                        IF ID_NULL(PL_ID4) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID4,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID4,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID4,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID4,'USR_NM',TEXT_PARAMETER,USRNM4);
                        ADD_PARAMETER(PL_ID4,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                        ADD_PARAMETER(PL_ID4,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
                        ADD_PARAMETER(PL_ID4,'P_ENG_SP',TEXT_PARAMETER,'Y');
                        REDET_REPORT('506',PL_ID4,'CT506_Prov_ProvId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                        Message('Notice Submitted For Printing');
                   EXIT_FORM;
    END;
    Program unit:
    PROCEDURE REDET_REPORT(rep_name in Varchar2,plist in ParamList,rep_pdf_name in Varchar2)IS
              filecode varchar(2);
              Repnm varchar(30);
              report_id REPORT_OBJECT;
              report_id_hear REPORT_OBJECT;
              report_prop VARCHAR2(20);
              v_rep VARCHAR2(100);
              rep_status VARCHAR2(200);
              bat_loc varchar2(200);
              time_slot varchar2(100);
              rep_folder_name varchar2(100):='Redet Notice for Packets Sent\';
    BEGIN
                   Filecode := init.GetFileNmCode;
    if filecode <> 'FL' then
    if upper(substr(rep_name,1,2)) ='CC' then
    RepNm := filecode||substr(rep_name,3);
    else
         if rep_name != 'viewerr' then
    RepNm := filecode||rep_name;
         else
              RepNm := rep_name;
         end if;
    end if;
    end if;
              Begin
                        begin
                        report_id := find_report_object(RepNm);
                        if error_code = '41219' then
                        Message('Unable to execute : '|| RepNm);
                             Raise FORM_TRIGGER_FAILURE;
                        end if;
                   end;
                        set_report_object_property(report_id, REPORT_FILENAME, RepNm);
                        set_report_object_property(report_id, REPORT_SERVER, init.Appl_Repserver);
                        SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
                        SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE,SYNCHRONOUS);
                        set_report_object_property(report_id, REPORT_DESFORMAT,'PDF');
              select rprm_param_val||rep_folder_name||rep_pdf_name||'.pdf' into bat_loc from rprm where rprm_param_name = 'BAT_LOC';
              SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(REPORT_ID,REPORT_DESNAME,'"'||bat_loc||'"');
              begin
              v_rep := RUN_REPORT_OBJECT(report_id,plist);
              exception when others then
                   Message('Error While executing running reports ::'||error_code);
              end;
         end;
    END;

    Abhishek,
    Please post your question in the Reports forum. This forum is for Forms related questions.
    Craig...

  • How to run a Oracle 9i .JSP report from outside 9i Reports Builder

    Hi,
    I have successfully created a .JSP report from within 9i Reports Builder. It runs fine and generates desired output using Run -> Web Layout from the Reports Buider menu. The output is a .htm one.
    Now, my requirement is to run this .JSP from my application without using Reports Builder. In other words, I want to integrate this .JSP with my existing application which will fetch data dynamically for the user. There is no hint to this solution in the 9i Reports Tutorial available at OTN.
    A sample code would be highly helpful.
    Regards,
    - Partha

    partha,
    you deploy a reports-jsp to your oracle9i application server like any other JSP. copy it to a directory in the application servers document tree.
    when you execute the reports-jsp it will need a reports server (in process or stand alone) to execute since the actual data-management is done by the reports-server.
    regards,
    philipp
    PS : if you have further reports related questions, you might want to post those in the reports forum here on OTN.

  • How to print out multilingual reports from the main report using Xliff temp

    Hi all,
    How to print out multilingual reports from the main report using Xliff temp?
    When I want main report call subtemplate and finish xliff tranlation
    <?for-each@section:INVOICE?><?end for-each?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    Prints out fine with Finnish translation
    But if I want in main program to check what language is used e.g.
    if trx_number = 142 call Finnish translation and if trx_number =144,
    call English translation.
    <?for-each@section:INVOICE?><?end for-each?>
    <?if:TRX_NUMBER=’142’?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    <?end if?>
    <?if: TRX_NUMBER=’144’?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    <?end if?>
    Prints out always in English and never the Finnish translation.
    Program goes fine to if branch but does not print out Finnish
    Does anybody know what could be wrong?
    BR
    Kari

    Thanks Amit,
    I have two layout, main-layout and sub-layout
    Main layout call subtemplate
    I have registered layout and xliff-file
    Main template
    Localized Templates
    File Name           Language Territory
    XXNS_INVOICE_MAIN.rtf      English
    SUB template
    Localized Templates
    File Name           Language Territory
    XXNS_INVOICE_SUB.rtf      English
    Translatable Template
    File Name           Language      Territory
    XXNS_INVOICE_SUB.rtf      English      United States
    Available Translations
    Language Territory Progress
    English Finland Complete
    If main report call subtemplate and finish xliff tranlation
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    Prints out fine with Finnish translation
    But if I want in main program to check what language is used e.g.
    if....
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    .....end if;
    if....
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
    .....end if;
    Prints out always in English and never the Finnish translation.
    Program goes fine to if branch but does not print out Finnish
    Do you it's set up problem or program problem
    BR
    Kari

  • Integrating Reports from SQL Server Reporting Services

    Dear Experts,
    I am given the URL to a report from SQL Server Reporting Services. The URL looks like
    [http://<report_server_host>/ReportServer/Pages/ReportViewer.aspx?/<category>/<report>&<list_of_parameter_value_pairs>]
    When this URL is executed, the user will be prompted for user name and password.
    And I am given the following requirements:
    - Integrate the report into SAP NetWeaver Portal
    - The report has to be passed parameters with values generated at runtime and which must be hidden (because it is sensitive data)
    Initially, I have been working on two options:
    1. using Application Integrator (portal application: com.sap.portal.appintegrator.sap, portal component: Generic)
    2. using URL iView
    With the Application Integrator, however, I got the following error:
    The operation you are attempting on item "/" is not allowed for this item type. (rsWrongItemType)
    I cannot find the solution to this. It looks like the URL which contain "/" after "?" is not appropriate for the Application Integrator.
    So I turn my focus away from the Application Integrator, but to using the URL iView instead. And in order to hide the parameters passed, I make the following settings in the URL iView:
    Request Method = POST
    Fetch Mode = Server-Side
    But then I got the following error:
    Failed to fetch the content. The response status was 401.
    Message:
    (I have defined an HTTP system and used it in the URL iView.)
    Does anyone know how to fix the errors (either with the Application Integrator or the URL iView)?
    Your answers will be much appreciated!
    Regards
    Sakprasat Sum

    Hi
    Was a solution for this found?
    I am trying to achieve the same thing, create an iView that links to an existing SQL Reporting Services report.
    Cheers,
    Andrew

  • Calling report from a form/report

    Hello all,
    My Apex version 3.2.1
    I have created an application on some tables. Each table has a report and form page. Now everything in these pages is working fine(inserting, updating, deleting records).
    I have a situation here, where after I insert a new record in to a table from the form page, here I have to show a report page based on a SQL query which queries the records from another table and the current table passing the parameters. Parameters should be the values that I enter during inserting a record.
    Can I do this from form or report? If yes, how?
    Please help me...

    I think you could create an unconditional branch after submit that would go to the report page that calls the said report.
    Process flow:
    insert row in TABLE_A
    click update - adds row into table
    submits page
    processes validations, computations, etc
    branches to report page
    report page pulls data from TABLE_A (new row is inserted)
    You could have a separate branch on each form to accomplish this.
    Hope that helps
    Paul

  • Call report from forms6i, use report server from 10gAS

    Hi there,
    I have been searching for any info I can get that will help me to do the following:
    I want to call an Oracle 6i report from Forms6i but I want to specify a Report Server running on an Oracle10gAS box. Can this be done in a client/server fashion, meaning the forms/reports are on a Citrix box, accessed by many users.
    Everything is working fine, using "RUN_PRODUCT" and the "Report Background Engine" to generate the report on the Citrix box. However, I want to use the report server from 10gAS runinng on another box, to generate these reports.
    Please reply with any help you give.
    Regards
    shak

    Hello,
    You can use the compatible element in the reports server configuration file :
    Description
    The compatible element is available for backward compatibility with Oracle Reports 6i clients (RWCLI60.EXE, RWCGI60.EXE, RWQMU60.EXE, RWRQM60.EXE, RWRQV60.EXE, 6i Forms). When compatible is set to 6i, Reports Server will make use of an executable file named rwproxy that listens for requests from a 6i client and forwards them to a 10g server.
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_conf.htm#i1005999
    Regards

  • I can't to show report from addon Crystal Report

    I created simple report via Crystal designer (Select t0.itemcode, t0.itemname from oitm t0) and I registered this report in Manage Crystal Report. When I want to preview and print this report I get message "Multiple report views are not permitted". Why it happends? Thank you

    Hi,
    Please check this thread if it helps in your case :
    /message/6261065#6261065 [original link is broken]
    Regards,
    Jitin

  • Call transaction from the ABAP report

    Hi Gurus,
    Please help me with suggestion. I would like to access from SAP report with double click transaction FB03. I can access it, but in old transaction view ... How can I get the new transaction view?
    Here is the code,
    BR
    Saso
    IF fieldname CS 'BELNR'.
      PERFORM bdc_screen USING 'SAPMF05L' '100'.
          PERFORM bdc_field USING 'RF05L-BELNR' fieldvalue.
          PERFORM bdc_field USING 'RF05L-BUKRS' '0008'.
          PERFORM bdc_field USING 'RF05L-GJAHR' int-gjahr.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          CALL TRANSACTION 'FB03' USING bdc_data MODE 'E'.
          REFRESH bdc_data.
    ENDIF

    Try this Example:
    REPORT  ZABHI_TABSTRIP NO STANDARD PAGE HEADING
                 LINE-SIZE 80 LINE-COUNT 60.
    TABLES : sscrfields.
    DATA  activetab(6) TYPE c .
    DATA  mat_des TYPE makt-maktx.
    DATA  pl_des  TYPE t001w-name1 .
    DATA  mat_gro  TYPE mara-mbrsh .
    DATA  mat_typ  TYPE mara-mtart .
    SELECTION-SCREEN BEGIN OF SCREEN 001 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-002 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-010 FOR FIELD matnr.
    PARAMETERS matnr TYPE mara-matnr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN END OF SCREEN 001.
    SELECTION-SCREEN BEGIN OF SCREEN 002 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-003 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-020 FOR FIELD matnr.
    PARAMETERS werks TYPE t001w-werks.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block2.
    SELECTION-SCREEN END OF SCREEN 002.
    SELECTION-SCREEN BEGIN OF SCREEN 003 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block3 WITH FRAME TITLE text-004 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-030 FOR FIELD matnr.
    PARAMETERS mbrsh TYPE mara-mbrsh.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block3.
    SELECTION-SCREEN END OF SCREEN 003.
    SELECTION-SCREEN BEGIN OF SCREEN 004 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block4 WITH FRAME TITLE text-005 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-005 FOR FIELD matnr.
    PARAMETERS mtart TYPE mara-mtart.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block4.
    SELECTION-SCREEN END OF SCREEN 004.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 5 LINES NO INTERVALS.
    SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1
                                        DEFAULT SCREEN 002.
    SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2 .
    SELECTION-SCREEN TAB (15) tabs3 USER-COMMAND ucomm3.
    SELECTION-SCREEN TAB (15) tabs4 USER-COMMAND ucomm4.
    *                     DEFAULT SCREEN 002   .
    SELECTION-SCREEN END OF BLOCK tabb1.
    INITIALIZATION.
       tabs1 = text-002.
       tabs2 = text-003.
       tabs3 = text-004.
       tabs4 = text-005.
       activetab = 'TABS1'.
    AT SELECTION-SCREEN .
       CASE sscrfields-ucomm.
         WHEN 'UCOMM1'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 001.
           tabb1-activetab = 'TABS1'.
           activetab = 'TABS1' .
         WHEN 'UCOMM2'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 002.
           tabb1-activetab = 'TABS2'.
           activetab = 'TABS2'.
            WHEN 'UCOMM3'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 003.
           tabb1-activetab = 'TABS3'.
           activetab = 'TABS3'.
            WHEN 'UCOMM4'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 004.
           tabb1-activetab = 'TABS4'.
           activetab = 'TABS4'.
       ENDCASE.
    START-OF-SELECTION.
       CASE activetab.
         WHEN 'TABS1'.
           SELECT SINGLE maktx  FROM makt INTO pl_des WHERE matnr = matnr.
           WRITE: 'Material ' , matnr , mat_des .
           WHEN 'TABS2'.
           SELECT SINGLE name1  FROM t001w INTO pl_des WHERE werks = werks.
           WRITE: 'Plant ' , werks ,pl_des.
         WHEN 'TABS3'.
           SELECT SINGLE mbrsh  FROM mara INTO mat_gro WHERE mbrsh = mbrsh.
           WRITE: 'Material Group ' , mbrsh ,mat_gro.
           WHEN 'TABS4'.
           SELECT SINGLE mtart  FROM mara INTO  mat_typ WHERE mtart = mtart.
           WRITE: 'Material Type ' , mtart , mat_typ.
           ENDCASE.
    And let me know.

  • Calling JavaScript from a SQL report?

    I am using the HTMLDB_ITEM api's to build my report. I am trying to render a text item and append an image / hyperlink to the end of my textbox which links to a custom popup page.
    I have all this working but I need to use a JavaScript call html_GetElement to pass into the URL I am building in the link.
    e.g.
    This query works fine and my popup page fires passing the value 'ABC' into the element P323_PIN on the popup page 323.
    <br><br>
    SELECT HTMLDB_ITEM.text (01, NULL, 10, 25)
    ||
    '<ah ref="javascript:html_PopUp(''f?p=&APP_ID.:323:&APP_SESSION.::::P323_PIN:ABCD'');
    ">Link</a>' pin
    FROM DUAL;
    <br><br>
    PS the hyperlink tag has been broken so it will display in the forum.
    <p>I would link to replace this with the value (if any) that the user types into the textbox (01).
    Any suggestions as I cannot seem to concatanate the right value into my url string. I think it is due to the quotes but I cant see the wood for the trees at the moment.
    Regards
    Duncan
    Message was edited by:
    Duncs

    If the at line selections is getting fired then just use this option to call the url,
    REPORT  zkb_test4.
    DATA: v_str(60) TYPE c.
    AT LINE-SELECTION.
      DATA: v_url TYPE string.
      v_url = v_str.
      CALL METHOD cl_gui_frontend_services=>execute
        EXPORTING
          document               = v_url
        EXCEPTIONS
          cntl_error             = 1
          error_no_gui           = 2
          bad_parameter          = 3
          file_not_found         = 4
          path_not_found         = 5
          file_extension_unknown = 6
          error_execute_failed   = 7
          synchronous_failed     = 8
          not_supported_by_gui   = 9
          OTHERS                 = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    START-OF-SELECTION.
      v_str = 'http://sap.com'.
      WRITE / v_str.
      HIDE v_str.
    Regards
    Kathirvel

  • Creating pdf report from xml publisher report

    Hi,
    I'm newbie to xmlpublisher env.
    We've a report in Oracle 11i developed in unix shell script and run as concurrent program generating check details which will be printed on checks.
    I was asked to migrate this report into R12 in pdf format.They provided rtf template and xml data.I installed xml publisher desktop.I would like to know how I can create pdf template,if necessary changing the position of fields on the template.
    Thanks,
    Kiran

    Hi Kiran,
    Sorry to say, but no you can not use the desktop or standalone edition for integration with EBS.
    In your case there are 2 alternatives for you:
    1) Update the Unix shell script so it's ok for R12 (it did a good job for a long time on 11i)
    2) Leave the unix script and redesign for BI Publisher (ebs edition)
    Both are taking the same effort in my opinion, only since you moved to R12 it's a good learning moment to get to know the strength of BIP.
    Since you task is to modify the standard Oracle solution, which i guess is an rtf template provided download the MS Word plugin and adjust the template
    If any detail help needed please contact me directly

Maybe you are looking for

  • Tip: How I got my mini 2011 to sleep/wake !

    I have a new Mini Server 20011 (Lion) for two weeks now (not used as a server). It wouldn't sleep nor wake, right from the first start-up. After going through all the discussions on this issue for several evenings, today I stumbled upon a solution th

  • How to link safari with cloud

    I own a Macbook pro and an Ipod Touch 4th Gen, I recently upgraded to Mountain Lion. I want to sync safari on my mac to my Ipod 4th gen running ios5.1.1 so that when I open web pages on my iPhone or iPad, iCloud Tabs makes them available on my Mac, t

  • Bootcamp Mounts Window's System Reserved Partition

    Bootcamp has decided to mount Window's System Reserved partition instead of the actual Windows partition. It was working fine up until this week when I decided to plug in an external hard drive. After I plugged it in and restarted into OS X, the prob

  • Where are my apps?

    I stupidly changed my password for my iPhone 4S 16GB using ios 7.0.4 but then forgot it! Luckily I restored it using my computer so it's now got the same password and wallpaper as when i last backed it up so at the end of restore I pressed the thing

  • Crystal Reports 8.5 not saving changes to report criteria

    When I use the formula editor to add new criteria to the report criteria formula, the changes are not saved when the report is closed.  It doesn't seem to matter how I exit the formula editor, and I've even tried "save as" and saving the report to a