How to pass dynamic params to Transaction iView from webdynpro java app

Hi Experts,
I am trying to call a transaction iview in PCD from my Dynpro application with a dynamic param.
Can somebody help me generating the URL for transaction iView and passing the dynamic params???
Thanks in advance
biroj...

Hi,
Generating the URL:
StringBuffer strBuff = new StringBuffer("/webdynpro/dispatcher/xyz.com/xx~xxxx~xxxxx/xxxxxApp");
          strBuff.append("?");
          strBuff.append("TCODE=");
strBuff.append("" + WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("TCODE"));
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(strBuff.toString(), "TCODEWindow");
window.show();
Please try the above code snippet helps you to create a TCode iView in a new window.
or
We can include URL parameters in a portal URL that calls a Web Dynpro page and these parameters can be forwarded to the otehr iVIews on the page.
Example:
http://xxxxxxxxx.com/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.WebDynpro?System=SAP_XXXXXXXX&WebDynproNamespace=xxxxx.com&WebDynproApplication=xx~xxxx~xxxx/xxxxApp&DynamicParameter=u201DTCODE=VA02u201D
For more information Please go through this:
http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
Thanks
Krishna

Similar Messages

  • How to call IAC Iview from WebDynpro java code

    Hi Team,
    I am tring to call IAC Iview from WebDynpro Java code. we are passing value but blank page  displayed and there is no error show on error log.
    Below is Java Code which i am calling.
      public void wdDoInit()
          try {
                String strURL = "portal_content/TestSRM/iView/TestSRM";                           //WDProtocolAdapter.getProtocolAdapter().getRequestParameter("application");
                 String random = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("random_code");     
                 //wdContext.currentContextElement().setRandomNumber(random);
    //below we are call URL           
    WDPortalNavigation.navigateAbsolute("ROLES://portal_content/TestSRM/iView/TestSRM?VAL="+random,WDPortalNavigationMode.SHOW_INPLACE,(String)null, (String)null,
                       WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String)null,(String)null, " ");
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    I am passing value from URL.
    http://<host Name>:<port>/webdynpro/resources/local/staruser/StarUser?random_code=111111111
    when we call above URL we getting blank screen.
    Regards
    Pankaj Kamble

    Hi Vinod,
    read this document (from pages 7 ).
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62</a>
    In addition lok at these links: (Navigation Between Web Dynpro Applications in the Portal)
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm</a>
    It may be helpful for you.
    Best regards,
    Gianluca Barile

  • Has anybody created Iview from "Webdynpro Java" component in CE7.1 ?

    Hi All,
           Has anyone created Iview from Webdynpro Java component in CE7.1.
    Because the wizard that appears for creation of Iview has only "Webdynpro ABAP"
    component.There is no option to create iview from "Webdynpro Java" component.
               Althought in portal content--->Template folder i can see there is also
    another template for "SAP Webdynpro iview" which i think is for the Java scenario.
    But issue is, its not coming in the wizard.Can anyone tell me how to make it appear in the wizard ? It will be of great help to me.
    Thanks and Regards
    Ashis

    Hi Ashis,
    your deployed webdynpros are published under "web dynpro applications". just copy the webdynpro from there and paste it into the portal content section.
    http://help.sap.com/saphelp_nwce10/helpdata/en/ce/e0d6f54ae641fc9566501cffaa8c6c/frameset.htm
    Hope that helps you.
    Best wishes, Jens

  • Trying to opn SAP Transaction IView from Webdynpro

    Hi Friends,
    I need to open a SAP Trancation Iview from Webdynpro (on click of some button) and pass some values to the screen fields,
    I am using the code below(which I found in many threads):
    WDPortalNavigation.navigateAbsolute("ROLES://<Iview ID excluding pcd>",
    WDPortalNavigationMode.SHOW_INPLACE,
    (String)null,
    (String)null,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    (String)null,
    (String)null,
    (String)null);
    The problem is nothin happened on account of execution of this code,
    I mean not even a blank screen gets opened.
    I am not even getting any error/exception.
    Please advice what could be the possible cause.
    Regards
    Deepak
    Edited by: Deepak Gupta on Mar 17, 2008 12:15 PM

    I wrote the code like below:
    WDPortalNavigation.navigateAbsolute("ROLES://<IViewPath>", WDPortalNavigationMode.SHOW_EXTERNAL,
    (String)null,
    (String)null,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    (String)null,
    (String)null,
    "number=123456");
    In IView application property, I wrote:
    CRMT_SEARCH_LOC-CARD_NO=<Request.number>
    (L.H.S is the screen field name)
    then I got following exception at portal:
    An exception occurred while processing a request for :
    iView : pcd:portal_content/<Iview path>
    Component Name : com.sap.portal.appintegrator.sap.Transaction
    Exception in SAP Application Integrator occured: Unable to process template 'CRMT_SEARCH_LOC-CARD_NO=<Request.number>', because 'number' is an invalid terminal property of context 'Request.'..
    what went wrong????

  • Calling a Report/Transaction iview from Webdynpro..

    Hi all,
              Our first issue is we have a scenareio, where we need to execute reports(ABAP Program) from webdynpro. Is it possibile to execute a standard report from webdynpro? using JCO. Also tell me how to pass the input/output parameters.I am not allowed to create RFC.I can use only standard BAPI.
              Our second issue is we created one transaction type callable object, and we want to call this transaction callable object from webdynpro, in another callable object in GP. Is this Possibile in webdynpro. We tried using portal navigation, but it is working for normal webdynpro iviews only, not for url iviews also.
              Does any body know the answer for the above issues. please let us know.
             Thanks in advance.

    hi,
    1) it is not possible in web dynpro to call abap reports, what you can do is creating wrapper of Remote enabled FM around the report. But you dont have authorisation to create BAPI, so gotta take use of standard BAPIs.
    ABAP Report in WebDynpro
    this link will help you out for that(calling standard bapi in WD)
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715 [original link is broken]
    2) go thru this links
    WebDynpro Application as callable object in GP?
    Webdynpro callable object - RFC model
    implenting webdynpro as a Calable Object with GP Interface
    hope it helps
    regards

  • How to pass a "object" as a prameter from one java class to another java

    hi experts, I want to know "How to pass and get object as a parameter from one java class to another java class". I tried follwoing code just check it and give suggetions..
    import Budget.src.qrybean;
    public class ConfirmBillPDF extends HttpServlet
    qrybean db = new qrybean();
    SimplePDFTable pdfTable = new SimplePDFTable();
    pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");
    }Here i want to pass db with simplePDFTableShow method. simplePDFTableShow is in another java class. So how can i do this.
    And also i want to know, how this obj will get.
    please help me.
    Edited by: andy_surya on Jul 14, 2010 7:51 AM

    Hi andy_surya
    what is this i am not understand
    pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");but i am try to solve your problem try this
    qrybean db = new qrybean();
    SimplePDFTable pdfTable = new SimplePDFTable();
    pdfTable.simplePDFTableShow(db);and access like this in SimplePDFtable class update your method
    simplePDFTable(qrybean tempDB)
    // write your code
    }

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • How to pass dynamic filename to Receiver JMS channel

    Hi experts,
    I want to pass the dynamic filename to receiver JMS message Properties.
    for example
    I am passing directory name via adapter module AF_Modules/DynamicConfigurationBean with key and value combination like below. How to pass dynamic filename value to a dynamic property ( say DCJMSMessageProperty1)
    eg.
    key.0 - >insert http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0
    value.0 - >  testdirectory ( which is static value)
    Note: Im have not created any ESR object . i just have to bypass the file to a jms queue. I have used AAE integrated configuration scenario ( file to jms )
    Regards,
    Balaji
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:45 PM
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:46 PM

    Already given link for the dynamic configuration code snippet in the earlier reply... Below is the code snippet
    Note: Use Adapter Specific Message Attributes for the target Communication Channel(CC).Check the indicator for filename in the advanced tab of CC
    //UDF code
    String filename="";
    String NameSpace = "http:/"+"/sap.com/xi/XI/System/JMS";
    try{
          DynamicConfiguration conf = (DynamicConfiguration) param.get(
            StreamTransformationConstants.DYNAMIC_CONFIGURATION);
          DynamicConfigurationKey key  =  DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File",   "FileName");
           // read filename value
           filename = conf.get(key);     
          // So far we extracted filename value .. now do your logic  something like this...
          DynamicConfigurationKey key2 = DynamicConfigurationKey.create(NameSpace,"yourjmsvalue goes here");
           conf.put(key2,filename);
         } catch(Exception e){

  • Passing parameters to IAC Transaction iView

    Hi guys,
    Anybody knows how I can carry out this task? I have a page that has some value that I would like to pass to an IAC Transaction iView via the URL.
    Thanks!

    Check this out:
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/6898dddb7afd44b07ca4e3bb15f676/frameset.htm
    All u need to do is append the screenfield values and pass it to the URL.
    Something like this:
    Eg:
    <script>
    Screen_field_Value = 'XYZ';
    dynP = "?DynamicParameter=Screen_field1" +Screen_field_Value + ";";
    </script>
    <hbj:link id="l1" text="IAC - Link1">
    <% l1.setOnClientClick("EPCM.doNavigate('ROLES://portal_content/com.sap....../myIACIvu' + dynP ,1);void(0);"); %>
    </hbj:link>
    Plz don forget points, if it helped.
    Regards,
    P.

  • FTP how to pass dynamic filename/directory location - reading a file in 11g

    Hi All,
    We r using FTP adapter(SOA 11g) for getting files in remote server, May i know how to pass dynamic filename and directory where the file exists for reading in server.
    Thanks,
    Rak

    Hey according to my understanding, the Dynamic partner links are set only for the Outbound invocations only. Is my understanding right? if so, how do we create the dynamic partnerlinks for the ftp get kind of stuff...??
    Thanks in advance

  • How to pass dynamic selection to logical databse using ldb_process function

    dear friends,
                         can anybode tell me how to pass dynamic selection to the logical database when i m using LDB_PROCESS function module.  however, in EXPRESSIONS paramter of the function module i m  passing the selecti-option, it is passing their also but when i used more than  two select-option or paramter it throw an exception FREE_SELECTIONS_ERROR.
    SO PLEASE GUIDE ME HOW TO PASS MORE THAN TWO SELECT-OPTION IN LOGICAL DATANSE DYNAMICALLY USING LDB_PROCESS.

    would be nice if you post the answer to all

  • Launching transaction iview frm webdynpro iview

    Dear experts,
    I am launching a transaction iview from a webdynpro iview. On click of button it launches the transaction:CV02N.
    The screen variables are: DRAW-DOKNR and DRAW-DOKAR.
    I am using absolute navigation.
    the code is as below:
    WDPortalNavigation.navigateAbsolute("ROLES:"path,WDPortalNavigationMode.SHOW_HEADERLESS_PORTAL,null,null,WDPortalNavigationHistoryMode.NO_HISTORY,null,null,"DRAW-DOKNR="docnos+"&DRAW-DOKAR=DRW&OkCode=/00",null,false,false);
    I can see the name value pair in the URL of the transaction iview which opens in the new window. But I just see the initial window of the transaction and I need to enter the parameters again to see the result.
    Is there any way to see the result directly?
    Thanks in advance for your help.
    Regards,
    Rahul

    Dear Piyas,
    Thanks for reply.
    If you see attribute: "DRAW-DOKNR="docnos"&DRAW-DOKAR=DRW&OkCode=/00"
    Here docnos is a string which takes value dynamically.Rest of the values are hardcoded.
    When I launch the transaction iview, I can see the values being passed in the URL.
    Regards,
    Rahul

  • Passing dynamic parameter to stored procedure from CR formula?

    Dear all,
    I need to insert in some textboxes the right string based on the desired Language Code.
    I crated a stored procedure in my db.
    CREATE PROCEDURE MY_GET_TRANSLATION
         @TextID nvarchar(8),
         @LangCode int
    This parameters are used as keys to get the Trans field.
    I created a workshop formula: GetTranslation
    Please, can someone suggest the correct statement to call my MY_GET_TRANSLATION  stored procedure passing parameters?
    I would like to call the GetTranslation formula from all my textboxes, passing the specific TextID value
    and visualized the right translated string.
    For example:
    in my TEXT1 textbox, I would like to call the GetTranslation formula passing the parameters
    TextID = "T000001"
    and
    LangCode = 13    (Italian language)
    How can pass dynamic parameters to a formula?
    How can pass dynamic parameters to a stored procedure from a CR formula?
    Regards
        Emanuele

    Dear Jason,
    I'm trying to modify a SAP B1 CR marketing report.
    This CR marketing document is called by SAP B1 automatically passing the Document Number and Document Type.
    The report uses the right SAP B1 tables to read the information of the header and rows of the document.
    The language of the document is contained in a field of the header table
    {MyMarketingDocTable.LanguageID}
    I created a user table named "MyTranslationTable" where I added some strings in different langiages.
    For example:
    TexiID            TextString              LangID
    T00001          Delivery                          8      
    T00001          Consegna                     13       (Italian translation)
    T00002          Invoice                           8
    T00002          Fattura                         13       (Italian translation)
    In the header of the report I'd like, for example, to visualise the string "Consegna" if my document is a delivery in italian language.
    I'd like to implement this method to translate all the textboxes (header, comments, etc.) based on the languageID of my document.
    For each textboxes, in the CR designer statically I know what TextID I want to visualized but dinamically I need to pass to my stored procedure the right language. I'd like my report automatically gets the language at run-time. I don't want that when I press the Print-preview button in SAP B1, the report asks to prompt the languageID.
    It already read the DocNum and DocType and it already filter the SAP B1 tables basing on the DocNum and DocType of the document. In this way it reads the right row in the SAP B1 table and in this way I can read all the fields of this row (also the languageID of the actual document).
    Regards
        Emanuele
    Edited by: Emanuele Croci on Dec 3, 2010 9:03 AM

  • Embedding Transaction IView into Webdynpro TabStrip

    Hi,
        My Requirement is ,I have Created Transaction IView ,I want to access the Transaction Iview into Webdynpro TabStrip. I am able to access Iview but it is overwriting existing screen i..e complete Webdynpro screen disappears only Transaction Iview displays. I want Transaction Iview to be displayed as part of the TabStrip.
    Thanks & Regards
    Madhan Mohan

    Hi Satyajit,
             I am having a similar kind of requirement , i have to navigate from webdynpro applicaiton to transaction iview ..once user is done with the transaction ( say maintained the material ) i have to come back to the previous screen ... but i think this is not possible as there will be no way to know that user is done with the transaction .. so i though of creating a Iframe and a button on a webdynpro view and link the Iframe to the transaction iview . so user will have to click on the button once he is done with the transaction .. but according to you .. the transaction will be locked if we link that to the Iframe .. please let me know how to resolve this pronblem. or is there any other solution to my problem ..

  • How to pass column name as a   values from one page  to another

    hi
    i have created a report(pivot) from a table
    SQL> SELECT * FROM T;
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    A   AB           3                    2
    A   AC           2                    3
    B   AB           5                    4
    B   AC           6                    5
    SQL> SELECT C1
      2  ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
      3  ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
      4  ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
      5  ,SUM(C3) FROM T GROUP BY C1;
    C1          AA         AB         AC    SUM(C3)
    A            2          3          2          7
    B                       5          6         11
    SQL>
    my requirement in Apex is like this(reverse)
    eg-
    when i click on cell values '2' then,it should return
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    {quote}how to pass column name as a  values from one page to another
    for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
    Report
    Amu

    thanks for your reply
    i 'm doing what exactly you mention here .
    my problem here is
    i have 15 columns
    i am executing a query based on the values of the column(column name)  in the target page
    1)here i am passing(all) the column values to the next page-but  i want to pass only one column values(column name)
    when i click on any cell of that  column
    OR
    2)i can pass all column name to target page -there(in the target page) i can filter out
    i think option 1 would good if you filter out the unwanted columns
    Regards
    Amul

Maybe you are looking for

  • Can't send Form content as PDF

    Hello there! I'm just starting with LiveCycle Designer (and LC as a whole) and am feeling really lost with the lack of information for absolute beginners. Right now I'm trying to build a form to be distributed among clients and then sent back with fi

  • Extracting Logical SQL of the adhoc reports

    Hi, I have an requirement, where I need to extract the logical SQL, of the adhoc reports. I tried using "Usage tracking", but that doesnt fit my requirement, as I need to write back the result set of the SQL queries in the database. I need to kind of

  • Download link Oracle SOA Composite Editor doesn't work

    The following link http://download.oracle.com/otn/java/jdeveloper/11.1.1.3.0/extensions/soa-jdev-extension.zip returns 404 page not found. The update center in Jdeveloper lists the Oracle SOA Composite Editor 11.1.1.3.0.25.27. The download however fa

  • How I can use Visual Studio 2013 to create lists or libraries via remote?

    Hello guys, I use visual studio on my machine and try to create a list, but the sharepoint server is on another machine. It is possible to run a program on my computer and then create a list on the sharepoint server. If yes, how can I achieve this? B

  • [cisco VPN] Can't build kernel module with 2.6.9-ARCH

    I need to setup a vpn tunnel to my university in order to gain acces to their resources and be able to surf when I am on the campus. With 2.6.8.1 I used the Cisco VPN client 4.0.5 k9. After my upgrade to 2.6.9 I had to rebuild the module, but now it