Hard code of IP Address

hi
I have seen java code Containing IP Address of Other server. But when we have most java (components)files containing IP Address in the code, to make a hit to another Server, then it becomes tedious process to change these IP Address in all the file(components) when necessary. So is there any way to generate java file which will take care of these...
like Hash table where it fetch the IP Addresses....
Please some one Elucidate on this issue.
from
yogi

Why not just put the IP address(es) in a configuration file? It's pretty easy to read and write simple properties using the java.util.Properties class.

Similar Messages

  • In SAP Script how to hard code my Company address in footer window

    Hi All ,
    In SAP Script how to hard code my Company address in footer window .
    Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
    Please give me step by step.
    Thanks
    Sridhar

    Hi,
    You can make use of standard text...
    create a standard text in SO10 with your company address
    and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
    In the text editor... goto insert > text> standard
    You get popup give the name of the text name id and language
    regards
    padma

  • Hard code address

    hi sap,
    i am currently modify the existing sap script.
    the requirment is i need give the address window left side where i have to hard code the the address
    i have created the window and given the address as like this
    /E           HEADER_DELADDRESS
    ZL           <H>DELIVER TO:</>
    /:           ADDRESS DELIVERY PARAGRAPH AS
    /:           SHOSHOLOZA MEYL HEAD OFFICE
    /:           SUPPLY CHAIN SERVICES
    /:           BRAAMFONTEIN
    /:           ENDADDRESS
    when i want to test i just looked at the print preview but i dint get the address what would be the problem and why dint get is there any way that i need do other than this
    please tell me as how to create and display the address.
    regards,
    laya.

    Hi,
    Please try this
    /:   ADDRESS PARAGRAPH AS
    /:     TITLE        'Your title name for eg &REGUH-ZANRE&'
    /:     NAME        'Name'
    /:     STREET      'Street Name'
    /:     POBOX      'Postal box'
    /:   ENDADDRESS
    If you want to hard code the address.....you need  not give it within ADDRESS and ENDADDRESS
    You can either use * which is default paragraph format or you can specify some paragraph format like P1
    *STREET NAME
    * TITLE
    * POBOX
    Hope this helps!
    Regards,
    Sandhya
    Edited by: Sandhyap on Jun 24, 2009 12:38 PM
    Edited by: Sandhyap on Jun 24, 2009 12:41 PM

  • Hard-Code address on 1099 Forms (Standard Report)

    Hi All,
    We need to do the Hard-Code address on 1099 Forms (Standard Report) in Payables module.
    Is there any way do this?
    Thanks in advance.
    Thanks,
    Astik Mondal

    It allows only 30 characters of the address.
    Refer 5th question in the Note 110390.1 where they suggested a workaround.
    Regards,
    Srini

  • I'm using TestStand/Labview to do a string value test. Is there any way to use a variable in the edit string value test?? This forces you to hard code a string to test against.

    I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.

    Hi ART,
    You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.
    There should be an example of this in the Resource Library | TestStand
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to hard code values in drop down by index

    Hi everyone
    I hav a node containing 2 attributes ie value n key. I am using drop down by index.  Value attribute is bound to my drop dwn box. In key I am providing key value for the value.  I need to hard code 3 value..Can anyone help me how to do so.
    Thanks
    Jaspreet Kaur

    Hi,
    Example for Data Binding of the DropDownByIndex UI Element:
    Procedure at design time:
           1.      Create a view with the name TestView.
           2.      Insert the DropDownByIndex UI element as a container child of the TestView view. (Step 1)
           3.      Create the context structure, as described in step 2.
    Create the context node X with the cardinality 0..n. Insert the value attribute y of the type String into this node. Then perform the data binding of the DropDownByIndex UI element in the Properties window of the View Designer. The texts property must be bound to the value attribute y with the context path description TestView.X.y (step 3).
    The context path TestView.X.y describes the attribute y in the context node X of the view context of the TestView view.
    You can fill the context with test data using the following controller implementation.
    public void wdDoInit()
        //@@begin wdDoInit()
       String[] letters = new String []
       {"A", "B", "C", "D"};
    //Create context elements for the node "X"
       List nodeElements = new ArrayList();
       for (int i =  0; i <letters.length; ++i)
          IPrivateTestView.IXElement xElement = wdContext.createXElement();
          xElement.setY(letters<i>);
          nodeElements.add(xElement);
    //Bind node element list to the node
       wdContext.nodeX().bind(nodeElements);
    //Set node’s lead selection which determines the selected item
       wdContext.nodeX().setLeadSelection(1);
        //@@end
    Regards
    Ayyapparaj

  • Bold the hard code value in sap-script

    Hi friends,
        Could anyone tell me how to display 1st half of hard code text in bold and 2nd half in unbold of a line of hardcode text ?
    Pls treat it urgent
    I will reward for every useful responses.
    Thx in Adv.
    Bobby

    hi,
    Create a character format for bold using Se72.
    let the charcter format is c1.
    Then call the style as
    /: Style <STYLE NAME>
    then In the editor Write like this
    <c1>Hi How</c1> r u
    it will display Hi How as bold and r u as simple.
    regards
    Sandipan

  • Use printer other than default?  how to hard code it?

    Is it possible to make application to use specific printer but other than default? may be hard code it into application code?
    For example I know the name of print service(the PATH to configured printer) and I want my application to use THAT printer most of the time. how can make it so that my application uses one printer which is other than default..
    printDialog is not a good solutionin in my case I think because user might have 15 printers configured on his machine! and I do not want him to scroll PrintServices combobox looking for needed printer... why not show only 2 or printers out of 15?
    or in my case I think it is even better to hard code couple of configured printers in an application code so that I user does not get tired of working with printDialog window every time he needs to print. When my application is released to client it will be used especially for printing porposes of one particular document so he does not need to see margins and printer settings everytime.

    Basically the print dialog should offer this function without you having to code it. I don't know on Windows but on my Mac you can select printers other than default and get the computer to remember them.

  • In bdc if date format of records is different  do we need to hard code

    in bdc if date format of records is different  do we need to hard code or bdc will support automatically,please provide the answer.

    Make sure to format the date before passing to BDC.
    data: datum(10) type c.
    call function 'CONVERT_DATE_TO_EXTERNAL'
      EXPORTING
        DATE_INTERNAL                  = SY-DATUM
      IMPORTING
        DATE_EXTERNAL                  = datum.
    Regards,
    Rich Heilman

  • How to hard code a records at the end of file

    Hello experts,
    I am doing IDOC to File scenario,I need to append 4 records at the end of file each time it is created in XI(These four records are need to be hardcode in the o/p file) .
    For example with IDOC to File,the o/p file like
    1 name number sal
    2 name number sal
    3 name number sal
    But my expected file is
    1 name number sal
    2 name number sal
    3 name number sal
    1 abc    123   2345676
    2 bdc     234 11111111
    3 aaa     123 11111111
    4 fffff       567 33333333
    Every time these 4 records are common.How can i hard code the last 4 records in XI.
    could u plz help me in this.Thanks in advance.
    Regards,
    KP

    Hi,
    Hope u are doing File Content Conversion in ur receiver adapter.
    Lets assume that u have structure like below
    -Record
      -RecordSet
        X
        Y
        Z
    Add one more Recordset like for Trailer records
    -Record
      -RecordSet
         X
         Y
         Z
      -TrailerRecordSet
         Trailer
    In ur mapping hardcode the Trailer node with the four lines (u can use '\n' char to represent nextlines)
    In ur Receiver communication channel add the TrailerRecordSet also...
    RecordSetStructure:  RecordSet,TrailerRecordSet
    TrailerRecordSet.fieldSeparator -
    '0'
    TrailerRecordSet.endSeparator -
    '0'
    RecordSet Parameters....
    Regards,
    Sudharshan

  • Any SAP standard approach to display the currency symbols without hard code?

    Hi,
    I want to display $ symbol on the report ouput, for the how can we display currency symbols without hard code?
    Thanks,
    Aarti

    Not much chance... If such a standard table exists, then during Euro creation, an OSS note would have been released to add the € character, and I found none, fell free to perform some search on OSS with keywords I didn't try.
    So better build your own customer table with foreign relaction to TCURC.
    NB: Look for symbol list ($, £, €, ¥, etc.) in sites like Currency symbol - Wikipedia, the free encyclopedia. I hope your system is Unicode.
    Regards,
    Raymond

  • How Can i hard code variable at reports in obiee 11g

    Hi
    I created as variable at rpd and using variable i am able to get expected results.
    But i dont want to use variable directly , how can i hard code variable code at report and get same results.
    Can anyone help me on this.
    Thanks

    Not clear what you trying to achieve, try to go thru given info.
    The statement 'select 1 from dual' in init blocks works using connection pool, but the same will not work in report since report understands Presentation Catalog objects.
    In the report your query suppose to be like select 1 from Subject area where someColumn >0
    If helps pls mark

  • How to hard code the values in XI for the synchronous scenario?

    Hi All,
    Actual Scenario : Webservice - XI - Any of the Receiver Adapter(RFC/JDBC) .
    The receiver adapter setup will take some more days to complete. So, time being I would like to hard code the response values in XI according to the webservice request and send the response back to webservice. Is it possible?
    If it is possible, could you please tell me how to go about for this?
    Regards
    Sara

    Hey
    >>So, time being I would like to hard code the response values in XI according to the webservice request
    if ur response is based upon the request,then how can u hard code any value?when u hard code any element.it will always display the hard coded value irrespective of the request.
    in case u want to hard code something which does not depends on response or which will always stay the same in ur scenario,then just use the constant function of message mapping to do that
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • Hard code a value in a characteristic of an Infoset

    Dear BI Experts,
    I need a view (virtual - no data loaded) to show only certain fields out of a Cube. I am trying to create an Infoset bringing in only the cube as a data source (no 2nd data source in the Infoset). In this Infoset I want to hard code a value for one of the fileds, so that I get data relevant for this value.
    Best example would be country grouping. I have a cube which has data for all coutry grouping. I want to now create a view for only Coutry grouping = US.
    How do I hard code in the view(Infoset) to say that show data only for US.
    My ultimate aim is to enable Functional users to create a report in Query designer pulling data from the view created and they do not want to hard code the country grouping = US while crerating the report.
    Could you also recommend any other way of doing this instead of by an Infoset.
    Kindly keep it in mind that we do not want to store this data set in another cube or DSO because this will duplicate data in BI system. We want a virtual view.
    Thank you in advance.
    Sai

    I agree with the other contributor that an Infoset is not the best fit for your requirements.
    In addition to the aforementioned here are the two options I suggest:
    1) You could handle this in BEX Query Designer and setup Pre-Queries (replacement path queries) for each "hard coded" value. http://help.sap.com/saphelp_sem40bw/helpdata/EN/2c/78a03c1178ad2ce10000000a114084/frameset.htm
    2) You can set up Virtual Infocubes with Services (Virtual Provider). This involves setting up the Virtual Infocube directly with the original data source and creating custom restrictions for your data. There is however there is more involved in setting it up.
    http://help.sap.com/saphelp_sem40bw/helpdata/en/62/d2e26b696b11d5b2f50050da4c74dc/frameset.htm

  • Hard code username & password for system

    Hi All,
      I'm using this piece of code to connect to the back-end via a defined system (with alias='CN')
    try {
         con = cgservice.getConnection("CN", cp);
         catch (Exception e)
                      e.printStackTrace();
    Is there a way I can hard code the username and password in this code instead of doing user-mapping on the portal?
    Please help..urgent!
    Thanks

    Hi D.V.,
    If you want all the users to connect using the same credentials, the 'correct' way would be to create one user mapping to the group 'everyone', and not hardcode the username and password.
    You can also use a specific user instead of the logged on one when creating the ConnectionProperties.
    To get an authenticated user see:
    /thread/62774 [original link is broken]
    and:
    user.isAuthenticated() returns "False"
    These are your options using JCA.
    There are also ways to connect to the system using explicit credentials, which depends on the system type (SAP - use JCO, JDBC - use java.sql.DriverManager).
    Hope that helps,
    Yoav.

Maybe you are looking for

  • UI command not working

    Hi, I have created a uicommand following the steps of the diferent documentation found in the SDN (One-Step-Screenflow), but I still don't know how to make it work. If I create a UICommand extending AbstracCommand, seems to work well until I try to u

  • What exactly is Airport Express and AirTunes?

    Sounds like a system to send music wirelessly to any HiFi... Is that right and how does it work/what do I need? Would an audiophile be satisfied with the quality of sound? i.e. is this something that would be out of place on a high end audio system o

  • Firefox freezes for 5-10 seconds after starting

    Firefox takes a long time to start when launched,after launching it freezes(not responding) for 5-10 seconds and then starts functioning normally. I've tried uninstalling and reinstalling but it doesn't have any effect. please suggest a solution, Tha

  • Desktop & Safari Preferences Not Saved

    I just upgraded to an iMac G5. The original system was Tiger 10.4, so I used Software Update to upgrade to 10.4.3. Now I have several problems: Safari home page doesn't save my preference but reverts to Apple Desktop appearance preferences don't save

  • Line number of method

    Hi, How can I find the list of method in class and the line number of each method or for specific method what is the line number? Thanks