Transaction code to WebDynpro application

Hi,
i want to create a webdynpro application which is started from a transaction. Has anybody an idea how the application can get information about the transaction code?
Example:
Transaction mm02 -> call webdynpro application, want to know which transaction "called" the application
Thanks in advance
Dominik

i have no answer for this , but do let me know , if u found solution for this....
Thanks
Ramesh

Similar Messages

  • Reg calling Transaction code in Webdynpro ABAP

    Hi All,
    Can I call Transaction code in Webdynpro ABAP Portal Application. If so, how can this be possible? Can anybody give me a lead?
    Thanks.
    Kumar Saurav.

    Hi,
    The most easy Way is here:
    1) Test any Webdynpro Application from SE80 when the webdynpro Browser opens to display output
    Copy its HTTP link, Suppose we get the below link
    http://r3d01web1.Siemens.dk:8001/sap/bc/webdynpro/sap/z_dynamic_view?sap-client=002&sap-language=EN
    2) Now replace some part of the above link ( webdynpro/sap/z_dynamic_view?sap-client=002&sap-language=EN )  with the new link part ( gui/sap/its/webgui?~transaction=PA30 )
    So that the newly generated link is such that the below one:
    http://r3d01web1.Siemens.dk:8001/sap/bc/gui/sap/its/webgui?~transaction=PA30
    Note in place of PA30 you can put any of your desired tcode.
    3) Now Just Make a webdynpro component and in its View layout put a LINK TO URL ui element
    and in its property REFERENCE just past the http link ( http://r3d01web1.Siemens.dk:8001/sap/bc/gui/sap/its/webgui?~transaction=PA30 )
    4) Activate and test your webdynpro Application.

  • Interaction between SAP Transaction Iview to webdynpro application

    Hi All,
    I have a requirement where in,
    I have one SAP Transaction Iview and one Webdynpro (Java) Iview,
    Now what I have to do is,
    I need to call Webdynpro app ( or iview) as a pop up from Transation Iview (e.g. click on some button on SAP screen),
    webdynpro screen will be opened,
    do some processing there (calling some web service, getting some data from an external system) and then posting response data back to some screen field in Transaction Iview.
    It is like on a standard SAP transaction, I want to open my custom webdynpro screen to do some data operation and fill response data back to SAP screen once that is done.
    any ideas would be heavily appreciated and rewarded!!!!!
    Regards
    Deepak

    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????

  • Acessing a SAP Transaction Code through WebDynpro Link

    Hi Developers,
                 I need to call a SAP Transaction from a link and how would I go about it.I Have created a WebDynpro Link to Action in Layout of WebDyn and now I need to write the code for acessing a transaction.
            It is similar to a SAP Transactional Iview but it will be a link.Can anyone help me in this issue.
    Regards,
    Raja Akella.

    Well, you can create SAP transaction iView for t.code 'SE38'.
    You can configure value
    for 'application parameter' property  as 'RS38M-PROGRAMM=<PROG_NAME>'
    for 'Parameters to Pass from Page Request' as 'PROG_NAME'
    Add this iView to the page, get url of the page.
    In webdynpro application, append '?PROG_NAME=<program name>' to this url dynamically when you click on the tree node (where you replace <program name> with actual program name>) ..
    Does that solves your problem?

  • How to use call transaction stmt from webdynpro application

    Hi Expers,
    Can I use call transaction 'tcode' in my webdynpro application, I have tried in my application but i am getting short dump saying
    Error analysis+
    An exception occurred that is explained in detail below.The exception, which is assigned to class'CX_SY_SEND_DYNPRO_NO_RECEIVER',  was not caught and therefore caused a runtime error. The reason for the exception is: During background processing, the system  attempted to send a screen to a user. Current screen: "SAPLMGMM " 0060.
    I haven't used any more statements in my application am sure from my application side everything perfect. but I have seen a screen shot
    with SAP screen in webbrowser.
    Please help me out if you are not clear abt my doubt please ask me for clear idea.
    Thanks in advance
    Phalani M

    Hello,
    Since you can't use the call transaction command in web dynpros components, I suggest you to create a report and fill a BDC table on this and use the call transaction in this report.
    So, in your web dynpro component you can use a command SUBMIT to create a job in background.
    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards.

  • Write HTML code in webdynpro

    Hi All,
      Can anyone tell me how two to write HTML code in
      webdynpro application
    to make myself clearer. this is what i want.
    IWDTextView txt = (IWDTextView) view.createElement(IWDTextView.class, "txt" );
    txt.setText("<hr>" + "Today Order");
    But the above code is displaying literal string <hr> by the mean of &lt;HR&gt;
    regards
    Arun

    Hi Nibu,
      What I actually want to do is that- I have designed
    a view having order details one below other on same screen.
      What I want is to print the order detail page wise.
    i.e Ist Orderdetail on first page , 2nd Order detail on 2nd page and so on.....that is I want a page break.
    I got a code to provide a page break which is in javascript -
    <script>
    //<!--
    document.write("hi");
    document.write("<p style=\"color: blue; page-break-before: always\" >");
    document.write("hiafter");
    //-->
    </script>
    How 2 use this code in my webdynpro application.....or
    is there any other mean to do so.
    regards
    Arun

  • Webdynpro Application hangs on executing query

    I am  having strange issue with Webdynpro application running JDBC code. Webdynpro application hangs intermittently when it tries to run the below jdbc code .
    This code is written on custom controller. We are using the SAPSR3DB datasource.  Do anybody  have any idea why this is happening . Thanks in advance
    wdThis.wdGetAPI().getComponent().getMessageManager();
                                    try {
                                                    Connection conn;
                                                    InitialContext ctx = new InitialContext();
                                                    DataSource dataSource = (DataSource) ctx.lookup(readPropertyFile());
                                                    conn = dataSource.getConnection();
                                                    PreparedStatement stmt =
                                    conn.prepareStatement(
                                                                                    "insert into ZAE_PROD_GRtable(AUFNR,EXIDV_P,EXIDV_C,MATNR,WERKS,CHARG,VEMNG,VEMEH,CWMVEMNG,CWMVEMEH,STATUS,INDC) values(?,?,?,?,?,?,?,?,?,?,?,?)");
                                                    stmt.setString(1, wdContext.currentContextElement().getAUFNR());
                                                    stmt.setString(2, wdContext.currentHUDataElement().getEXIDVP());
                                                    stmt.setString(3, wdContext.currentHUDataElement().getEXIDVC());
                                                    stmt.setString(4, wdContext.currentOrderDataElement().getMATNR());
                                                    stmt.setString(5, wdContext.currentOrderDataElement().getWERKS());
                                                    stmt.setString(6, wdContext.currentOrderDataElement().getBATCH());
                                                    stmt.setString(7, wdContext.currentHUDataElement().getVEMNGP());
                                                    stmt.setString(8, wdContext.currentHUDataElement().getVEMEHP());
                                                    stmt.setString(9, wdContext.currentHUDataElement().getVEMNGC());
                                                    stmt.setString(10, wdContext.currentHUDataElement().getVEMEHC());
                                                    stmt.setString(11, "1");
                                                    stmt.setString(12, wdContext.currentContextElement().getHuIndicator));
                                                    stmt.executeUpdate();
                                                    stmt.close();
                                                    conn.close();
                                    } catch (SQLException ex) {
                                                    msgMgr.reportException(ex.getLocalizedMessage() +";SQL State - " + ex.getSQLState(), true);
                                    } catch (Exception ex) {
                                                    msgMgr.reportException(ex.getLocalizedMessage(), true);
    finally {
                   try {
                        conn.close();
                   } catch (Exception e) {
                        msgMgr.reportException(e.getLocalizedMessage(),true);

    Hello,
    There can be any issue, i dont see any compile time issue with your code, but you may wana do a simplistic query first.
    First of all, the statement and conection close, do it in the finally block, untill unless you are reusing it.
    other than this.
    First, after connection, see if you are getting the connection or not.
    conn = dataSource.getConnection();
    //print the connection and check if the connection is fine.
    comment remaining stuff in the loop.
    In the second shot, run a simple query like select count(*) from TABLE ;
    to see if the connection and execution is fine. this will make sure
    Also, before you set the values into the statement using setString, print the values to check for correctness and not null.
    btw, i found an extra ")" in your setString(12,.....) ;
    stmt.setString(12, wdContext.currentContextElement().getHuIndicator));
    What are you trying to close in your finally block when you have already closed the connection in the try.
    try{
              stmt.close();
              conn.close();
         } catch (SQLException ex) {
              msgMgr.reportException(
                   ex.getLocalizedMessage() + ";SQL State - " + ex.getSQLState(),
                   true);
         } catch (Exception ex) {
              msgMgr.reportException(ex.getLocalizedMessage(), true);
         finally {
              try {
                   conn.close();
              } catch (Exception e) {
                   msgMgr.reportException(e.getLocalizedMessage(), true);
    Remove it from try.
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jun 16, 2009 6:20 PM
    Edited by: Nitin Mahajan on Jun 16, 2009 6:21 PM
    Edited by: Nitin Mahajan on Jun 16, 2009 6:22 PM

  • Call a ABAP webdynpro application from a standard transaction.

    Hi Gurus,
    Can we trigger a webdynpro application on a click of button from a standard transaction as IW31 and pass some of the parameters?
    If so, how do we do that?
    Please let me know.
    Thanks,
    Das

    Hi,
    You can trigger the webdynpro application on click of a button.
    construct the URL dynamically or you can use the URL of the application present in WebDynpro application(if you are sure that if this application run only in this system).
    We can display the application either in standard screen using HTML control or we can also open the browser on click of a button on standard screen using the code:
    call method cl_gui_frontend_services=>execute
    exporting
    application = 'www.google.com'
    exceptions
    others = 1.
    For passing the parameters to the application:
    1. Create the parameters in the default interface plug of the application.
    2. Associate the parameters to the WebDynpro application
    3. Pass the parameters to the application by appending to the URL like (&para1=abc&para2=def).
    Best regards,
    Suresh
    P.S. we can define the parameters in the Webdynpro component by defining the importing parameters in the default interface view's inbound plug's method. If we define the importing parameters in the inbound plug (for example DEFAULT plug of the window) then they are visible in the parameters tab in the WD application.
    We can receive the parameters in the inbound plug method (HANDLE<plugname>) of the window (interface view associate in application).
    Message was edited by:
            Suresh Honnappanavar

  • How to call transaction from webdynpro application

    Hi Experts,
    I have a web dynpro component zxx_comp.its corresponding web dynpro application zxx_app.
    my requirement is , when i test the webdynpro application, i have to call a transaction zxx_txn corresponds to the module pool program zxx_pgm  directly . How can i do that?
    Regards
    Ashwin KV

    Hi Ashwin,
    Use the following to open a T-Code from WD application.
    CALL METHOD cl_http_server=>if_http_server~get_location
    IMPORTING
      host = lv_host
      port = lv_port
      out_protocol = lv_protocol.
    DATA lv_url type string.
    concatenate lv_protocol  '://' lv_host  ':' lv_port  '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='zxx_txn' into lv_url.
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window_manager->create_external_window(
         EXPORTING
           url    = lv_url
         RECEIVING
           window = lo_window ).
    Regards,
    Harsha

  • Requirement: Open Transaction code in SAP GUI from WD ABAP application

    Hello All,
    I have a WD ABAP application which is accessed from SAP GUI and Portal. In SAP GUI, there is report which calls the application URL.
    In the WD application, I need to call a transaction code. At this juncture, I made use of the ITS url. But,, the SSO does not work in SAP GUI.It works only in portal.
    As a solution,we identified the entry point i.e. SAP GUI or portal. Then, based on entry from SAP GUI, we tried to call the transaction code using call transaction statement. But, that replaced the wd application. We instead wanted it as a popup or atleast another session.
    Now, how do we open a transaction from WD screen in another session?
    Also, can we setany configurations in the system to make sure the SSO works for all the transactions i.e. ITS used in SAP GUI.?
    Thank you.
    Regards,
    Sharath

    Hi,
    This question gets asked many times.
    Depending on the circumstances, this can be achieved with varying degree of success
    So here is some code that might help you.
    This can (does) load a Windows GUI.
    Some things to consider.
    1. Browser settings can get in the way a bit, asking the user if they want to open a ".sap" file
    2. The user may have a SAP session open so consider adding a "/o" to the system code.
    3. The Custom variable might want to contain a [Options] section for "Re-use"
    4. The SAPLogon_ID may be required if using SSO (SNC)
    I have modified the code below, but you will get the idea.
    JS
    * Create the shortcut contents
      call function 'SWN_CREATE_SHORTCUT'
        exporting
          i_system_command        = lv_com
          i_saplogon_id           = lv_logon_id
          i_sysid                 = sy-sysid
          i_client                = sy-mandt
          i_user                  = sy-uname
          i_custom                = lv_custom
        importing
          shortcut_string         = lv_string
        exceptions
          inconsistent_parameters = 1
          others                  = 2.
    * Convert to xstring to execute....
      call method cl_http_utility=>if_http_utility~encode_utf8
        exporting
          unencoded = lv_string
        receiving
          encoded   = lv_xstring
        exceptions
          others    = 1.
    * Now call to open the shortcut.
      lv_file_name =  'mytrans.sap'.
      lv_mime = 'application/x-sapshortcut'.
      call method cl_wd_runtime_services=>attach_file_to_response
        exporting
          i_filename      = lv_file_name
          i_content       = lv_xstring
          i_mime_type     = lv_mime
          i_in_new_window = abap_true.

  • Debugging ABAP Code From Within Webdynpro Application

    Hello Experts,
    We use ABAP RFC Function in Our Java Webdynpro application, We need to debug the parameters pass from the webdynpro application to the ABAP Function.
    In order to do that we:
    1. Defined a JCO connection with "Single Server Connection" as the Destination Type.
    2. We have loged on to the relevant system and client using SAP GUI with the same user that run the webdynpro application.
    3. We have activate the external debugging in se80 Utilities -> Settings
    4. We have set an HTTP (external) breakpoint in the ABAP code,
    As mentioned in the article:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e9a9d90-0201-0010-478e-991dbea73a30
    However, we recieve a dump in the R3 system:
    RFC_DEBUGGING_NO_DIALOG_USER
    ShrtText
    RFC debugging is only possible with dialog user
    What happened?
    You attempted to debug a program by RFC. However, in this destination
    there is a user whose user type permits communication without dialog.
    This means, for example, that debugging with a system user is not
    possible.
    What can you do?
    Restart the program and take note of the following:
    You can do one of the following:
    1. You can change the user listed in the RFC destination and enter a
    dialog user.
    2. In the target system of RFC you can change the user type of the user
    listed in the RFC destination to 'dialog'.
    3. You can avoid this runtime error by omitting the RFC debugging.
    If in the ABAP debugger the statement cursor points to the statement
    (CALL FUNCTION ... DESTINATION), you must choose the function
    'Execute'.
    We checked and the user we use is defined as dialog in SU01 and the user that the webdynpro use to call the functio is the same user as was logged in.
    What else should we do?
    Thanks,
    Eyal

    Hello Eyal,
    You mentioned the following..
    1. Defined a JCO connection with "Single Server Connection" as the Destination Type. 2. We have loged on to the relevant system and client using SAP GUI with the same user that run the webdynpro application.*<---The system that you logged into is your source system*
    3. We have activate the external debugging in se80 Utilities -> Settings
    4. We have set an HTTP (external) breakpoint in the ABAP code,
    and the name of the system defined in the RFC connection will be your target system.
    As per the response (dump error message) in this target system you need to have a dialog user.
    And this dialog user needs to be defined in the RFC destination that is being used to connect to the target system.
    Regards,
    Siddhesh

  • Transaction Code for seeing the files in the  Application Server

    Hello All,
      Can anybody please give me the transaction code for seeing the files in the Application Server
    Thanks in Advance,
    Regards,
    LIJO.

    hi
    good
    try with tcode AL11.
    thanks
    mrutyun^

  • Transaction code used to upload the data in the application server SCM syst

    Hi
    Could you please anyone tell me the transaction code which has been used to upload the data into the application server in SCM ( APO) system from presentation server. 
    For ex : R/3 system CG3Y , CG3Z has been used to upload the data into application server similarly way could you please tell me the transaction code is used in the APO system for uploading the data into application server.
    Thanks advance for your support.
    Regards,
    Kiran

    try tcode SXDA_TOOLS - copy
    (1st you must fill all obligatory fields)
    A.

  • Lost the webdynpro application source code

    Hi Experts,
    We have some webdynpro applications. Presently running in Portal server.  One of the application is giving the error. we need to fix that issue. Since we don't have any NWDI system, One of  the application source code got corrupted, Kindly let me know is there any we can retrieve the  source from the deployed application or .ear file from Portal.
    Regards
    Vijay

    Hi Guru,
    I think it is not possible to get the whole project structure.
    But you can get the java files of your local DC project by logging into your portal using the url http://host_name:5000/nwa.
    Navigate to Analysis ->Configuration ->J2EE Configuration Browser . Click on Local System Node ->apps->sap.com. Under sap.com(or the domain you have defined namespace) you can find a u2018src.zipu2019 file. In this u2018srcu2019 folder you can find the java files.
    If the error has occurred in your project while modifying particular webdynpro file, then you can get the previous version of the file(file before the error occurred) by navigating to C:\Documents\SAP\workspace\.metadata\.plugins\org.eclipse.core.resources\.history location in you local system. In history folder you can find all the versions of the webdynpro file which you were modifying till now.
    Thanks,
    Shilpa

  • Where I can get SAP standard webdynpro application source code

    Dear Experts,
    Where can i get sap standard WebDynpro application source code, because i need to copy that source code and modify that according to my application.
    My scnario.
    Actually i need to develop Carloan WebDynpro application, but its similar ESS-> Travel Expenses->Plan my Travel Expense .. standard WebDynpro application model, so please any one suggest how to copy that source code means where can i get that source code, and when rebuilding time what type of problems facing..
    please anyone suggest
    appreciate if you help regarding this..

    Hai saradha ji,
    thank got i know you are the right person for solve my problame, because i study your blogs, please don't be leave this thred till the my problame solve,
    ok once i find  sca file what i want do steps.. please tell me..
    give me any document step by step.  i don't have FPM. i don't have market place ID, so i unable to download .
    please send related artical this mail id [email protected]
    first i search sca file in my development server once got file.. let you inform.
    sincerely

Maybe you are looking for