How to call a rtf template from another rtf template by passing a value

Hi Gurus,
Its about calling a rtf template from another rtf template by passing a value.
My requirement is like:
I got a quote report from Siebel, based on the product PartNumber I need to pull product description or literature from another database database.
My approach is something like; get a partnumber from quote report pass it to another rtf template which uses the partnumber and get the data from table using DataSource. When user pull a quote report from siebel this new rtf template should attach to the quote at the end.
I've gone through all available blogs about sub-reports and white papers from Oracle they are not much helpful since I need step-by-step.
http://www.adivaconsulting.com/adiva-blog/item/36-working-with-rtf-sub-templates.html
bip-subtemplate-1-132933.pdf
I'm using 10g obiee integrated with Siebel.
Just started learning BIP.
Thanks in advance.
Edited by: 911927 on Apr 2, 2013 8:56 AM
Edited by: 911927 on Apr 2, 2013 8:57 AM

How to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
IMHO you can not attach it to main. it'll be second independent report
you can try subtemplate but it's not about rtf from rtf by click
it's about call automatically rtf subtemplate from main rtf based on some conditions
for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition

Similar Messages

  • How to call a Java class from another java class ??

    Hi ..... can somebody plz tell me
    How to call a Java Class from another Java Class assuming both in the same Package??
    I want to call the entire Java Class  (not any specific method only........I want all the functionalities of that class)
    Please provide me some slotuions!!
    Waiting for some fast replies!!
    Regards
    Smita Mohanty

    Hi Smita,
    you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
    e.g.
    you have developed A.java and B.java, both are in same package.
    in implementaion of B.java
    class B
                A obj = new A();
                 //to access A's methods
                 A.method();
                // to access A's variable
                //either
               A.variable= value.
               //or
               A.setvariable() or A.getvariable()

  • How to call a function module from the Web Template?

    Hi all,
    how can I call a function module from a BI 7.x web template and then show the result of the FM on the web template?
    Many thanks for your hints.
    Regards, Nils

    Hi!
    I am too working on a similar issue.
    Probably this helps:
    Re: Calling a function module from a Web Template
    Regards,
    Sri

  • How to call a help file from a WAD Template button

    Hi All
    I need to implement a button in a web template when I press the button it displays another HTML or text file it is mainly on help on the report.
    I am just wondering how to store this HTML or text file in the system and what function to implement in the web template button ti display this text or HTML when the button is pressed.
    Thanks
    Karen

    Hi Karen,
    Please try this out:
    With WAD 3.5 it's easy. You could use javascript function: window.open().
    window.open("/sap/bw/Mime/Customer/.../file.htm","NewWindow","width=750,height=700,left=100,top=100");
    Try using the SCRIPT Item in WAD 7.0. You can use the same code within the SCRIPT Item and call the function which has been defined in the Script Item, in the XHTML part of the Template.
    It may help.
    Or put the file in another web template and on click of a button, the new template opens up and displays the content of the file.
    Not sure though if the latter one would be useful, its just a thought.
    Hope it Helps,
    Regards,
    Amit

  • How to call a Dialog Program from another Dialog Program

    Dear All,
    How can I call a dialog program with return value from another dialog program?
    Regards,
    Alok.

    Hi Alok,
    1. Insted of creating 2 different Dialog program. It's good to create as many screens as you want in same module pool program. Any way you can use the different TCODE for each screen.
    2. Another and The best way is to create a function group and then inside function group use the function 2 module... In the function group define a global variable which will be present for both the function group if they are getting executed in sequence. and inside the Function Module call the screens using command " call screen <screenno>".
    3. You can use set / get parameter to pass values of a field between two dynpro program.

  • How to call dynamic selection screen from another report

    hi,
    i have transaction ZFAGLL03.
    it has got standard selection screen.. and dynamic selection screen...
    i am calling this transaction from another report, now how do i display this dynamic selection screen.....

    Try following code and see if it helps:
    TYPE-POOLS : rsds.
    TABLES:tgsb.
    DATA: trange TYPE rsds_trange,
           trange_line
             LIKE LINE OF trange,
           trange_frange_t_line
             LIKE LINE OF trange_line-frange_t,
           trange_frange_t_selopt_t_line
             LIKE LINE OF trange_frange_t_line-selopt_t,
              trange_line1
             LIKE LINE OF trange,
           trange_frange_t_line1
             LIKE LINE OF trange_line-frange_t,
           trange_frange_t_selopt_t_line1
             LIKE LINE OF trange_frange_t_line-selopt_t,
           texpr TYPE rsds_texpr.
    DATA: seltab TYPE TABLE OF rsparams WITH HEADER LINE,seltex TYPE rsds_texpr.
    SELECT-OPTIONS:so_gsber FOR tgsb-gsber.
    LOOP AT so_gsber.
       trange_line-tablename = 'FAGLFLEXA_FS'.
       trange_frange_t_line-fieldname = 'RBUSA'.
       MOVE-CORRESPONDING so_gsber TO trange_frange_t_selopt_t_line.
       APPEND trange_frange_t_selopt_t_line
       TO trange_frange_t_line-selopt_t.
    ENDLOOP.
    APPEND trange_frange_t_line TO trange_line-frange_t.
    APPEND trange_line TO trange.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
       EXPORTING
         field_ranges = trange
       IMPORTING
         expressions  = texpr.
    submit FAGL_ACCOUNT_ITEMS_GL with FREE SELECTIONS texpr   AND RETURN .

  • How to call an alv report from another program and return back

         Hello ,
    I am calling one abap program (Prgm B) from another program (Prgrm A).
    Here, Prgm B is an ALV report. I have fetch some data from Prgem B that gets stored in an internal table.
    Now, I am using below code in Prgrm A,
      SUBMIT Prgrm B VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          EXPORTING LIST TO MEMORY
                          AND RETURN.
    When Prgrm A executed, it lead me to selection screen of Prgrm B and when I click F8, it shows me the report output, In short, it doesnt return back to Prgrm A. It ends up showing me the alv report if Prgrm B even afetr using RETURN statement.
    I want to get back to Prgrm A by fetching some data from Prgrm B.
    Please let me know, if i am missing something.
    Regards,
    Seema

    Hi Seema,
    Refer below code.
    DATA: v_matnr LIKE mara-matnr.
    DATA: t_listobject TYPE abaplist OCCURS 0 WITH HEADER LINE.
    DATA: t_mara TYPE mara OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_ascilist OCCURS 0,
             line(200).
    DATA: END OF t_ascilist.
    data var(3) type c.
    SELECT-OPTIONS: s_matnr FOR v_matnr.
    var = '  3'.
    START-OF-SELECTION.
       SUBMIT ztestaks1 WITH s_matnr IN s_matnr EXPORTING LIST TO MEMORY
       AND RETURN.
       CALL FUNCTION 'LIST_FROM_MEMORY'
            TABLES
                 listobject = t_listobject
            EXCEPTIONS
                 not_found  = 1
                 OTHERS     = 2.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ELSE.
         CALL FUNCTION 'LIST_TO_ASCI'
    *     EXPORTING
    *       LIST_INDEX               = -1
    *       WITH_LINE_BREAK          = ' '
           TABLES
             listasci                 = t_ascilist
             listobject               = t_listobject
           EXCEPTIONS
             empty_list               = 1
             list_index_invalid       = 2
             OTHERS                   = 3.
         IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         ELSE.
           WRITE:/ 'Below are the lines from the submitted program.'.
           LOOP AT t_ascilist.
             WRITE:/ t_ascilist-line.
           ENDLOOP.
           SKIP 2.
         ENDIF.
       ENDIF.
       IMPORT t_mara FROM MEMORY ID 'T_MARA'.
       WRITE:/
    'Here is the output from the table exported from the submitted program.'
       LOOP AT t_mara.
         WRITE:/ t_mara-matnr.
       ENDLOOP.
    Submitted program
    REPORT  ZTESTAKS1.
    DATA: v_matnr LIKE mara-matnr,
           v_maktx LIKE makt-maktx.
    DATA: t_mara TYPE mara OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_makt OCCURS 0,
             matnr LIKE makt-matnr.
    DATA: END OF t_makt.
    SELECT-OPTIONS: s_matnr FOR v_matnr,
                     s_maktx FOR v_maktx.
    START-OF-SELECTION.
       SELECT matnr INTO TABLE t_makt
                    FROM makt
                   WHERE matnr IN s_matnr
                     AND maktx IN s_maktx.
    if not t_makt[] is initial.
       SELECT * FROM mara
                INTO TABLE t_mara FOR ALL ENTRIES IN t_makt
               WHERE matnr = t_makt-matnr.
    endif.
       EXPORT t_mara TO MEMORY ID 'T_MARA'.
       WRITE:/ 'This list is from the submitted program'.
       SKIP 1.
       LOOP AT t_mara.
         WRITE:/ t_mara-mtart.
       ENDLOOP.
    Hopes this helps you.
    Thanks,
    Ashok.

  • How to call a Jclient form from another project?

    In my workspace, there are three projects. One is for business components. The other two are Jclient forms applications. Can I open a Jclient form from another Jclient form in another project?
    I used to create multi_form accounting application using Oracle Form Builder in which I can call a form from another form.

    Just set one project to be dependant on another in the project settings dialog of the former. This should work.

  • How to call one Main MXML from another main MXML file and pass values between them?

    Hi,
    I am trying to populate a datagrid from a XML file ,which I have done successful
    I am able to get data out of the datagrid on clicking on any element
    Now when I click on any element in datagrid I want call a new mxml file which is also have Aplication tag and I want to pass that value of clicked element to it
    This is the code I am using for getting data from XML into data grid in 1st MXML file and the XML file used.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"  initialize="exp.send()">
         <fx:Declarations>
             <s:HTTPService id="exp" url="expLab1.xml" result="
    resultHandlerQuestionBar(event)"/>
         </fx:Declarations>
         <s:Panel x="74" y="218" width="485" height="333" title="Work On Configured Experiments" id="p1" fontSize="14" chromeColor="#9BFDAB" dropShadowVisible="false" contentBackgroundColor="#E4EEE6" contentBackgroundAlpha="1.0" backgroundColor="#67B6AC" textAlign="left">
              <mx:DataGrid  x="35" y="33" width="338" height="88" dataProvider="{experimentdetails}" chromeColor="#FCFCFC" contentBackgroundColor="#FFFFFF" selectionColor="#FAFBFD" rollOverColor="#FCFDFF" focusColor="#FCFDFD" itemClick="onItemClick( event );">
                  <mx:columns>
                     <mx:DataGridColumn id="j1" dataField="experimentName" headerText="" itemRenderer="jaya">
                     </mx:DataGridColumn>
                  </mx:columns>
             </mx:DataGrid>
         </s:Panel>
         <fx:Script>
             <![CDATA[
                 import mx.collections.ArrayCollection;
                 import mx.controls.Alert;
                  import mx.events.FlexEvent;
                 import mx.events.ListEvent;
                 import mx.rpc.events.ResultEvent;
                 [Bindable]
                 private var workbenchname:ArrayCollection;
                  //private var a:String;
                 private function resultHandlerQuestionBar(event:ResultEvent):void
                    experimentdetails=event.result.List.experimentList.experiment;  
                 [Bindable]
                 private var experimentdetails:ArrayCollection;
                  private var alert:Alert;
    private var data:String;
                 private function onItemClick( e:ListEvent ):void {
       data= experimentdetails.getItemAt(e.rowIndex).experimentName.toString();
                    alert=Alert.show(experimentdetails.getItemAt(e.rowIndex).experimentName.toString());
             ]]>
         </fx:Script>
    </s:Application>
    and the xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <List>
       <workbench>Basic Movement</workbench>
         <experimentList>
           <experiment>
             <experimentName>Distance with varying time</experimentName>
             <Rating>2</Rating>
             <expNO>1</expNO>
           </experiment>
           <experiment>
             <experimentName>Distance with Constant time</experimentName>
             <Rating>1</Rating>
             <expNO>2</expNO>
           </experiment>
           <experiment>
             <experimentName>Time taken while decelerating</experimentName>
             <Rating>3</Rating>
             <expNO>3</expNO>
           </experiment>
          </experimentList> 
    </List>
    Now the code for 2nd MXML is as follows
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
          <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:Label text="lable1" >
          </s:Label>
    </s:Application>

    Check out ExternalInterface class:
    http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_2.html
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • HOW TO CALL A JSP METHOD FROM ANOTHER JSP

    Hi all, I have to JSP1 and JSP2 and i would like to call a method of JS1 from JSP2. Is that possible ??
    Example:
    JSP2 Code
    somewhere in the code ...
    String s = JSP1.getName();
    out.println("EL NOMBRE ES " +s );
    thanks in advance for your help

    No, it is not possible. Infact you cannot write your own methods in JSP. What ever you write in a jsp page is part of _jspService() method. Secondly how can you instantiate another class(generated by JSP), until or unless you know the name of the class that resulted from your JSP. Your JSP page is first converted into .java file which is stored in some package e.g.
    pagecompile.jsp._yourJSPfile.
    I couldnot understand why you need to invoke a method of another JSP in your JSP.
    Hope this helps

  • How to call a logic package from another piece of logic

    Hello Everyone,
    I have two pieces of logic that I am running. One is a push to Finance logic that is in my payroll application (PushToFinance.lgx). It is supposed to push the data from Payroll to specific accounts within the Finance application. Within that logic I have a run logic statement that calls another piece of logic that is on the Finance application (ClearPayrollBalances.lgx). This logic is called to clear the destination application (finance) data intersections and then push the data values from Payroll to Finance. However, No matter where I put the run logic that calls the ClearPayrollBalances.LGX it clears the balances as the last step in my logic execution. I have commented it the Runlogic statement the data is pushed to the Finance application. I need to have the data intersections cleared before the Push. Any suggestions on how to make this work?
    {******************************* Push Logic Here PushToFinance.LGX *************************************
    //Planning - move data accumulated in InputorLoad member of DataSrc to the Finance App
    //Clear Finance App
    //Ran to clear data intersections in the Finance Application before Push to Finance Logic.
    *RUNLOGIC
    *APP=Finance
    *LOGIC=ClearPayrollBalances.LGX
    *ENDRUNLOGIC
    *COMMIT
    // Move Payroll Data to Finance App
    *DESTINATION_APP=Finance
    //Dims not used in Finance
    *Skip_Dim=JobTitle
    *Skip_Dim=PayPosition
    //New Dimensions in Finance
    *Rename_Dim PayAccount = AccountExp
    //Select only the accounts to be pushed to Finance
    *CALCULATE_DIFFERENCE=0 
    *Select(%PushAccnts%,"[ID]","PayAccount","FinAccount <>''")
    *XDIM_MEMBERSET PayAccount = %PushAccnts%
    *XDIM_MEMBERSET RptCurrency = LC  //only get LC in case FX conversion is used in the future
    *XDIM_MEMBERSET DATASRC = InputorLoad
    *XDIM_MEMBERSET TIME = %PREFIX%.JAN,%PREFIX%.FEB,%PREFIX%.MAR,%PREFIX%.APR,%PREFIX%.MAY,%PREFIX%.JUN,%PREFIX%.JUL,%PREFIX%.AUG,%PREFIX%.SEP,%PREFIX%.OCT,%PREFIX%.NOV,%PREFIX%.DEC                                                                               
    *WHEN DATASRC
    *IS InputorLoad
             *REC(FACTOR=1,DATASRC=PAYAPP,PayAccount=PayAccount.FinAccount)  //save to a different datasrc
    *ENDWHEN
    *COMMIT
    ********************************End Push Logic********************************
    *******************************Begin Clear Logic ClearPayrollBalances.Lgx **********************************
    //This is called from the Payroll application in the Destination  (FINANCE) App
    // Clear Payroll Balances before Payroll PushToFinance Logic populates Finance Application
    // Calling logic passes the Organization set
    *XDIM_DEFAULT ORGANIZATION=NOORGANIZATION
    *XDIM_MEMBERSET ACCOUNT=A_90020000,A_90022000,A_90030000,A_90031000,A_90031500,A_90032000,A_90032500,A_90033000
    *XDIM_MEMBERSET CATEGORY=BUDGETWORKING                                                                               
    *XDIM_MEMBERSET DATASRC=PAYAPP                                                                               
    *XDIM_MEMBERSET RPTCURRENCY=LC
    *WHEN DATASRC
             *IS PAYAPP
             *REC(FACTOR=0)
    *ENDWHEN}

    Thanks for the feedback. I figured out what you meant. I am adding it to Default logic and calling both pieces of logic from a new logic file. I am writing the steps out for others who may need it !
    1.     Create a separate logic file in Payroll called u201CPushtoFinanceu201D and add the Push section.
    2.     In your Default logic in Payroll, have two RUNLOGIC statements, first for the Finance Clear logic and then second for the Push Logic.
    *RUNLOGIC
    *APP=FINANCE
    *LOGIC=ClearPayrollBalances.LGX
    *ENDRUNLOGIC
    *RUNLOGIC
    *LOGIC=PushtoFinance.LGX
    *ENDRUNLOGIC

  • EREC-BSP-How to call a bsp application from another bsp application

    Hi Experts,
    In E-Rec one of my bsp application zapp_e_ext calling another standard bsp application hrrcf_searchhlp when user click on search help button.
    i made a zcopy (zhrrcf_serchhlp) of std application hrrcf_searchhlp,and did some changes,
    now the problem is how to replace the std application with zapplication so that zapplication should be called in place of std application when user click on search button.
    Cheers,
    Amod

    try exec()ing the cad program with the name of the file as a command line parameter...
    Runtime.getRuntime().exec("CADProg.exe Test.prt");
    i have no clue if this will work but it seems like it's worth a try.

  • How to call an App Module from another App Module?

    Here are the settings for my project.
    MyApplication (Application)
    Model1 (Project) : Has connection settings to connect to schema1
    Model2 (Project) : Has connection settings to connect to schema2
    ViewController (Project) : View project
    How do I call Model2 from Model1 ? I tried calling findApplicationModule but that did not work.
    Can I get access to the AppModule from JNDI tree? How else can I get access to Model2 from Model1?
    Thanks

    This is the code that is getting called from App Module 1. The first method, test1, throws an error where as test2 is successful. Do you see any obvious errors in the code?
    public String test1() {
    System.out.println("This is test1");
    String amDef = "org.model.service.HrService";
    String config = "HrServiceLocal";
    ApplicationModule am2 = (ApplicationModule ) Configuration.createRootApplicationModule(amDef,config);
    HrServiceImpl am3 = (HrServiceImpl)am2;
    am3.test123();
    Configuration.releaseRootApplicationModule(am2, true);
    //return am2;
    return "test1";
    Error:
    Internal Server Error (Caught exception while handling request: oracle.jbo.ConfigException: JBO-33005: Configuration HrServiceLocal not found)
    public String test2() {
    String AMDefName = "org.model.service.HrService";
    Hashtable env = new Hashtable(2);
    env.put(JboContext.INITIAL_CONTEXT_FACTORY,JboContext.JBO_CONTEXT_FACTORY);
    env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
    HrService am = null;
    try { 
    InitialContext ic = new InitialContext(env);
    ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(AMDefName);
    am = (HrService)home.create();
    String retString = am.test123();
    System.out.println("Value from the first application module=" + retString);
    catch (NamingException nex) {  /* Handle the error here if you don't find it */
    System.out.println("Naming exception " + nex);
    Configuration.releaseRootApplicationModule(am, true);
    return "test2";
    successful
    Thanks
    Mike

  • Through Enhancement, how to call a Webdynpro method from another webdynpro?

    I have a standard page with 2 iViews with a standard abap webdynpro in each.
    The first webdynpro needs to refresh the second webdynpro.
    Through enhancement, I tried to follow the solution below:
    first of all in the child component's component controller method(which you want to expose to another component) must be checked in the interface column.
    Double click on the webdynpro project(parent component)->In the used components tab, in the column of component type the child project name(whose method you want to call) and in component usage column give any name->save the project.
    goto the controller(VIEW or COMPONENT) from where you want to call the method->click create controller usage->select the interface controller of the child component->save the project.
    click the code wizard->select method call in used controller->select the child component interface controller ->select the method you want to call.
    Link of thread: Calling a method of other webdynpro component
    But this solution doesn't worked because in this standard webdynpro is not possible to check the method as Interface.
    Is there other way to do this?
    Thanks.

    Hello,
    you can refer the following documentation for portal eventing
    http://help.sap.com/saphelp_nw70/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
    Br, Saravanan

  • How to call a local variable from another component controller

    Dear Experts,
           I have created 1 component controller(Controller Name as B)and methods.In that methods I Have declared Local variable(For ex data: Lv_flag). I have Created 1 more component and name as A. I used Component B in Component A(Using component usage). In A component controller I have created methods.Now I want to call a local variable Lv-flag in this method from B controller Method. Please reply your valuable answer.

    Karthikeyan,
    Please make sure that flag attribute is under some node, say NODEA. NOW please select the interface node property and input element  of NODEA.
    now NODEA will be available in interface controller. Interface controller acts like a global  controller between two different components.
    So from interface controller you can take that flag value.
    pls reply back if you have any confusion.
    Regards
    Srinivas

Maybe you are looking for