Skip to Content
avatar image
Former Member

Calling URL when click on buttons using web dynpro - ABAP

Hi All,

I am new to web dynpro application development and i am facing issue when i try to test my application.

simple require when i click on button i should direct the to one of url say 'http://www.google.co.in/' my application is activate with no error but when i test the application i am getting below error , can someone please provide me the solution or way out.

The URL http://ides47:8062/sap/bc/webdynpro/sap/zwa_calling_url/ was not called due to an error.

Note

The following error text was processed in the system N6Q : Access via 'NULL' object reference not possible.

The error occurred on the application server IDES47_N6Q_62 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP

Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP

Method: IF_WDR_ADAPTER_EVENT_HANDLER~HANDLE_EVENT of program CL_WDR_CONTEXT_MENU_HANDLER===CP

Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP

Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP

Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP

Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP

Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME

Module: %_HTTP_START of program SAPMHTTP

HTTP 500 - Internal Server Error

Thanks,

Parab

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 01, 2010 at 03:53 PM

    try running some other webdynpro application and check whether that is running fine ...

    You can find lots of sample application in package SWDP_DEMO.

    Regards

    Manas DUa

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      First make sure if the webdynpro URL is proper.

      Try to run any of the sample programs like 'DEMO_TABLE' and see if the application is opening in browser properly.

  • avatar image
    Former Member
    Feb 01, 2010 at 12:02 PM

    Hi ,

    It seesms something you are missing. It would be easy for us if you could paste your code which you have written in the Action of Button.

    Sample code for your reference :

    METHOD onactionget_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( ).
    
    
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://www.google.co.in/'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_TRUE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.lo_window->open( ).
    
    ENDMETHOD.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 01, 2010 at 12:18 PM

    hi,

    here is my code on action

    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( ).

    call method lo_window_manager->create_external_window

    exporting

    url = 'http://www.google.co.in/'

    modal = abap_false

    has_menubar = abap_true

    is_resizable = abap_true

    has_scrollbars = abap_true

    has_statusbar = abap_true

    has_toolbar = abap_true

    has_location = abap_true

    receiving

    window = lo_window.lo_window->open( ).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 03, 2010 at 07:21 AM

    Thanks for update,

    I could get my application work by using inbuild web dynpro application. yes there could be the issue with previous application build by me.

    ~Digamber.

    Add comment
    10|10000 characters needed characters exceeded