Get URL by ABAP

Hi, i´m trying to get an url from abap, i see some function like:
PRGN_GENER_EXECUTE_URL
But i don´t want this behaviour, i need something like a http request without the browser interaction.
Thanks !!!

Hi,  thanks for reply, is a normal job and i have to check the status from two servers...
I see this function HTTP2_GET, i solved with this function.
Thanks again

Similar Messages

  • Get URL by PCD in WD ABAP

    Hello friends,
    I'm developing a web dynpro abap applcation. My problem is when i'm pressing on button that need to open
    bw iview.I am using the method CREATE_EXTERNAL_WINDOW from the interface IF_WD_WINDOW_MANAGER, now I need to send url as paramter.Is there any way to get url by pcd ( to get the url of bw iview )?
    I'm doing it that way and not by calling NAVIGATE_ABSOLUTE method because when bw iview send me back paramters( with EPCM ) i want also to close it.
    Thanks in advanced,
    Udi

    Hi Udi,
    We had a similar requirement where we need to call a Transaction in portal with different values for its parameters.
    Assuming that your BW iView will have NON-CHANGING Url path you can store that path in a abap table ( for multiple reports also) and then get the value when required.
    If you need to pass any parameters with the URL you can concatenate it to the NON-CHANGING url part and send.
    I hope it helps.
    Revert back in case of queries/issues.
    Regards,
    Sumit Oberoi

  • Code to call url in abap program

    code to call url in abap program using cl_http requests and save the outcome to a location  in a file

    See the below program
    REPORT zbrowser .
    TABLES : sscrfields.
    INCLUDE .
    CONSTANTS: htmlcntl_eventid_on_navigate TYPE i VALUE 1.
    CONSTANTS: htmlcntl_eventid_navigate_com TYPE i VALUE 2.
    DATA : h_html_ctrl TYPE cntl_handle,
    repid TYPE sy-repid,
    dynnr TYPE sy-dynnr,
    cmd TYPE sy-ucomm,
    flag,disp.
    DATA : it_exclude LIKE TABLE OF rsexfcode WITH HEADER LINE.
    SELECTION-SCREEN : FUNCTION KEY 1,
    FUNCTION KEY 2,
    FUNCTION KEY 3,
    FUNCTION KEY 4,
    FUNCTION KEY 5.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 2
    SELECTION-SCREEN COMMENT 45(50) comment1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(28) comment2 FOR FIELD url.
    SELECTION-SCREEN POSITION 31.
    PARAMETERS : url(1064) LOWER CASE .
    SELECTION-SCREEN PUSHBUTTON 79(4) open USER-COMMAND open.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    comment1 = 'ABAP INTERNET EXPLORER'.
    comment2 = 'Enter URL/Filename To Open :'.
    open = icon_transfer .
    sscrfields-functxt_05 = icon_sap.
    sscrfields-functxt_04 = icon_booking_stop.
    sscrfields-functxt_03 = icon_refresh.
    sscrfields-functxt_02 = icon_arrow_right.
    sscrfields-functxt_01 = icon_arrow_left.
    repid = sy-repid.
    dynnr = '1000'.
    it_exclude-fcode = 'ONLI'.
    APPEND it_exclude.
    it_exclude-fcode = 'INFO'.
    APPEND it_exclude.
    *Changing GUI status
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
    p_status = sy-pfkey
    p_program = repid
    TABLES
    p_exclude = it_exclude.
    CALL FUNCTION 'CONTROL_INIT' .
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'HTMLCNTL_CREATE'
    EXPORTING
    owner_repid = repid
    link_repid = repid
    dynnr = dynnr
    handle = h_html_ctrl
    EXCEPTIONS
    control_install_error = 1
    create_error = 2
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 3
    OTHERS = 3
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'HTMLCNTL_INIT'
    EXPORTING
    h_control = h_html_ctrl
    left = 1
    top = 2
    width = 143
    height = 37
    register_event_on_navigate = 'X'
    cb_form_navigate_complete = 'ON_CONTROL_EVENT'
    EXCEPTIONS
    cntl_system_error = 1
    cntl_error = 2
    dp_create_error = 3
    dp_install_error = 4
    dp_error = 5
    create_browser_error = 6
    init_error = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'CONTROL_FLUSH'.
    AT SELECTION-SCREEN.
    cmd = sscrfields-ucomm.
    CASE cmd.
    WHEN 'OPEN'.
    PERFORM load_html_page.
    CALL FUNCTION 'CONTROL_FLUSH'.
    WHEN 'FC01'. "BACK
    CALL FUNCTION 'HTMLCNTL_GO_BACK'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 4
    PERFORM get_current_url.
    WHEN 'FC02'. "FORWARD
    CALL FUNCTION 'HTMLCNTL_GO_FORWARD'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    WHEN 'FC03'. "REFRESH
    CALL FUNCTION 'HTMLCNTL_DO_REFRESH'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    WHEN 'FC04'. "STOP
    CALL FUNCTION 'HTMLCNTL_STOP'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    WHEN 'FC05'. "GO TO HOME
    CALL FUNCTION 'HTMLCNTL_GO_HOME'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    CALL FUNCTION 'CONTROL_FLUSH'.
    WHEN OTHERS.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 5
    CALL FUNCTION 'CONTROL_DISPATCH'
    EXPORTING
    fcode = cmd.
    CALL FUNCTION 'CONTROL_FLUSH'.
    ENDCASE.
    CLEAR cmd.
    CALL FUNCTION 'CONTROL_FLUSH'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR url.
    PERFORM get_file_name.
    PERFORM load_html_page.
    *& Form get_page_name
    Get Page Name
    FORM get_file_name.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    def_path = 'C: '
    mask = ',.,..'
    mode = 'o'
    title = 'Browse to Open'
    IMPORTING
    filename = url
    RC =
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    ENDFORM. " get_page_name
    *& Form load_html_page
    TO load the file (URL)
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 6
    FORM load_html_page.
    CALL FUNCTION 'HTMLCNTL_SHOW_URL'
    EXPORTING
    h_control = h_html_ctrl
    url = url.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    flag = 'X'.
    ENDFORM. " load_html_page
    *& Form get_current_url
    Get Current URL
    FORM get_current_url.
    CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL'
    EXPORTING
    h_control = h_html_ctrl
    IMPORTING
    url = url.
    ENDFORM. " get_current_url
    Callback form for the event 'NavigateComplete'
    callback on_control_event.
    CALL FUNCTION 'CONTROL_GET_EVENT_PARAM'
    EXPORTING
    h_control = h_html_ctrl
    param_id = 0
    CHANGING
    return = url.
    PERFORM get_current_url.
    endcallback.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Call http url in Abap - Should not open Browser

    Hi Friends,
       I have a requirement where i need to check whether a perticular http service is running or not. For that i need a some code to call http url from abap and it should not open the browser. If that perticular url is not found or time out then i should know that in program...
    Is there any way to do that..

    just run the following url (after changing the values for host,etc) from browser
    http://<abaphost>.<domain>.com:<port>/sap/public/ping
    to get the values for http://<abaphost>.<domain>.com:<port> just go to transaction se80 and choose bsp application option and choose any existing bsp application and then doubl click on a page. on the right side click on the attributes tab and at the end you can find the url
    Regards
    Raja

  • Execute URL from ABAP (no gui session)

    I have an RFC function module which I am calling from Visual Composer application. The function module is designed to execute and external URL using method cl_gui_frontend_services=>execute. However, I am getting an exception error NOT_SUPPORTED_BY_GUI because from Visual Composer there is no SAP gui session open. I have tried some other function modules like WF_WINDOWS_EXECUTE, PRGN_GENER_EXECUTE_URL, CALL_BROWSER...etc but they are all designed to work with gui session only.
    Is there any other class or function module that I can use to resolve this issue (w/ example please)?

    Hi,
    For opening a url through ABAP,
    Try using a sample code below:
    DATA: BEGIN OF URL_TABLE OCCURS 0,
             L(35),
           END OF URL_TABLE.
    url_table-l = 'http://www.abc.com'.
    APPEND url_table.
    CALL FUNCTION 'WS_EXECUTE'
       EXPORTING
         program        = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
         commandline    = url_table
         inform         = ''
       EXCEPTIONS
         prog_not_found = 1.
    IF sy-subrc <> 0.
       WRITE:/ 'Cannot find program to open Internet'.
    ENDIF.
    Hope it helps
    Regards
    Mansi

  • Hi! I need to load a GET url that si very long. On other browsers, I can load the url. In firefox 3.6, no. There is an addons or a plugin so I can extend this limit? If yes, is possible to load automatically this addons when loading a certain page? thanks

    Hi!
    I need to load a GET url that si very long. On other browsers, I can load the url. In firefox 3.6, no.
    There is an addons or a plugin so I can extend this limit? If yes, is possible to load automatically this addons when loading a certain page? thanks
    The url is sometingh like this (this is correctly loaded, but it could be longer)

    Firefox should have problems with long GET data appended to an URL (long would be over 64k).<br />
    If there are problems then it is possible that an extension is the cause of that.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Get Url from a text box

    Hello,
    I have read a couple posts in regards to the GEt URL function
    but couldn't find what I'm looking for.
    Trusting someone can help.
    Here are two reference files
    1- Main swf that loads the movie clip
    with the links
    Swf
    that displays the links I'm opening in a new window
    I'm able to open the url on a new window but couldn't find a
    way to control the height of this window. Please note that the
    links are all inside a text box. They are not separate buttons they
    are just text hiperlinks.
    Please let me know if any of you knows how to control the new
    _blank window height.
    Thanks
    Fe

    Hi. You should consider posting this to either the iPhone forum or the Developer forum. This forum is for discussing the Unix subsystem of OS X...

  • Help with calling a Get URL

    I am having a problem with calling a series of web pages
    within my movie. I have an index.fla that I publish to html. Within
    the index.html, I am calling multiple swf files to load content.
    Home.swf loads when the index page displays. Then the user clicks
    on any button and each button loads another swf replacing the main
    content with perhaps loading it's own swf files of content also.
    Everything is working fine. However, on one called swf file, called
    students.swf, I also have a menu swf file that is called when
    students loads. This menu swf file has text listed with
    actionscripting calling a data file that causes the text to expand
    and rollout and display a label of the url. When the user clicks on
    the list name I have a get url to the url of the label. Everything
    works fine in the swf files when I test the movies for the swf for
    the menu file and for the student file swf. However, when I publish
    and run the index page and start testing out the student swf that
    is called, the menu will not open up a new browser window with the
    link designated in the get url. I can't figure it out! It works
    fine in the swf files, but not when I test it out through the index
    controlling file. Please Help!!!

    if you're using as2, try adding
    this._lockroot=true;
    to the movieclip that contains getURL, the student file
    swf.

  • Get Url doesnt work in my flash .swf page

    Get url doesnt work in my flash .swf page
    www.wackyworld.biz/north.swf
    click on the building is supposed to go to a site. I made all the buildings symbols and when i hit f9 the actions window opens i put
    on bowling building
    on (Release)
    get URL (http://wackyworld.biz/bowling/bowling.html", "_self ") ;
    why when i click on the buildings they dont work? can someone download the file and convert it to fla and tell me what im doing wrong?
    Brent
    Message was edited by: crashncrazy

    i did click on the button and then put in the code.
    on (release)
         "getURL" (http://www.wackyworld.biz/bowling/bowling.html, "_self");
    like this?
    if so this is what i have. still no way to click on button on site

  • How to publish project to get url?

    how to publish project to get url?

    Hi
    If you publish your Captivate project to Adobe Connect, then you will get a URL which you can provide to your users. Users need to open the URL to play the project.
    If you publish your Captivate project which is SCORM compliant, then you need to upload this project to any LMS,  you will get a URL which you need to provide to your users, users will open on the URL and project will start playing.
    Thanks and Regards
    VJ

  • SAP job SAP_COLLECTOR_FOR_PERFMONITOR getting failed  with abap dump LOAD_PROGRAM_NOT_FOUND

    Dear Experts,
    Background job SAP_COLLECTOR_FOR_PERFMONITOR getting failed  with abap dump LOAD_PROGRAM_NOT_FOUND.
    As it is hourly scheduled job and it gets finished 22 times in a day but other 2 times fails with abap dump.
    Finished Job log
    Job started
    Step 001 started (program RSCOLL00, variant , user ID Bharath)
    Clean_Plan:Cleanup of DB13 Plannings
    Clean_Plan:started by RSDBPREV                       on server
    Clean_Plan:Cleaning up jobs of system DEV
    Clean_Plan:finished
    Job finished
    Failed Job Log
    Job started
    Step 001 started (program RSCOLL00, variant , user ID Bharath)
    Internal session terminated with a runtime error (see ST22).
    Kindly suggest on this..
    Thanks,
    Bharath.

    Dear Divyanshu,
    Our system in ERP 6.0 EHP5 with SP level 10. The ABAP Dump shows below error.
    |Short text                                                                                        |
    |    Program "RSORA811" not found.                                                                 |
    |What happened?                                                                                    |
    |    There are several possibilities:                                                              |
    |                                                                                                  |
    |    Error in the ABAP Application Program                                                         |
    |                                                                                                  |
    |    The current ABAP program "RSCOLL00" had to be terminated because it has                       |
    |    come across a statement that unfortunately cannot be executed.                                |
    |    or                                                                                            |
    |    Error in the SAP kernel.                                                                      |
    |                                                                                                  |
    |    The current ABAP "RSCOLL00" program had to be terminated because the                          |
    |    ABAP processor detected an internal system error.                                             |
    |What can you do?                                                                                  |
    |    Note down which actions and inputs caused the error.                                          |
    |                                                                                                  |
    |                                                                                                  |
    |    To process the problem further, contact you SAP system                                        |
    |    administrator.                                                                                |
    |                                                                                                  |
    |    Using Transaction ST22 for ABAP Dump Analysis, you can look                                   |
    |    at and manage termination messages, and you can also                                          |
    |    keep them for a long time.                                                                    |
    |Error analysis                                                                                    |
    |    On account of a branch in the program                                                         |
    |    (CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)                                              |
    |    or a transaction call, another ABAP/4 program                                                 |
    |    is to be loaded, namely "RSORA811".                                                           |
    |                                                                                                  |
    |    However, program "RSORA811" does not exist in the library.                                    |
    |                                                                                                  |
    |    Possible reasons:                                                                             |
    |    a) Wrong program name specified in an external PERFORM or                                     |
    |       SUBMIT or, when defining a new transaction, a new                                          |
    |       dialog module or a new function module.                                                    |
    |    b) Transport error                                                                            |
    |Information on where terminated                                                                   |
    |    Termination occurred in the ABAP program "RSCOLL00" - in                                      |
    |     "LOOP_AT_SYSTEMS_AND_REPORTS".                                                               |
    |    The main program was "RSCOLL00 ".                                                             |
    |                                                                                                  |
    |    In the source code you have the termination point in line 535                                 |
    |    of the (Include) program "RSCOLL00".                                                          |
    |    The program "RSCOLL00" was started as a background job.                                       |
    |    Job Name....... "SAP_COLLECTOR_FOR_PERFMONITOR"                                               |
    |    Job Initiator.. " bharath"                                                                       |
    |    Job Number..... 18243400
    Kindly check and suggest..
    Thanks,
    Bharath.

  • Get URL variable in customer exit

    Hi,
    does anybody know how to process a variable value in a customer exit which was filled by an URL parameter? I have created an iView which calls a webtemplate via URL  "http://<SERVER>/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=ZTEST&var_name_1=MyVAR&var_operator_1=EQ&var_sign_2=I&var_value_low_ext_1=12345".
    When I execute the iView the value "12345" is correctly transported and stored in variable "MyVAR" and the result is also filtered on this value.
    Now I would like to modify the value in a customer exit but it seams as the entry is not not stored in table i_t_var_range. Any ideas how I might get access on the URL parameter value?
    Thanks, Carina

    Hi,
    I have exactly the same problem. Have you solve this problem ?
    It must exist a solution because SAP kowns how to get URL filters in standard, but I don't kown how!
    Thanks in advance for any help.
    Philippe

  • Work schedule: Approval field for a position - How to get it in ABAP?

    Hi all,
    could you please help me to find out how to get in a ABAP report the value of field Approval
    (RHCSHORA-CPROZT) that is shown in the Work Schedule tab in OM (PPOSE tx), starting
    from a position id? E.g. 100,00 (% of Standard value)
    Thanks in advance, bye.
    Angelo

    Hi,
    Are you asking about staffing Percentage?
    Check Table HRP1001 with relation ship A008 .
    get Weighting Percentage.
    Regards,
    Manoj.

  • Get Url

    Hi,
    I have created following embedded code
    <object width='576' height='353' ID="Object1"
    VIEWASTEXT>
    <param name='movie' value='
    http://invind05/Rohit2/find_url.swf'
    />
    <param name='wmode' value='transparent'/>
    <embed src='
    http://invind05/Rohit2/find_url.swf'
    width='576' height='353' type='application/x-shockwave-flash'
    wmode='transparent'/>
    </object>
    This code will be used by client on any
    http:// xyz/abc.html.
    Iwant to get the url where the above .swf file is used. I
    donot want to add Java Script function in the embedded code.

    Kevin wrote:
    > How can i get a browser to load a new page url once a
    flash movie ends.So
    > the viewer doesnt have to click a link to open the new
    browser window? Ive
    > tried the get url action but no success so far.
    Place a key frame on the last frame of the timeline with
    getURL action.
    getURL("somepage.html");
    Once the movie reaches that frame, it will automatically call
    the browser window.
    It's good idea to place stop(); action on that frame as well,
    sometimes the movie
    rewind itself while the browser process the action, making
    impression like there
    is more to come and user get suddenly shifted elsewhere. They
    tend to hit the back
    button to go back see what has happened.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Get URL + load Movie

    I am going from one Flash site to another and use the get URL
    code just fine getURL("
    http://www.site2.com).
    When I get to site2 how does one pass loadMovie or other
    commands to site2 flash from site 1 with the get URL command? Is
    that a case for shared Objects?
    Thanks

    It looks like you are loading in an external .swf for the
    thumbnails and the larger images for each section. If you want to
    update a particular section's photos, then you can just replace the
    old .swf with a new one with the same name. Your movie will then
    use the new .swf when it is called to be loaded.
    You should not use getURL() for any of this. GetURL() is used
    to load a new .html document into a browser.

Maybe you are looking for