How to get the WD port number of the actual system?

Hello everybody,
In my application I'm calling a Sap Gui transaction through an ITS WebGUI link that is generated dynamically by an action method. Works find so far.
However, as the code has to run on various systems (development, test, production) I also have to generate the system and port name dynamically. System name is no problem, but how can I get the WD port of the actual system? Is there any method or variable for that? Couldn' find anything so far...
Thanks in advance for any help!

Hello,
As Thomas mentioned, you have to use the utility class to construct the URL for any application.
you have two options here
Option 1 -> Prefix your generated WebGUI link with '/' and pass it to the method CL_URL->HOST in the URL parameter. this method will prefix the corresponding http:<host>:port to the passed in URL.
Option 2 -> you can directly use the method CL_URL->ITS to generate your entire web GUI link.
BR, Saravanan

Similar Messages

  • My iPhone getting stolen,how I get the actual location my iPhone way using the apps find my iPhone?

    My iPhone getting stolen,how I get the actual location the full address to find my iPhone way using the apps find my iPhone?

    If you set up the Find My iPhone service prior to your iPhone going missing - the app is for tracking a device from another iOS device - then there is a chance that can be tracked, though it depends on a number of factors (the iPhone is turned on, connected to either the 3G or a WiFi network, or has not had the Find My iPhone service disabled or the iPhone been completely restored). Log into icloud.com and go to the Find My iPhone section. If you did not set up Find My iPhone, check with your cell carrier. Some carriers offer their own tracking service, though you usually have to pay for it. 
    If your carrier does not offer such a service and you did not set up Find My iPhone, then there is no way to track the unit. Contact the police and change any passwords for any online accounts you may have used from your iPhone (the iTunes Store, for instance). 
    Regards.

  • How to get  the actual data in ALV report

    I am doing some upgradation work   in that i am using Submit  & And return and  also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
    With the use of set table for 1st display i got the  ALV report   but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get  the  actual data in ALV report, With the use of  Any Function Module or with Coding,
    with regards,

    Hi Saravana
    I am sure you must be getting the values in tables of table parameters from every FM.
    consolidate the values from tables of all FMs in one table and built ALV for that table only.
    I hope this way you can show the actual data in ALV.
    thanks
    Lalit

  • How to get the actual font name from a font file?

    Hi
    I have only the font Path I have to get the font name from that path. Any idea how to get the actual font name?
    Thanks,

    I would ask you these questions:
    Why do you need to do this?  What are you ultimately trying to accomplish?
    Are you really asking about the InDesign SDK?
    Do you really need to get the "name" of a font from an arbitrary file?  Or do you want information about a font installed on the system?  If so, what OS?
    Do you need to be able to handle any font format?
    Which font "name" do you mean?
    What language do you want the name in?
    (1) It's not clear what you're trying to accomplish.  A bit more information about your ultimate goal would be helpful.
    (2) This question is not at all specific to the InDesign SDK.  Are you really trying to do something in the context of an InDesign plug-in?  If so, you probably want to look at IID_IFONTFAMILY and the IFontFamily::GetFamilyName function.
    (3) If you are asking more generally, Windows and Mac both have system API calls to get this information, although those tend to deal with installed system fonts, not with arbitrary font files per se.
    Also, you can parse the name table from a True Type or Open Type font without using any system APIs; as True Type and Open Type are well-documented standards.  I would start by reading these:
    The Naming Table
    Font Names Table
    (4) Although there are other standards, such as Type 1 (PostScript) fonts, and True Type Collection files and other formats, especially on Mac.
    (5) Also, when you start down this road, you will quickly realize that your seemingly simple question is actually ambiguous, and that the answer is kind of complicated, because a font can have many names (a family name, a full font name, a style name, a PostScript name, etc.).
    (6) And not only does a font have multiple names, it can have each of those names in multiple languages and encodings.
    Any clarification would make this a better question.

  • How to get the actual value rather than pixel value in vision assistant

    how to get the actual value rather than pixel value by vision assistant in my program.As shown in the figure            this is my programme   this is the result       But i want to get this result

    Check the documentation for the "ADF Dialog Framework"
    It may help
    Atilio

  • Data aquisition board installation,how to get the operation system know that the board exsist and to give it a number?

    I'm a green hand on hardware. This question is maybe kind of a silly quetsion.
    I already have a data acquisition board installed (built-in) and there is the corresponding program to control it.
    Now I need to install another board to the computer, and make the necessary Vi to control the new board. I'm wondering what should be the procedure like? HOW to get the computer know the new board. Should there be any driving program coming along with the hardware. Or the operation system should get to know the existing of the new hardware once it's installed( i mean plug in). Thank you for your kind reply!

    Hi Fenny,
    What is the model number of the second board? If your existing driver has support for this board (which I'm assuming is a NI board, and it's plug and play), your OS (which I'm assuming is Windows) should recognize it when you start up your computer after installation. You can find out the driver support for your board and OS from the link below. If the installation was successful, you should be able to see the new board in the Measurement and Automation Explorer (MAX) under "Devices and Interfaces". If you can see the board in MAX, there will be a device number assigned to the board, which you can use in your VI to communicate with it.
    If any of the above assumptions is incorrect, please provide some details (i.e. hardware used, driver you currently have installed, OS, and the application you'd like to use this new board for), and we can work from there.
    Data Acquisition (DAQ) Installation/Configuration Troubleshooter
    Thanks,
    Lesley Y.

  • How to get the actual screen size

    Hi,
    I have to get the actual screen size of the cliend in an applet, if i use method
    Dimension dmx = Toolkit.getDefaultToolkit().getScreenSize();
    it does not gives the actual screen size, like the screen size will be different if the application bar ( where we have start button on windows ) is Auto hide, and will be different it is not Auto Hide, or some users ike to keep the application bar on right or left of screen or on top..
    So how do we get the actual display size of screen

    Hi,
    I got how to do if using applet
    in screen object of java script we have methods to get the available width and availabe size
    screen.availWidth
    screen.availHeight
    here is the link for more info
    http://developer.netscape.com/docs/manuals/js/client/jsref/screen.htm
    http://forum.java.sun.com/thread.jsp?thread=275329&forum=57&message=1063410

  • How to get the actual height of JEditorPane?

    I have a basic question on the JEditorPane. Do I have to show the JEditorPane on a temporary Frame in order to get the actual height? My work around is to show the JEditorPane on a frame, get the JEditorPane height, then dispose the frame. It would be nice if I can get the actual height of JEditorPane without showing the frame.
    This is test my code.
    import java.awt.*;
    import java.lang.*;
    import java.net.*;
    import javax.swing.*;
    public class Test {
    public static void main (String [] args) {
    double w = 0;
    double h = 0;
    JEditorPane editorPane = null;
    try {
    URL url = new URL("file:test.html");
    editorPane = new JEditorPane(url);
    } catch (Exception e) {}
    editorPane.setPreferredSize(new Dimension(400, 700));
    w = editorPane.getWidth();
    h = editorPane.getHeight();
    // output "width: 0 height: 0"
    System.out.println("width: " + w + " height: " + h);
    // This my work around the get the actual height
    JScrollPane scrollPane = new JScrollPane(editorPane);
    JFrame frame = new JFrame("TESTING");
    frame.getContentPane().add(scrollPane);
    frame.pack();
    frame.show();
    // wait for loading data
    try {
    Thread.sleep(20000);
    } catch (Exception e) {}
    w = editorPane.getWidth();
    // actual height based on the width and the size of test.html
    h = editorPane.getHeight();
    // output "width: 597 height: 24320"
    // 24320 is the actual height that i want
    System.out.println("width: " + w + " height: " + h);
    frame.dispose();

    This thread uses a PropertyChangeListener to notify you when the page is finished loading.
    http://forum.java.sun.com/thread.jsp?forum=57&thread=333171

  • How to get the Actual Query of View Object

    Hi all,
    I have a standard. I need to modify the query of the VO attached to a picklist based on responsibility. I am able to achieve my requirement but it is getting reflected for all the responsibilities even though i extended the controller for a particular responsibility. I used setQuery() to change the query of my VO. When checking "About this page". The code i added also shown in the page. Now i want to get the actual query to the VO before the controller is extended so that i can set the modified query or actual query based on my responsibility. Kindly share your knowledge.
    Regards,
    Pradeep

    Hi,
    I guess following query will not work ,Why use 2 where clauses.
    SELECT * FROM (select NVL(VENUE_NAME,' ') "Venue",
    NVL(VENUE_CITY,' ') "City",
    NVL(COUNTRY_DESC,' ') "Country",
    EVENT_NUMBER
    From NS_EVENT_VENUE_DETAILS,NS_COUNTRY_MASTER WHERE COUNTRY_CODE = VENUE_COUNTRY) QRSLT WHERE (QRSLT.EVENT_NUMBER = 1539
    you can as following using bind variable.
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcquerying.htm#CEGDGIJH

  • How to get the actual data of a file held in IWDResource object?

    Hello,
    I am uploading a csv/excel file and writing it to the server using the FuleUpload UI and IWDResource Interface.
    I need to make some things on the data before I write it:
    1. count the number of columns are in the csv/excel file in each line.
    2. replace special characters in the file using replaceAll for example.
    My problem is how to access the data once it is stored in the IWDResource interface? All I have there is the read method which generated an InputStream object to read bytes from the file.
    Any ideas?
    Roy

    If you want to read cell level or row level data from excel you should use third party APIs. Apache POI provides such an API, you can use and read the excel documents. You can refer the POI API
    <a href="http://poi.apache.org/hssf/quick-guide.html#ReadWriteWorkbook">here</a>.
    And if you want to read the CSV file content do the following..
    FileInputStream fis=(FileInputStream)wdContext.currentContextElement().get<attribute anme>().read(false);
    byte in[]      = new byte[512];
    String csvData;
    StringBuffer csvBuffer = new StringBuffer();
    while(fis.read(in)>0)
    csvData = new String(in);
    csvBuffer.append(csvData);
    //now write the logic to validate the csv data.
    Regards
    Abhilash

  • $FLEX$. references - how to get the actual record id as a reference

    Hello,
    I'm using the DFF with title 'Customer Information' from Receivables, which is on a customer account (hz_cust_accounts table). How do I retrieve the actual row's PK/cust_accounts_id or the account_number being edited on the page?
    I tried $FLEX$.ACCOUNT_NUMBER
    (since ACCOUNT_NUMBER was defined as a column in the DFF registration),
    but this didn't seem to work.
    ==
    Thanks. Gina.

    Gina,
    Can give us the details of what you are trying to achieve?
    It is unclear whether you are using the accout number as a segment in the DFF registered against customer accounts (Why would do that?). Are you trying to capture more information against one customer account number in a DFF?
    If you are in the customer account block and usually you get any value in that block with this notation:
    :BLOCK.ACCOUNT_NUMBER where block refers the current block you are in.
    Is this what you are looking for?
    Thanks
    Nagamohan

  • How to get the actual key pressed in a UITextField

    Hi all , now i develop a program on iphone SDK 3.0 GM.
    I have an UITextField (created programmatically) and I have implemented the delegate as well as the UITextFieldTextDidChangeNotification so that I can react to changes in the text values.
    However, I specifically want to know when the user presses the backspace key in the UITextField when there is currently no text in the field. I can't find where I can get a specific notification of the actual key pressed, as opposed to the resulting state of the text. I'm sure there is a way to do this...help?

    I can imagine why you want to do it. I had the same problem myself and managed to circumvent it in a slightly painful way. What I did was to subclass UITextField to create a text field that always had text in it, even when it "seemed" empty. In fact the first character of the text is a space character, and then what follows is the actual text. In this way, your delegate will always get called about a backspace (when it's an attempt to delete the leading space character, obviously you should return NO in the textField: shouldChangeCharactersInRange: replacementString: method). I won't get into the details of exactly how to set everything up, like I said it is kind of elaborate and I wouldn't really recommend it unless you are desperate to have that kind of functionality.

  • How to get the Portal System details?

    Hi,
    I have a webdynpro application which has links that the user can click and point to various systems. For instance, there is a link for SAP Transaction,. if the user clicks this link, the SAP transaction is opened as a URL.
    Among, these: There is a SAP transaction for BEX Analyzer (RRMXP).A transaction iview has been configured for this BEX ANALyser. I have a <b>link to URL</b> UI element defined in my application. All i need now is the <b>system and host</b> details of the Portal system (EP), where this transaction iview has been configured. Which is the best way to get the system/host/port details of Portal System (EP). Im not talking about backend, nor of the WAS, but the system where Iviews are configured?

    Hi Christian,
    When i tried this, i got <b>2 errors</b>
    cannot resolve symbol
    symbol  : method getProtocolAdapter ()
    location: interface com.sap.tc.webdynpro.services.task.ITask
    String hostName = TaskBinder.<i>getCurrentTask().</i>getProtocolAdapter ().getServerName();
    cannot resolve symbol
    symbol  : method getProtocolAdapter ()
    location: interface com.sap.tc.webdynpro.services.task.ITask
              int port      = TaskBinder.g<i>etCurrentTask</i>().getProtocolAdapter().getServerPort();
    <b>Questions:
    1. Are we missing any jar files?
    2. Does this work for https?</b>

  • How to get the actual path of a file present in the Web content folder

    I have a jasper file which is present inside the Web-Content folder of my project.
    I need to pass this file as an argument to the FileInputStream object. How can i give the actual path of the jasper file, since this project can be deployed anywhere else also.

    You may be able to use the getRealPath or getResource methods in ServletContext

  • How to get the actual fromat of project name like C1R-000001 !

    hi
    hi iam getting the projectid as c1r000001 even when ia m providing input as
    C1R-000001 BUT WHEN I DOWNLOAD INTO EXCEL I AM GETTING RIGHT...
    CAN U SUGGEST ANY FEILD CATALOG SETTING OR CONVERSION FUNCTION MODUELS!
    help me!
    thanks!

    Hello,
            CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
                 EXPORTING
                      INPUT  = W_PSPID
                 IMPORTING
                      OUTPUT = W_PSPIDN.
    Regards,
    Neelambari.

  • How to get rid of port number when you want use SJSAS as your production we

    Hi my question is rather simple. If I want use my computer as the web server backed by Sun Java System Application Server suite installed on the same machine, how can other internet users access my set domain without knowing my host port # (not typing :8080 after IP address)?
    thanks

    Tomcat is a webserver/servlet container combination. In that case, you make me wonder what you need the app server for.
    Anyway, the answer remains the same: read the manual or ask the support. There's a Sun App Server forum here.
    http://forum.sun.com/jive/category.jspa?categoryID=10 - but you''ll have to configure Tomcat.

Maybe you are looking for

  • There was an error in the App Store. Please try again later. (20)

    Hi I had a problem while i was trying to apdate "iPhoto , iMovie" they are keep telling me "We could not complete your request. There was an error in the App Store. Please try again later. (20)" Is there any one having the same problem?

  • HELP! Airport WAN not working

    Hello all, First, let me explain my setup which has worked for over a year now: Cable Modem--->AEBS (WAN port)--->Transmits to 2 G4's and a Powerbook Two days ago, I turned on my machine only to discover that my internet was down. I first tried calli

  • Q 10 Issue with Night mode and Pnone on ring mode

    I have one more issue now. I put on the alarm mode at night which shows the clock in red. Today I realised that the phone goes in to silent mode and does not ring. I want it to be in PHONE ONLY mode to attend to emergencies. Is there any way that can

  • Vendor partner function is overriding my output determination for PO email

    I'm trying to get a PO emailed to the user who created the PO based on purchasing group. I configured output determination so that a message is correctly getting generated -- in MN05 I've got the purchasing group tied to the VU (user responsible) par

  • Ssh non-functional after Leopard update

    Hi everyone I upgraded to Leopard three days ago, and I am still trying to solve problems it appears to have created. One of these problems is that ssh doesn't work. Pearl:~ clytie$ ssh 10.1.1.1 percent_expand: NULL replacement Pearl:~ clytie$ ssh -v