Passing parameters to Transactions from Web dynpro Application through ITS

Hi,
i need to call a transaction from Web dynpro through ITS. On action from web dynpro application, i am concatenating the respective parameters mentioned below along with URL. The problem is one parameter(VARIANT) is being passed to the t-code CAT3 correctly. The next mandatory parameter(PERNR) is not passed to the respective field.Here is the URL Code:
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'CAT3'
'%20TCATST-VARIANT=' lv_name2 '&CATSFIELDS-PERNR=' lv_name1 INTO url.
Called T-Code CAT3
Passing Parameters are:
Data Profile TCATST-VARIANT
Pernr: CATSFIELDS-PERNR

Pradeep,
iam trying to pass values from webdynpro application to SAP GUI Transaction
here is the sample code which iam using
CONCATENATE  'http://s0164dep01.adta.uae:50000/irj/portal/interop?NavigationTarget=pcd:portal_content/Testing/trn_iw33?'
'%20CAUFVD-AUFNR='
             'ApplicationParameter=CAUFVD-AUFNR='
              lv_workorder';'
          'DYNP_OKCODE=SHOW'
         INTO lv_url.
i could'nt able to succed as its displaying page not found exception.
Help me on this to proceed further
Regards
Jaipal.E

Similar Messages

  • Handle transaction in web dynpro applications

    Hello,
    can you please tell me How to handle transaction in web dynpro applications which is using Adaptive RFC model ?
    Thanks,
    Teja

    Hi,
    please see this [thread|Link to SAP Transaction using WebDynpro for Java;
    regards,

  • Starting existing workflow from web dynpro application (ABAP)

    Hi experts,
        I am working on web dynpro application from which when I click on a button an existing workflow should trigger. This will be used in portal replacing existing iview with jsp. I did lot of reading on SDN maybe too much that I am confused how to get started. Here is what I have currently.
    We have an existing workflow that sends an approval email to manager when ever some unit information changes. In current functionality, workflow is triggered by event which is linked to workflow in transaction "swetypv". We defined scenario in "qisrscenario" that contains all elements to populate workflow container. The methods to get data into workflow container, send email etc are all written in business object methods. We have a class that implements standard SAP BADI "IF_EX_QISR1"(IF_EX_QISR1~SCENARIO_PROCESS_USER_COMMAND method) that probably has all logic. In current functionality when the workflow gets created it sends notification number back to portal jsp page that triggered the workflow on button click. Users look at notification number in iqs23 for workflow log, PCR form data etc. and I need that functionality too. Now I am confused where I should start so that I can use ew web dynpro applciation instead of jsp iview but want all the functionality that we currently have. How can I start workflow and get notification number back to web dynpro so that I can display that to user? The approving manager goes to UWL to approve, reject the workitem and workflow then finishes.
    Any help will be greatly appreciated.
    Thanks.
    Mithun

    Hi.,
    Using FM  SAP_WAPI_CREATE_EVENT  You can Achieve this., try the below piece of code.,
    DATA: OBJECT_TYPE  TYPE  SWR_STRUCT-OBJECT_TYP VALUE 'ZBUS333',   " Enter Your Business Object here
    OBJECT_KEY  TYPE  SWR_STRUCT-OBJECT_KEY,
    EVENT TYPE  SWR_STRUCT-EVENT VALUE 'FIRE'.     " Enter Your Event here
       DATA: lt_cont TYPE STANDARD TABLE OF swr_cont,
             ls_cont TYPE swr_cont.
           ls_cont-element = 'NAME'.       " To Pass Values to business Object you append to container
           ls_cont-value   = lv_name.
           APPEND ls_cont to lt_cont.
           ls_cont-element = 'ID'.
           ls_cont-value   = lv_id.
           APPEND ls_cont to lt_cont.
          CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
            EXPORTING
              OBJECT_TYPE             = OBJECT_TYPE
              OBJECT_KEY              = OBJECT_KEY
              EVENT                        = EVENT
             COMMIT_WORK             = 'X'
             EVENT_LANGUAGE          = SY-LANGU
             LANGUAGE                = SY-LANGU
             USER                    = SY-UNAME
    *         IFS_XML_CONTAINER       =
    *       IMPORTING
    *         RETURN_CODE             =
    *         EVENT_ID                =
           TABLES
             INPUT_CONTAINER         = lt_cont
    *         MESSAGE_LINES           =
    *         MESSAGE_STRUCT          =
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • How to change the Portal Password using a link from Web dynpro application

    Hello Everybody,
    I have a requirement to change the user password from a web dynpro application which is available on a mobile device. Firstly User will log into the portal through a mobile device and after getting authenticated user will be redirected to the mobile application. Within this mobile application there will be a link to change the login password(Portal login). Can somebody tell me how can i change the portal login password from a link available within the mobile application. Looking forward for a suitable reply.
    Thanks to all,
    Regards,
    Saby.

    Hi Maksim,
    Thanks for your reply..but i would also like to know can we directly use the Change Password Iview "persoUserPassword" from the portal. Can i directly Pass the URL of this iview from the portal to a "Change Password" link in the web dynpro application, so that when the user click this link he should be able to see this Iview on his/her mobile device and should be able to change the password from there. But i dont know whether this iview will appear properly on the mobile device or we have to have a custom web dynpro application for this purpose...Please reply with a suitable answer.
    Thanks in advance.
    Regards,
    Sarabjeet Singh.

  • Trigger File Generation to a Server from Web Dynpro Application

    Hi Everybody! Hope you had a good new years eve
    Is it possible to generate a File on a Server outgoing from Web Dynpro?
    I tried to use GUI_DOWNLOAD. But as I couldn't use the GUI_DOWNLOAD from the Web Dynpro, I wrote a Report "ZCMI_EXPORT_FILE" that generates a Text-File. When I start the Report by myself, the file gets generated. All fine.
    To be able to generate the File from Web Dynpro, I created a Batch Input Function Module, that I call in the Web Dynpro. The File is not created and it does not show any errors.
    Do you have any idea how i can get this working? I'd also be happy with a different approach.
    Best Regards and Thanks,
    Steffen
    REPORT that is called with Batch Input from Web Dynpro:
    call function 'ZFM_GENERATE_EXPORT'
      exporting
        it_detail_record     = lt_records
        is_export            = gs_export
      importing
        ev_string            = gs_export-document
        et_dataset           = data_tab
      exceptions
        parameter_is_initial = 1
        others               = 2.
    if sy-subrc <> 0.
    endif.
    concatenate '\\SERVER\EXPORT\' gs_export-filename into lv_filename.
    call function 'GUI_DOWNLOAD'
      exporting
        filename                = lv_filename
      tables
        data_tab                = data_tab
      exceptions
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        others                  = 5.
    if sy-subrc <> 0.
      exit.
    endif.

    HI,
    GUI_DOWNLOAD does not get's executed in the Backgroud.
    there is no way to do it as a background job.. create the folder.. transfer the file to the application server in the backgorund using OPEN DATASET... use the tcode CG3Y to download the file from the app server to your folder..

  • Show ObjectSelector from web dynpro application

    Hello, I´ve read in this  how to configure a ObjectSelector UI pattern in a web dynpro application but even looking at the code I havent found out how to show it in actions event handler code.
    In the caf tutorial center there is an example that implements the call for the ObjectBrowser, but the interface for ObjectSelector doesnt have the showView() method used for ObjectBrowser and even searching in the foruns I couldnt find a way to show the component.
    Does anyone know how to do that ?
    Thanks in advance,

    Hallow Experts,
    Please give me some clue; I hope you will give me some clue.
    Ok.
    Thanks' and Regards
    Tarapada Dan

  • Navigate from Web Dynpro application to an iView URL using parameters

    Hi all,
    I have a problem navigating from a Wed Dynpro application to an iView URL. For the navigation, I use the WDPortalNavigation.navigateAbsolute() method. The navigation works fine, unfortunately any parameter that I pass to the iView URL is ignored.
    Here is the code I use:
    WDPortalNavigation.navigateAbsolute(
    "ROLES://portal_content/rack_visualization/RackView",
    WDPortalNavigationMode.SHOW_INPLACE,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    "space=1&style=3&rack=none");
    The RackView iView is based on the "iView URL" template. I expect that the navigation points to a URL like my_encapsulated_url?space=1&style=3&rack=none. Unfortunately the parameter passing doesn't seem to work.
    Any help would be greatly appreciated!
    Thanks,
    Christophe

    did u get this working ???
    I have a similar issue with the url iview.
    thanks
    venkat

  • How to store text field data from web dynpro application in pcd ?

    Hi Forum,
    I am new to web Dynpro.
    I want to store user specific data (a text field value) from a wd application in PCD and access it every time the user runs the application.How can I achieve this?
    Thanks,
    Mickey.

    Hi
    I created the "read" and "update" methods in my application service. How can I call them? I created and implemented the methods just like here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/340fc0ea-0c01-0010-74bf-965b11031e77
    Operations:
    - readMyEntityService:
    - updateMyEntityService
    Implementation:
    retValue = getMyEntityService().read(key);
    getMyEntityService().update(dS0);
    In Web Dynpro there is this update method with the code above (in my original post).
    How can I call the update-method????????
    Kind regards
    Bettina

  • Pass a parameter in a Web Dynpro Application

    Hi,
    I have a Web Dynpro that Calls a RFC. This RFC needs a parameter (user ID from portal) in order to obtain Info. from the R/3 System.
    I do it with based on the article which calls a bapi "BAPI_FLIGHTLIST".
    The application runs OK when I type the parameter (user ID) in an "input field", it only return the information needed (method button) from R3. Now, if I want to get the parameter (user ID) automatically from the Web Dynpro ( the user who Logon into the portal) the application does not work.
    I try with this code but isn't work.
    wdContext.currentZrfc_Prueba_Portal_InputElement().setZusuario(userid);
    How can I set the parameter (Zusuario) in my input field automatically and after I press the button (method) return my info.???
    Here is the code.
    The method wdDOInit
    Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
    wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
    The method that Execute a RFC
    //@@ Begin Take USer
           String userid="";
              try {
                   IWDClientUser user = WDClientUser.getCurrentUser();
                   userid = user.getSAPUser().getUniqueName();
              } catch (WDUMException e) {
                   e.printStackTrace();
    //@@ End Take USer
    //@@ Begin Set the login user to Zusuario parameter
              wdContext.currentZrfc_Prueba_Portal_InputElement().setZusuario(userid);
    //@@ End Set the login user to Zusuario parameter
              //@@ Begin Method that execute the RFC
              try {
                            wdContext.currentZrfc_Prueba_Portal_InputElement().modelObject().execute();
                   wdContext.nodeOutput().invalidate();
                   wdComponentAPI.getMessageManager().reportSuccess(
                             "Execute whit the user: "
                                       + wdContext
                                                 .currentZrfc_Prueba_Portal_InputElement()
                                                 .getZusuario().toString());
              } catch (Exception e) {
                   e.printStackTrace();
                   wdComponentAPI.getMessageManager().reportException("Caution " + e);
              //@@ End Method that execute the RFC
    Any help will be rewarded.
    Regards
    Dario

    Hi Bala Duvvuri,
    I taste your code but isn't work.
    This the method wdDoInit
    public void wdDoInit()
        //@@begin wdDoInit()
           Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
           wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
        //@@end
    This the method ExecuteRFC
    public void ExecuteRFC( )  {
        //@@begin ExecuteRFC()
             Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
           wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
           //@@ Begin Take USer
           String userid="";
           try {
                   IWDClientUser user = WDClientUser.getCurrentUser();
                   userid = user.getSAPUser().getUniqueName();
              } catch (WDUMException e) {
                   e.printStackTrace();
               //@@ End Take USer
              //@@ Begin Set the login user to Zusuario parameter
              input.setZusuario(userid);          
              //@@ End Set the login user to Zusuario parameter
              //@@ Begin Method that execute the RFC
              try {
                   wdContext.currentZrfc_Prueba_Portal_InputElement().modelObject().execute();
                   wdContext.nodeOutput().invalidate();
                   wdComponentAPI.getMessageManager().reportSuccess(
                      "Execute whit the user: "
                        + wdContext
                                .currentZrfc_Prueba_Portal_InputElement()
                             .getZusuario().toString());
              } catch (Throwable e) {
                   e.printStackTrace();
                   wdComponentAPI.getMessageManager().reportException("Caution " + e);
              //@@ End Method that execute the RFC
        //@@end
    Regards

  • Calling a new Browser Window from Web Dynpro Application - Empty Context

    Hello,
    I want to open a view in a new browser window, and followed the same way which is described in this thread:
    Open view in new browser window
    My first try was creating two applications, which refer to the same Component Controller. The opening of a new browser window is triggered by an action, which is called in the other application. As both applications have the same Component Controller, I thought, the context content has to be the same, but actually the context attributes are empty after opening of the new window.
    In my second try I created two applications with two different Component Controllers, mapped via embedded Interface Controller. The effect is the same - I have no context content in the view.
    Please, can anybody help me?
    Thank you in advance.
    Ilona Seifert

    I done something like this:
    [code]
    try {
    strURL =
         WDURLGenerator.getApplicationURL(
                        "$<b>PROJECT_PATH</b>$/$<b>PROJECT_NAME</b>$",
                                            "$<b>APPLIC_NAME</b>$");
    } catch (WDURLException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
    strURL += "?par1=";
    strURL +=  var1;
    strURL += "&par2=";
    strURL +=  var2;
    strURL += "&par3=";
    strURL +=  var3;
    [/code]
    and after i retrieve them:
    [code]
    Var1Value= WDWebContextAdapter.getWebContextAdapter().getRequestParameter("var1");
    [/code]

  • Download to excel from web report generated through ITS

    We were on SAP 4.6B. We have several abap reports for which we have a web interface using ITS. On the broweser output we have provided a URL which reads 'Download to CSV file' . This has been achieved by modifying the function www_get_report. The mod first generates a unique filename and exports the name to the memory and generates the hyperlink. The abap report program ftp'ies a the csv file to the ITS server path as in the URL.
    Now we have upgraded to ECC 5.0 and we want to achieve the download to CSV option without the modification. What would be the best way to achieve this in the netweaver platform.

    Sofia,
    The same report query runs for downloading the data into excel, I don't think you can limit the number of records in download.
    You can achieve it using custom code, like on click of download excel redirect to another page and then restrict the data as per your need, or you can use the custom procedure to download the limited data.
    Denes' utility to download into excel.
    http://htmldb.oracle.com/pls/otn/f?p=31517:108:1476564836494581:::RP,::
    Regards,
    Manish

  • Examples of 'calling a web dynpro application with parameters'

    Hi!!
    I'm I have been watching manual 'Web dynpro for abap: advanced concepts' in the sections 'url parameters' and 'calling a web dynpro application with parameters'.
    Is there some example where these terms are seen.
    Thanks in advance.

    Hi Ana,
    a window inbound plug can have parameters.
    These parameters are automatically fished out of the URL by the framework.
    So your inbound plug handler method has easy access to the parameters.
    URL
    http://<host>:port/sap/bc/webdynpro/sap/<your application>?param1=xyz&param2=abc
    The application is configured to call an inbound interface(window) and plug.
    The plug can be declared with parameters.
    Double click on window inbound plug and add your parameters.
    The parameters are made available by framework if present in Launch URL.
    You can also call an application that has parameters  directly entered on the parameters tab.
    ie Parameters can be part of the application launch.
    regards
    Phil

  • Navigate from Web Dynpro app to portal page

    Dear All,
    I've created a number of Web Dynpro applications which I run from various portal pages. From one of the Web Dynpro's I navigate to a different portal page using the WDPortalNavigation.navigateAbsolute method. This works fine, but I'm left with one problem:
    I'd like to pass parameters from the Web Dynpro which navigates to the portal page to the Web Dynpro applications which run on that specific page. I've appended the parameters to the URL I'm navigating to (eg ROLES://<pcd location>?<param=xxx>) and in the Web Dynpro's I've added a parameter to the Default interface plug. This doesn't seem to work. As an alternative I've added the statement WDWebContextAdapter.getWebContextAdapter().getRequestParameter("param") to the doInit() method of the view, but this also doesn't work.
    Either I'm doing something wrong, or what I want to accomplish is not possible. Does anybody know of a way to access parameters passed to a portal page from Web Dynpro applications contained on that page?
    Thanks,
    Arnoud

    I hope you are passing parameters between two WebDynpro applications.
    Please go through the example available for passing interaction between two webdynpro components.
    Please check the following link
    Alternative method for navigating to another page ?
    or the following link
    Re: Can we pass parameters in querystring of the webdynpro application?

  • How to get the Response Code when a URL is launched from Web Dynpro

    Hello Experts,
    I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
    But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
    I am using the following code to get the Response Code:
    try{
    URL url = new URL("Some Url");
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.connect();
    wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
    }catch(Exception e){
    wdComponentAPI.getMessageManager().reportSuccess("Exception");
    Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
    i always get Response Code=  500 (which is for Internal Server Error) shown in the messgae i have printed.
    Please let me know the correct way of getting the Response Code from Web Dynpro.
    Also my resource is lying on a SAP Portal 6.4
    Best Regards
    Sundeep
    Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
    Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AM

    Hi,
      Check this code from /thread/5242768 [original link is broken] if it works.
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    // print exception
    Regards,
    Harini S

  • Debugging a Web Dynpro Application (e-recruitment)

    Hi Experts,
    I have an error in SLG1 coming from web dynpro application ERC_A_DEL_EXT_CAND
    I am not sure how to debug this issue.  Where do I put the breakpoint to get the debugger to launch?
    Thanks in advance.
    Shane

    Hi,
    Here is the error:
    The error occurred in program CL_HRRCF_SEARCH_MASK_GROUP====CM003 line 19
    Customizing table T77RCF_SMG_ASM contains no corresponding entry for GROUP_ID=0021
    The error occurred in program CL_HRRCF_SM_CUST_TABS=========CM006 line 20
    The issue is, I have no entries in table T77RCF_SMG_ASM for GROUP_ID=21
    Any thoughts?
    Shane

Maybe you are looking for

  • How to remove profile in itune wifi sync?

    Hi. is there anybody knows how to remove computer in itunes wifi sync? thanks!

  • Upgrade video card and power supply or upgrade my pc?

    I have a : HP Series Pavilion Model M8530F(KT334AA) Type Media Center / HTPC Processor AMD Phenom X4 9550(2.2GHz) Processor Main Features 64 bit Quad-Core Processor Cache Per Processor 4 x 512KB L2 Cache Memory 5GB DDR2 800 Hard Drive 750GB 7200RPM S

  • Read-only report for two records

    I have a table that has two records per one parent record. I want to display these two records on a page containing read-only fields (items) of the parent record. I was thinking of just having two regions each of which would perform a SELECT to pull

  • Applying patch to primary

    We are missing this patch number 6067611 in our primary for logical standby. This comes in a bundle of patch 6909784 . i guess i have to roll back and install the whole patchset again. are there any implications on the replication if I do it this way

  • Best datafile management practices for iMovie

    I work across two different machines (my desktop and my laptop) on iMovie Projects.  My desktop has nearly all of my video stored on a 6TB external drive, but when I travel and want to bring along a project with me on a  portable 2 TB drive.  And the