How to find the Web AS Port from ABAP program

Hi
I have an ABAP program which passes an URL for a BSP page to the Alert Framework. While creating the URL I need to find out the Hostname and port number for the Web service for that server. Hostname comes from sy-host but I am not able to find the port number.
Please help...
Thanks in advance

Hi,
consider this little code snippet:
data:  l_urls       type tihttpurls2.
call method cl_http_server=>get_extension_info
   EXPORTING
    extension_class = 'cl_http_ext_bsp'                  
   IMPORTING
        urls            = l_urls.
l_urls contains a table of configured ports. maybe that helps.
regards, Ulli

Similar Messages

  • How to find the start condition of a ABAP program?

    Hello Gurus!,
    Could any one please explain how to find the start condition of a ABAP program?
    like its a event based or time based?and also how to find that event and time..
    Thanks in Advance...
    Dinakar

    Hi Dinkar,
    Go to Job Schedule, put Job Step parameter as your program and see scheduled Job.
    In Schedule Job double click to see start condition. and steps to see details and variant.
    Hope it helps.
    Thanks
    CK

  • How to find the Web Dnpro component from the Source code ?

    Hi Gurus,
    Please help me to find out the WD Component Name from the Source Code?
    Regards
    Anil

    Hi Thomos,
    When i right clik on the screen i see the following line by line.
    -Back
    -forward
    -save background as
    -set as background
    -copy background
    -set as desktop item
    -select all
    -Paste
    -create shotcut
    -add to favorites
    -view source
    -encoding
    -print
    -refresh
    -export to microsoft excel
    -properties
    I have mentioned every thing i see when ever i right click on the screen.
    --Anil

  • How to find out web-inf path from the physical drive?

    How to find out web-inf path from the physical drive?
    I have some user profiles in web-inf directory.SO I want to know the path from root directory like
    d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
    Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
    But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
    SO I want to get the path of web-inf directory with out hard coding.
    Thanku

    String path = application.getRealPath("/WEB-INF/profiles/username");
    Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream().

  • How to Change the Default SSH Port from Terminal ?

    How to Change the Default SSH Port from Terminal ?

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

  • How to Change the Default SSH Port from Terminal ? now showing default SSH Port 22 i need change it pls help me how can do

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

  • How to find the third highest salary from deptno20,from employee table

    how to find the third highest salary from deptno20,from employee table

    SELECT *
      FROM emp;
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO
    7369
    SMITH
    CLERK
    7902
    12/17/1980
    1000
    3
    20
    7499
    FEDERAL
    SALESMAN
    7654
    2/20/1981
    2000
    4
    30
    7521
    WARD
    SALESMAN
    7698
    2/22/1981
    3000
    4
    30
    7566
    JONES
    MANAGER
    7839
    4/2/1981
    4000
    3
    20
    7839
    MARTIN
    SALESMAN
    7698
    9/28/1981
    5421
    4
    30
    7698
    BLAKE
    MANAGER
    7698
    5/1/1981
    6222
    4
    30
    7782
    CLARK
    MANAGER
    7839
    6/9/1981
    5222
    2
    10
    7788
    SCOTT
    ANALYST
    7566
    12/9/1982
    5463
    3
    20
    7839
    KING
    PRESIDENT
    7902
    11/17/1981
    8543
    2
    10
    7844
    TURNER
    SALESMAN
    7698
    9/8/1981
    2124
    4
    30
    7876
    ADAMS
    CLERK
    7788
    1/12/1983
    2125
    3
    20
    7900
    JAMES
    CLERK
    7698
    12/3/1981
    5462
    4
    30
    7902
    FORD
    ANALYST
    7566
    12/3/1981
    2132
    3
    20
    7934
    MILLER
    CLERK
    7782
    1/23/1982
    5165
    2
    10
    SELECT sal, deptno
      FROM (SELECT   a.*,
                     DENSE_RANK () OVER (PARTITION BY deptno ORDER BY sal DESC) r
                FROM emp a
          ----  ORDER BY sal DESC
    WHERE r = 3;
    SAL
    DEPTNO
    5421
    30
    5165
    10
    2132
    20
    Regards ,
    Friend
    Message was edited by: MostWanted!!!!

  • How to find the file that delete from time capsule?

    How to find the file that delete from time capsule?

    I mean I saved JPEG file in Time capsule and unfortunately delete the file. Can I get it back
    IF.... .no other backups have occured since you deleted the file, you might be able to retrieve it using an application like Disk Warrior. It's about $100 as I recall, and there are no guarantees that it will work.
    DiskWarrior 4 - The Disk Utility for Mac  Disk Repair, Mac Directory ...
    Any of the free or low priced utilities that you might see or try will not be able to retrieve a deleted file from a Time Capsule.
    If any backups have occured since you deleted the file, the deleted file has almost certainly been overwritten. No way to retrieve it in that case.

  • How to find the last executed date of any program?

    <<Frequently asked questions. So search>>
    How to find the last executed date of any program?
    is there any system variable or function module?
    Edited by: Matt on Oct 5, 2010 12:48 PM

    check the transaction STAD.
    Prabhudas

  • How to find the cost center group from cycle/ segment in CO module?

    Hi All,
    I need to fetch the list of cost centers in the cost center group against the cycle.
    Is there any table which will store the list of cost centers against the cycle?
    or else, what I was thinking is use of BAPI BAPI_COSTCENTERGROUP_GETDETAIL, which will give me the list of cost centers,
    but we need to pass the controlling area + cost center grp to fetch the cost centers from BAPI, I have controlling area with me but not the cost center grp name, only I have Cycle info lke cycle name, segment name, seq number. so how to find the cost center grp name from the cycle name?
    Regards,
    Mrunal

    FM: RK_AL_CYCLE_READ
    CHECK TABLE: T811K

  • How to find the contents of proc from top command

    I had a doubt related to how to find the contents of a procedure or the statements from the PID displayed in top command if it can be done from TOAD or
    sqlplus. If we can find out the details from top like:-
    21211 oracle 16 0 3228 1012 764 R 0 0.0 0:07.68 top
    1 root 16 0 1732 552 472 S 0 0.0 0:01.29 init
    say, what is the process with PID 21211 and 1 are doing?
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    Join v$process, v$session, and v$sql
    SQL> ed
    Zapisano file afiedt.buf
      1  SELECT p.pid, s.sid, s.serial#, sq.sql_text
      2    FROM v$session s,
      3      v$process p,
      4      v$sql sq
      5    WHERE s.paddr = p.addr
      6*   AND sq.address = s.sql_address
    SQL> /
           PID        SID    SERIAL# SQL_TEXT
            37        128          2 BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :
                                     2, :3); END;
            19        149       4566 SELECT p.pid, s.sid, s.serial#, sq.sql_t
                                     ext   FROM v$session s,     v$process p,
                                          v$sql sq   WHERE s.paddr = p.addr
                                      AND sq.address = s.sql_address
    SQL>Edited by: Łukasz Mastalerz on Feb 12, 2009 1:27 PM

  • How to find the related PI document from a material document

    Dear All experts,
        If I know the materil document number, how to find the related PI document?
    Thanks!
    Xinling

    Hello Xinling,
    You can extract the details from table MSEG.
    Regards
    Kalpana

  • How i can acces to web ( with login) from abap program?

    Hello.
    I need to acces to web that have user/password from abap program. Is there any function to do this?
    And, is it possible, to do this in background process?
    Regards.
    Antonio.

    Hi Antonio,
    Yes this is possible. Check out class cl_http_client, particularly method IF_HTTP_CLIENT~AUTHENTICATE in which you can provide the user credentials. Here's some example code:
    DATA:  client    TYPE REF TO if_http_client,
                 l_url       TYPE string,
                 l_content TYPE string.
    CALL METHOD cl_http_client=>create_by_url
      EXPORTING
        url    = l_url
      IMPORTING
        client = client
      EXCEPTIONS
        OTHERS = 1.
    client->request->set_header_field( name  = '~request_method'
                                       value = 'GET' ).        "#EC *
    CALL METHOD client->authenticate
      EXPORTING
    *    proxy_authentication = ' '
    *    client               =
        username             = 'user'
        password             = 'password'
    *    language             =
    ****Make the call
    client->send( ).
    ****Receive the Response Object
    CALL METHOD client->receive
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3
        OTHERS                     = 4.
    ****Get the response content in Character format
    l_content = client->response->get_cdata( ).
    Hope this helps you!
    Cheers, Roel

  • How to extend the execution time of an ABAP Program using the Process chain

    Hello Sapians,
    Our Environment has got 600seconds = 10 mintues as the execution time.
    My ABAP Program is taking more than this 600 seconds, to show the result, I found this when I tried to execute in debug mode, it shows the result.
    If I execute in background also it shows the results succesfully.
    Only issue is when I execute this report in foreground it has been taking ages and goes on Time OUT Error.
    It has been decided that we can extend the execution time only for this report, and it will reset the time back to 10mintues once the report has been executed successfully or failed in between for any other reasons.
    And we can achieve this by using the process chains.
    Can any body help me please in this regard
    Thanks,

    Hi,,,,,,,,,,
    Besides Process Chain There is another way out for this........
    Resetting time counter of dialog process so that time-out does not
    happen. Use this fm within your program at appropriate locations to
    reset time counter.
    "CALL FUNCTION 'TH_REDISPATCH'."
    Thanks
    Saurabh

  • How to find the web address for the page I came from

    Hello,
    I want to find the page that I last visited in ADF for implementing some audit functions.
    My jdev version is 11.1.1.2.0; I've search on the internet but I didn't find anything.
    Please help me.
    Thank you in advance.

    FacesContext ctx = FacesContext.getCurrentInstance();> HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest();
    ctx.getExternalContext().redirect(request.getContextPath() + "/faces/" + ctx.getViewRoot().getViewId());
    ctx.getExternalContext().redirect() - wil redirect to the correct page..
    ctx.getViewRoot().getViewId() - wil give you the current view id as suggested by Sireesha
    request.getContextPath() - will get you the complete context path

Maybe you are looking for

  • Mac Book Pro constantly displays spinning wheel of death HELP!!!

    My Mac Book Pro (after installing Mavericks) displays the spinning wheel of death multiple times per day. I thought it was my Google Chrome, but now it has been happening no matter what application I am using. I used Etrecheck to see what is going on

  • Intel iMacs

    So this is the forum for Intel iMacs? Cool. First, could someone explain (or link me to) more detailed pages about the Duo Core chip, Rosetta, and Universal? I've seen the APple pages, but they didn't seem to elaborate, or maybe I just couldn't find

  • Sql in jsp

    can n e 1 tell me where i am going wrong i am trying to use sql in a jsp to try to take out specific tuples from a table in my db but it is not working. i have been looking at the code for ages and can't figure out where i'm going wrong. please help!

  • No sound in PE

    Hi Sorry for the simple problem but . . . I loaded PE4 onto my new computer and all seems fine except no sound. Can only guess that it is because the new computer has a 64 bit system (?) and PE4 don't like it or Computer also has a Sound Blaster X-Fi

  • PO workflow - escalator at plant level

    Hi SAP people, do you know if it is possible to set the time for workflow escalator at plant level? I have implemented the PO approval flow but i want to define 2 different escalator... Thanks in advance Michela