Problem in calling abap editor with the program name in Web Dynpro ABAP

Hi,
I have to caal ABAP Editor screen with the display of program after clicking a button from web dynpro abap application.
I am able to call the ABAP Editor initial screen, but i want the editor display screen with a program.
How to do that?
Please find my code below:
  DATA : FINAL_URL TYPE STRING,
         URL TYPE STRING.
  DATA: LV_HOST TYPE STRING,
        LV_PORT TYPE STRING.
DATA V_TCODE TYPE TCODE.
  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.
  DATA:  LD_URL TYPE STRING.
V_TCODE = 'SE38'.
*Call below method to get host and port
  CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
     IMPORTING
       HOST = LV_HOST
       PORT = LV_PORT ).
  CONCATENATE 'http'
  '://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?sap-client=&transaction=' V_TCODE '&OKCODE=SHOW'
  INTO URL.
  LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
  LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
  LD_URL = URL.
  CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
    EXPORTING
      URL    = LD_URL
    RECEIVING
      WINDOW = LO_WINDOW.
  LO_WINDOW->OPEN( ).
Now, how to pass my Zprogram name into the URL.
I need to get the editor screen with the display of the program.
Thanks,
Radhika

Hi Kiran,
Please find my code below:
DATA :   URL TYPE STRING.
  DATA: LV_HOST TYPE STRING,
        LV_PORT TYPE STRING.
  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.
  DATA:  LD_URL TYPE STRING.
*Call below method to get host and port
  CL_HTTP_SERVER=>IF_HTTP_SERVER~GET_LOCATION(
     IMPORTING
       HOST = LV_HOST
       PORT = LV_PORT ).
  CONCATENATE 'http'
'://' LV_HOST ':' LV_PORT '/sap/bc/gui/sap/its/webgui/?&transaction=se38&RS38M-PROGRAMM=Y2PSOLTREE&~okcode=shop'
  INTO URL.
  LO_API_COMPONENT  = WD_COMP_CONTROLLER->WD_GET_API( ).
  LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).
  LD_URL = URL.
  CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
    EXPORTING
      URL    = LD_URL
    RECEIVING
      WINDOW = LO_WINDOW.
  LO_WINDOW->OPEN( ).
Here,, Y2PSOLTREE is the program, that should show in SE38 screen.
I used the above code, but still it is showing the SE38 initial screen.
Thanks,
Radhika

Similar Messages

  • Error «The entered value is not on the list of valid values» in the hierarchy of mss web dynpro abap

    Hello Experts
    The error «The entered value is not on the list of valid values» in the hierarchy of mss web dynpro abap occurs after manager’s following actions:
    selected detailed Team View ;
    selected hierarchy;
    changed style of the hierarchy to any other (for example, the vertical);
    the error occurs after attempting to do any action.
    Our system is EHP7.
    If someone faced with this error, please give me advice how can i resolve this problem.

    Hi John,
    Sorry for the delay in replying. No, we do not have the same problem if we understand you correctly.
    "We have bypassed the MSS Home Page and just embedded the Detailed Team View as a standalone application in our MSS portal role" - we also made for the our customer. BUT we have error «The entered value is not on the list of valid values» in our standard system.
    Regards,
    Andrey

  • BADI for changing Appraisal document application name for Web dynpro ABAP

    Hi,
    For Appraisal document customizing through PHAP_CATALOG_PA, We have BADI HRHAP00_BSP_TMPL  to change the BSP application name which can be used in Web layout for output display. Using this we can change application name from HAP_DOCUMENT to custom BSP application name
    Similarly, what is the BADI for changing Web dynpro ABAP applictaion name? Currently its triggering HAP_MAIN_DOCUMENT.
    how do we change application name to some custom web dynpro application name
    Regards,
    Kothand

    Hi Karim,
    I don't know, if there is any chance to get the Webdynpro application name. At least in the ABAP System fields is no information about the webdynpro application name.
    One remark: I have allways problems with BAPIS / BADIS that behave different depending on the caller. Could it be a good idea to pass some information through the interface / parameters?
    Best regards
    Renald

  • Adobe Reader error with SAP interactive form in Web dynpro ABAP

    Hi,
    We are having a strange intermittent problem with Adobe Reader. When we try to open PDF files from SAP Frontend we get an error pop-up. The pop-up does not have any text. The title of the pop-up has "Adobe Reader". There is a blue question mark and an OK button. The form is inserted into Web Dynpro ABAP page. This web dynpro application is executed in SAP GUI by this program:
    REPORT  TEST1 MESSAGE-ID SWDP_RUNTIME.
    start-of-selection.
      CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
        EXPORTING
         PROTOCOL               = 'HTTPS'       " HTTP | HTTPS
        INTERNALMODE           = 'X'    "SPACE - browser is started
        PARAMETERS             =
          APPLICATION            = 'Z_FORM'
         CONTAINER_NAME         = 'TEST'
        EXCEPTIONS
          INVALID_APPLICATION    = 1
          BROWSER_NOT_STARTED    = 2
          OTHERS                 = 3.
      IF sy-subrc EQ 1.
        MESSAGE a400.
      ELSEIF sy-subrc = 2.
        MESSAGE a401.
      ELSEIF sy-subrc = 3.
        MESSAGE a667.
      ENDIF.
    Adobe Reader version is 9.1.2
    Is there any solution for this?
    Many thanks for answer.

    Jiri,
    The reason why I thought downgrading would help is because Reader 9 and above is probably not fully supported by SAP yet.
    You can maybe open an OSS and see if Adobe 9 is fully supported or not.
    Chintan

  • How to do the feild validations in web dynpro abap

    dear all,
    how to do the feild validations for the screen in web dynpro abap.
    thanks,
    jyothi.

    hi jyothi,
    There are diffrent ways of doing validations for fields of screen in webdynpro abap depending on the requirements.
    I am giving simplest way of doing this validation(it may fullfil your requirement also)
    For e.g you want that without entering value in particular field user should not proceed to submit the data in screen.
      DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
      DATA lo_api_controller     TYPE REF TO if_wd_controller.
      lo_api_controller ?= wd_this->wd_get_api( ).
      lo_message_manager = lo_api_controller->get_message_manager( ).
      DATA var1 type string.
      DATA: node TYPE REF TO if_wd_context_node.
      node = wd_context->get_child_node( 'DATA' ).
      node->get_attribute( EXPORTING name = ' VALUE'
                             IMPORTING value =     var1 ).
    IF var1  IS INITIAL.
        CALL METHOD lo_message_manager->report_error_message
          EXPORTING
            message_text = 'Please enter the value'.
          EXIT.
      ENDIF.
    Now in above code VALUE is the attribute with whome your input field is bound .So if user doesnt enter any value into it he will get above msg (u have to use message are ui element to use this method)
    If you have any other doubt feel free to ask.
    regards
    Panky

  • How to find the BADI'S in Web Dynpro ABAP

    Hi Experts,
    I'm new to Web Dynpro ABAP. Can any one tell me, how to find the BADI'S for standarad components like i.e DEMO_ROADMAP .Please tell me, steps/procedure to find the BADI'S in WDA.
    Thanks ,
    Chaitanya
    Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Jun 18, 2011 4:30 PM

    Hi Nagaraju,
    There is another fool-proof method to find BADIs while executing a transaction -
    1. Goto transaction SE80
    2. Select "Class / Interface", type in the class name CL_EXITHANDLER and 'Enter"
    3. On the method GET_INSTANCE, create a Breakpoint just after the call to cl_exithandler=>get_class_name_by_interface at the following line - 
    <i>CASE sy-subrc.</i>
    Once the breakpoint has been set, call the transaction you wish to find the BADI for and you will notice that the debugger opens everytime a BADI is about to be called. You could get the name of the BADI from the the value of the variable "EXIT_NAME".
    CL_EXITHANDLER is a service class that is called by standard SAP code everytime a BADI is about to be called. So, setting a breakpoint here should let you know exactly which BADIs are called.
    Hope this helps!
    Thanks,
    Rohini.

  • Need I the JAVA Addin for Web dynpro ABAP

    Hello Experts,
    have I to install the JAVA-Addin for using Web dynpro ABAP?
    Best regards
    Heike

    No you don't, but when you want to use your application in Portal, you. Or if you want to use Adobe Interactive Forms, than too you need java.

  • ReCreate Business System (ABAP AS) with the same name ?  is this safe ?

    Hi All,
    Recently, I got problem with the business system (ABAP AS) in SLD suddently the BS type changed to Third Party after did some migration on the respective System.
    The original ABAP system has been deleted and replace by new installed system with different client. So I am trying to change the client in SLD but I found that all technical system information missing in Business System. When I tried to choose the new technical system i only can see third party technical system (Meaning this BS has changed type to Thirdpart) Strange but it happen.
    So i am planning to delete and recreate the Business System. is this correct and safe approach ? does it impact on the current scenarion ?
    This is DEV system. We are using centralize SLD in PI Production Server.
    Please advise
    Thank You

    Hi Stefan and Udo
    Thank you very much for your response. It works for me now.
    I have deleted and recreated again the BS in SLD, login to configuration, and refresh the adapter specific.
    my last question before i am closing the forum. Since this is Development Environment is it necessary to transport after activated the BS (after adapter fresh) ? or just iqnore the object after activated.
    At the moment i didn't because in the production the BS also will be converted to ECP BS by CTS+ during the transport.
    would appreciate for you feedback.
    Thank You and Best Regards
    Fernand
    Edited by: Fernad Lesmana on Jan 28, 2011 8:37 PM

  • Is it possible to call a function with the same name from 2 different dll's at the same time.

    I'm trying to call a function ( F ) form 2 different libraries ( A.dll and B.dll ) at the same time. The first lib loaded determines the function F. A->F and B->F have same interface and name but different implementation.

    Hi,
    I tried it with two dll's, both with the same interface, and at the same
    time, in the same VI. The popups even appear at the same time.
    But now I understand the problem... Both dll's are created by LabVIEW! If
    they are not (or one is not, and the other is), this is no problem.
    And VI's in memory cannot have the same name. LabVIEW doesn't care if VI's
    are in a dll or not.
    This might not help, but if you want to make some sort of "plug in" system,
    you might consider using llb's. By loading VI's dynamically, you can select
    the path from which they are loaded. You must unload (close all references)
    one before the loading the other, or the same problem will occur. If you go
    this way, I consider a different approach. Make on
    e library (or even a dll)
    that has the interface you like, this is the "loader". Now make several
    "plug in"'s, with the same interfaces. The name of each function in a plug
    in is a concatenation of the library name and the function name. The loader
    has one extra function, that loads (and unloads, when done) references to
    all desired libraries to use (the names of the functions can be figured out
    easily). All that the loader functions do is dynamically call the library
    functions. You can use a call by reference node for this (you can use the
    connector pane or the loader vi, since the interface must be the same!).
    If you go this way, I guess the loader library can be converted to a dll...
    Hope this helps.
    Wiebe.
    "rsam" wrote in message
    news:[email protected]..
    > Thx Wiebe,
    >
    > did you load both dll at the same time? For example in 1 vi. Somehow
    > the first loaded function keeps to overrule the second. Notice that
    > the interface is
    exactly the same.
    >
    > I loaded 2 dll created in Labview with results described above.
    >
    > Regards Ruud

  • Drop down in dynamic table in the Adobe Interactive Form (Web dynpro ABAP)

    Hi All,
    I have scenario use drop down in dynamic table in the adobe interactive form (Using the button the dynamic table row will be increasing and decreasing).
    Assume I Add five rows dynamically in the dynamic table. The Last column contains Drop down.
    I have button in the adobe form.
    Button Name = u201CSAVEu201D
    Button type    = SAP Submit button (Native type u2013 I am Using ZCI).
    While clicking save button, I need to store the dynamic table datau2019s to back end system. I can able to store the data to back end system. After form data getting saved those particular values need to display in the adobe form. 
    Here I am facing a problem.
    I cannot able to view as a default value in the drop down, which I have selected some values after save operation I am not getting any values in the drop down as a default.
    Example:
    The dynamic table contains 5 rows (Each and every row Drop down contains one to ten values).
    1)     I have selected second value in the Drop down (ROW1)
    2)     I have selected fourth value in the Drop down (ROW2)
    3)     I have selected fifth value in the Drop down (ROW3)
    4)     I have selected seventh value in the Drop down (ROW4)
    5)     I have selected third value in the Drop down (ROW5)
    I press the save button that particular Drop down value gets saved in back end system and that particular values want display in the Drop down as a default value.
    How to resolve this problem.
    Regards,
    Boopathi M

    Hi,
    Solve the problem .
    I have created the New node for dropdown. also i have one node already for table.
    The new node i bind to dropdown, the table same for table.
    Its working fine
    Boopathi M

  • How to display the rows dynamically in the table display in web dynpro abap

    Hi experts,
                   There is a visible row count tab where you can give the no of rows to be displayed in the output table, but i want it to be done dynamically as the row count of my table may change dynamically at runtime.
    And i want to know how to reduce the width of a column as my table display is taking the length as per the binded table specifications.Can anyone please help me out in this issue.
    Thanks in advance,
    Anita.

    Hi Anita
    You can bind the visiblerowcount property to the a context attribute. and at runtime you can set the context attribute to the no of rows you want in your table,
    Regards
    Naresh

  • Ajax/Javascript in Web dynpro ABAP

    Hi,
    I need your help in figuring out what artefacts of web dynpro ABAP could help me resolve a problem.
    In a Web dynpro abap application, we have a button that redirects a user to an external site. Some of our users can go to this site from their computer and some others can't because they are not allowed. I would like to be able to show the button only to the users that have the right to execute this navigation.
    In order to do that, I need to embed some script in my web dynpro application that will test if the URL of this application sends back an HTTP/200.
    With the latest versions of Web Dynpro ABAP, is it possible to embed javascript of ajax? How can it be done?
    If not, what could I use to base the visibility of my button on a validation that has to run on the users's browser?
    Thank you very much for your help!
    Renaud

    Another way it could be done creating a custom ztransaction (abap report) performing a PING to the ip server , reading log txt,  saving if the user is authorized or not , and redirecting to the Abap Web Dynpro.
    Then On wddoinit select zztable for authorization.
    But i don't know if this solution will work for you (ping specific port 80? or other requirements)
    DATA: workdir TYPE string,
          path_log TYPE string,
          parameter TYPE string.
    TYPES: BEGIN OF tylog,
         line(1000),
      END OF tylog.
    DATA: t_log TYPE TABLE OF tylog,
          v_log LIKE LINE OF t_log.
      DATA:  appl_name TYPE string,
                abs_url TYPE string.
    START-OF-SELECTION.
      CALL METHOD cl_gui_frontend_services=>get_sapgui_workdir
        CHANGING
          sapworkdir = workdir.
      CONCATENATE '/C ping google.it >' workdir
      INTO parameter SEPARATED BY space. "example google
      CONCATENATE parameter '\pinglog.txt' INTO parameter.
      CALL METHOD cl_gui_frontend_services=>execute
         EXPORTING
    *    document               =
           application            = 'CMD'
           parameter              = parameter
           synchronous            = 'X'.
      CONCATENATE workdir  '\pinglog.txt' INTO path_log.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = path_log
          filetype                      = 'ASC'
        TABLES
          data_tab                      = t_log.
      LOOP AT t_log INTO v_log WHERE LINE CS 'Lost = 0'.
        EXIT.
      ENDLOOP.
    if sy-subrc = 0. "ping ok
    zzping-uname = sy-uname.
       zzping-authorized = 'X'.
    else.
      zzping-uname = sy-uname.
      zzping-authorized = ' '.
      endif.
       INSERT ZZPING.
    **construct web dynpro url and call browser
      cl_wd_utilities=>construct_wd_url( EXPORTING application_name = appl_name
                                                                 IMPORTING out_absolute_url = abs_url ).
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        URL                          = abs_url.
    Edited by: alessandro spadoni on Mar 24, 2011 10:09 PM
    Edited by: alessandro spadoni on Mar 24, 2011 10:31 PM

  • Problem with image loading in flex (with web dynpro ABAP integration)

    Hi,
    I am working with integration of flex and web dynpro abap. I am facing unusal problem while loading the images. I have the images in the MIME folder of web dynpro application. Since my swf file and all the images that I want to use are in the same folder(MIME), I am accessing them giving just the image name as source for the image in flex.
    By this method I get the images sometimes, but not everytime. So could anyone suggest me alternative method.
    Regards
    Prashant Chauhan
    Edited by: Prashant8809 on Jul 17, 2011 11:56 AM

    Hello Prashant,
    you need to mention the full path as source for the image in flex.
    ex. if your WD application name is Z_TEMP and image file name in mime folder is 'image.jpg' then you need mention the source in flex as
    http://servername:50001/sap/bc/webdynpro/sap/Z_TEMP/image.jpg
    Hope this solves your problem.
    BR, Saravanan

  • How do I call methods with the same name from different classes

    I have a user class which needs to make calls to methods with the same name but to ojects of a different type.
    My User class will create an object of type MyDAO or of type RemoteDAO.
    The RemoteDAO class is simply a wrapper class around a MyDAO object type to allow a MyDAO object to be accessed remotely. Note the interface MyInterface which MyDAO must implement cannot throw RemoteExceptions.
    Problem is I have ended up with 2 identical User classes which only differ in the type of object they make calls to, method names and functionality are identical.
    Is there any way I can get around this problem?
    Thanks ... J
    My classes are defined as followes
    interface MyInterface{
         //Does not and CANNOT declare to throw any exceptions
        public String sayHello();
    class MyDAO implements MyInterface{
       public String sayHello(){
              return ("Hello from DAO");
    interface RemoteDAO extends java.rmi.Remote{
         public String sayHello() throws java.rmi.RemoteException;
    class RemoteDAOImpl extends UnicastRemoteObject implements RemoteDAO{
         MyDAO dao = new MyDAO();
        public String sayHello() throws java.rmi.RemoteException{
              return dao.sayHello();
    class User{
       //MyDAO dao = new MyDAO();
       //OR
       RemoteDAO dao = new RemoteDAO();
       public void callDAO(){
              try{
              System.out.println( dao.sayHello() );
              catch( Exception e ){
    }

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • [Integration] Web Dynpro ABAP calling Flex in Popup (without Flash Islands)

    Hi,
    We do not intend to install Enhancement Package 1 in a near future.
    Nevertheless, we do have requirements where Flex should be integrated with Web Dynpro ABAP (Flex components embedded or 'attached' to Web Dynpro ABAP applications).
    I would like to open a popup showing a Flex component. Then, the user validates and the Web DYnpro ABAP application is resumed. All this integrated within EP 7.0.
    What, according to you, would be the most effective combination : 
    - Suspend / Resume plug
    - Server-side cookies
    - iFrame (although it is deprecated)
    Given what I have read so far, it seems encapsulating the .swf within a BSP application would be the best shot. Could it be possible to get rid of this 'additional layer' ?
    Thanks in advance.
    Best regards,
    Guillaume

    Web Dynpro ABAP
    Define a suspend and a resume plug.
    BSP
    Retrieve the parameters sent by WDA either by AUTO attributes or the following code
    CONSTANTS: c_resume_name          TYPE string  VALUE `sap-wd-resumeurl`.
    DATA: lt_tihttpnvp                TYPE tihttpnvp.
    FIELD-SYMBOLS: <fs_httpnvp>       LIKE LINE OF lt_tihttpnvp,
                   <fs_dept_magasin>  LIKE LINE OF t_dept_magasins.
    ** Lecture des paramètres envoyés (par le WD ABAP)
    CALL METHOD request->get_form_fields
      CHANGING
        fields = lt_tihttpnvp.
    READ TABLE lt_tihttpnvp ASSIGNING <fs_httpnvp> WITH KEY name = c_resume_name.
    IF sy-subrc = 0.
      e_url = <fs_httpnvp>-value.
    ENDIF.
    Flex
    To return to the Web DYnpro ABAP, call a Javascript function within the BSP using this kind of code :
    jsReturn = ExternalInterface.call("sendBackToSAP", selectedDepartmentsParam, orderParam);
    BSP
    First, to react to the user action in the Flex component, define a Javascript function in the
          function sendBackToSAP(departements, ordre) {
             fireServerEvent(departements, ordre);
             return("Done");
    To fire a server-event (in order for BSP to call the WDA resume plug), I use this declaration :
    <!--  Event used by the Javascript to trigger OnInputProcessing so as to create
                  the server-side cookie -->
           <bsp:htmlbEvent name= "fireServerEvent"
                           id  = "flexAction"
                           p1  = "departements"
                           p2  = "ordre"></bsp:htmlbEvent>
    Last, I simply call the URL that the WDA gives me first :
    navigation->goto_page( e_url ).
    If people are interested in a more detailed presentation, feel free to reply to this post, and I will write a blog about this. Nevertheless, it should become pretty obsolete with the Flash Islands release... 
    Edited by: Guillaume Garcia on Oct 11, 2008 11:13 AM

Maybe you are looking for

  • DOWNLOADED VIDEOS CANNOT PLAY IN NOKIA ASHA 202

    Sir,              why does i can't play downloaded youtube videos(already converted) in my nokia asha 202 i am a user of the said handset last 2 months ago and it said that its not allowed to play the video by the way i tried to play mp4 and gp3 form

  • Monitor of Apple Performa 475

    The monitor of an Apple Performa 475 has gone completely RED and doiesn't display the normal text from Word Processing documents. Can anything be done to solve problem ?

  • Help on either using a DI Box or a Pre Amp?

    I recently bought an iMac 3.06 and I was wondering whether i should use a DI Box or a Pre Amp to connect my bass guitar through the Mac. I have no idea what I am doing any help would be great! Thanks Nick

  • Urgent : HRMD_07A Idoc

    Hi Experts,                   I want to tranfer field which in comination of 2 fields via idoc. I want to send fmname field which is combination of midnam + vorna. Field fmname is in segment but not in the infotype. So where i have to concatenate thi

  • Depreciation run for each business area

    Hi all, In case all business areas are belong to 1 company code. So how to run depreciation for each business area separately? I mean business area A can run depreciation for itself, and not affect other business areas in the same company code. Any s