How to save SM59 RFC entries during system refreshes

Hello,
I will be refreshing our NW04 ERP and SRM QA systems.   Our platform is Oracle/Unix.
My question is how to export the SM59 RFC entries before the refresh, so I can reimport them after the refresh.   I have done this successfully in R/3 4.6c, but cannot get it to work in NW04.
During the last refresh, I manually created transports and added the three standard objects, but after reimporting the transport in the newly refreshed system, I found that the RFC's were not restored.
Any help would be greatly appreciated!
Thank You,
Joyce

Hello Joyce,
I've created an RFC destination in a NW04 system while making a SQL trace.
It did
a DELETE in table RSECACTB
an UPDATE in table RFCDES
an UPDATE in table RSECTAB
an INSERT in table RFCDES
an UPDATE in table ATAB
an INSERT in table RFCATTRIB
a  DELETE in RSECTAB
an INSERT in RSECTAB
an INSERT in RSESCACTB
an INSERT in ATAB
I think that the data model is much more complicated in NW04 than in R/3 4.6 and creating manually a transport is a challenge that I would not try !
Regards,
Olivier

Similar Messages

  • Export partner profiles and SM59 Entries before system refresh

    Hello All,
    How to Export partner profiles and SM59 Entries before system refresh in Netweaver
    thanks
    Shyam

    In  SDN search  with name RFC export ..you will get so many answers ..
    Once again please find the below prcoess for RFC export/import during system refresh.
    RFC Export --
    go to trans dir.. and then create .ctl file as below
    #cd /usr/sap/trans/bin
    #vi export_rfc_<sid>_<date>.ctl
    #Please create the data file as u201Cexport_<SID>_rfc_<Date>.datu201D
    Export
    Client=<XXX>
    file '/usr/sap/trans/data/export_<SID>_rfc_<Date>.datu2019
    delete from rfcattrib
    select * from rfcattrib
    delete from rfcdes
    select * from rfcdes
    delete from rfcdoc
    select * from rfcdoc
    delete from rzllitab
    select * from rzllitab
    delete from ZTCA_USER_LANG
    select * from ZTCA_USER_LANG
    delete from rfcsysacl
    select * from rfcsysacl
    delete from rzllitab
    select * from rzllitab
    #After that excute export command as below.
    R3trans u2013w <export_rfc_<targetSID>_date.log> export_rfc_<targetSID>_date.ctl>
    (Format is: R3trans u2013w <logfile> <controlfile>)
    Export is finished....
    Import
    Example:
    #cd /usr/sap/trans/bin
    #vi import_rfc_pta_11042004.ctl
    #Please enter the exported RFC data file in the import control as follows:
    import
    file '/usr/sap/trans/data/export_pta_rfc_11042004.dat'
    (Enter the file name, which is created during the export process)
    Regards,
    Srinivas Chapa.

  • How to trigger sender rfc from r3 system

    Hi experts,
    can any body send  documents about " how to trigger sender rfc from r3 system"
    regards
    sandeep.

    HI Sandeep,
    To send RFC data on timely basis you can schedule the programs.
    In Partner Profile use setting collect program. Use program RSEOUT00 to send data at particular time.
    You can schedule the report RSEOUT00 according to your requirements. So it flushes all the idocs in the background as per your schedule this program.
    Plese refer the below thread, it will help you.
    Re: Triggering Idocs from sender  side
    Idoc triggering from a transaction
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • How to call the RFC from XI system

    Dear Friends,
        My requirement is RFC to RFC scenario      i.e SAP to XI to Third party system.
    I have the BAPI_EUQI_CREATE rfc, this RFC is available in ECCsystem, that RFC I imported in XI system, so third party system how to call this RFC.
    please give me the suggestion it is very helpful.
    Regards,
    Shalini Shah

    Hi Shalini,
    You have create a RFC in the 3rd party system and import that RFC in XI System using 3rd party adapter.Do the necessary mapping and configure the sender RFC Adapter and at receiver side configure 3rd paty Adapter.
    The 3rd party adapters must be installed via Deploy Tool or JSPM. But u should have a sda file with the adpater content.
    see here for more details on JSPM
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5006901f-925c-2910-5f98-9ae26cc07eca
    For more info:
    If you still want to do it,
    1. Import the RFCs of sender and of receiver.
    2. Do the necessary mapping.
    3. Configure sender and receiver RFC adapters.
    Before that check if you have RFC destination for the RFC adapter. If not You should establish it. To establish an RFC destination for the RFC adapter.
    1. Call the transaction Display and Maintain RFC Destinations (SM59).
    2. Select an existing RFC destination of type ABAP Connections (for example, ABAP_Old) by double-clicking it.
    3. Choose Destination ® Copy and copy the RFC destination using a new name (for example, ABAP_New).
    4. Save the new RFC destination (ABAP_New) and delete the old RFC destination (ABAP_Old).
    5. Create a new RFC destination (for example, RFC_Adapter) of type T (TCP/IP connection) as the RFC destination for the RFC adapter.
    6. Select the registration type Registered Server Program and in the Program ID field enter the corresponding program ID from the configuration of the sender RFC adapter.
    7. In the Gateway host and Gateway service fields, enter the gateway host and gateway service from the configuration of the sender RFC adapter.
    8. If the sender system is a Unicode system, define the RFC destination as Unicode.
    9. Using the name of the old ABAP connection (ABAP_Old), create a new RFC destination of type L (logical destination with reference entry).
    10. In the Reference Entry field enter the RFC destination (RFC_Adapter) for the RFC adapter.
    For more details take a look at this link. http://help.sap.com/saphelp_nw70/helpdata/en/25/76cd3bae738826e10000000a11402f/content.htm
    Dont forget to Reward points if this helps
    Regards
    Pragathi.
    Edited by: Pragathi on May 24, 2008 7:21 AM

  • How to Use synchronous RFC calls during test run for remote accesses

    there is a Setting for the usage of RFC accesses from a tested system
    using eCATT.
    'X' - Use asynchronous RFC calls during test run for remote accesses
    ' ' - Use synchronous RFC calls during test run for remote accesses
    I developed an eCATT as following :
      SAPGUI ( SAPGUI_1 , Target_system_1 ).
      SAPGUI ( SAPGUI_2 , Target_system_2 ).
    My question is how to run the eCATT in a synchronous RFC calls
    PS: I do not want to change the Target_system to the same one in the
    above script of ecatt.Because I need to run it in 2 different Target
    systems sometime.
    for example, I give a Target_system_3 when run this eCATT
    I want the SAPGUI_1 and SAPGUI_2 run the Target_system_3 but not the
    Target_system_1 or Target_system_2 .
    Could you please tell me how to make it without the changes in script?
    Edited by: Weitong Liu on Mar 24, 2011 9:44 AM

    Hi Liu,
    Weitong Liu wrote:
    > ' ' - Use synchronous RFC calls during test run for remote accesses
    This is the standard option value. Asynchronous are not the standard way and used only for very special purposes.
    Weitong Liu wrote:
    > I developed an eCATT as following :
    >   SAPGUI ( SAPGUI_1 , Target_system_1 ).
    >   SAPGUI ( SAPGUI_2 , Target_system_2 ).
    > My question is how to run the eCATT in a synchronous RFC calls
    The commands will be executed in sequence. So each call will be synchronously replayed against TS1 and TS2.
    What is you issue with this standard procedure?
    Kind regards,
    Christoph

  • How to save multiple new entries in one shot?

    Hi,
    I am working on a pretty complex Create form. So apart from the standard form fields to allow user to enter the data, one of the sections in this form is a table which allows user to create multiple entries for this entity. And when hitting the "Save" button in this form, it will save all the data plus the multiple entries defined in this table.
    Is it possible to create multiple new entries in a table, and then save all of the new entries at the end? My experience so far is only create and save one new entry at a time.
    Any sample?
    Please advise.
    Thanks.
    -Mina

    Yes, I am using ADF BC.
    Let me explain more in details of the scenario:
    I have a table with "Create New" and "Save" button. The "Create New" button's ActionListener is set to "#{bindings.CreateInsert.execute}", and the "Save" button's ActionListener is set to "#{bindings.Commit.execute}".
    When the "Create New" button is hit, a new row shows up in the table to allow entering data inline. When the "Save" button is hit, it got committed. I would like to allow user to create multiple rows before committing. But currently, after I hit "Create New" button, then enter data, then hit "Create New" button again without committing, it gives error.
    Since this table is part of a form with other fields, I would like to save/commit it until everything in the form are completed, including creating multiple rows in the table.
    Any ideas how to achieve this?
    Any comments are appreciated.
    Thanks.
    -Mina

  • How to save a file into file system from database?

    Hi!
    I am using AppEx 2.2.1.I have created a report showing the filename and id of a table. The table has a blob column containing the file.I want to hyperlink filename, so that I can go ahead and save it into my file system. But I don't know what to give in the URL field of the filename column attributes. How to get the file id of a file already in the database to link it and use? Any ideas please.
    Regards,
    Deepa.

    This is a reference for the file download:
    http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CJAHDJDA
    I have a demo page showing this as well:
    http://htmldb.oracle.com/pls/otn/f?p=31517:15
    Denes Kubicek

  • How to remove duplicate server entries in System Landscape

    Hi there, in our SSM 4.0 system landscape (SMSY), there are duplicate server entries (one in lowercase, the other in uppercase). How do you remove the duplicate entries, as whenever you try to delete, say, the uppercase server entry, the system tells you that it is being used in a solution etc? Thus, even though the server entries are in different cases, it still views them as the same server entry, and you cannot delete one or the other.

    Hello Bernardt,
    In smsy there is an icon "Where is used".
    I suppose you speak about a server that has been created in lowercase and again in uppercase. Until you don´t "clean" logical component, project, solution you are not going to be able to delete the entry.
    At least usually I follow this path. I don´t think there is a most "automatic" way, but who knows
    Best regards,
    Dolores

  • Changing OPS$ passwd during system refresh

    Hi All,
    i have to do system Refresh/system copy ,i m using oracle 10g database.
    while studying the docs and sap notes,i found that after database is backed from source system and restored in target system
    .It is also required to change some passwords for OPS$ or SAP<Schema> user in table "sapuser" at OS level.
    I am totally unaware of any such activity.can someone help me in this regard,as what are the post steps after DB is restored in target system and to how to perform them.
    We are using brtools here.
    Also what is the command line for restroring DB while system copy.
    Regards,
    Vishesh S

    *Hi,*
    *1.*
    *can someone help me in this regard,as what are the post steps after DB is restored in target system and to how to perform them.*
    After doing DB restore, one has to
    a. Apply the Control files of source system database
    b. Perform DB recovery by applying available offline redo log files (based on Complete DB recovery or Point-in-time DB recovery).
    c. Then after successful DB recovery, one has to OPEN the database with RESETLOGS options.
    d. Upon successful Database instance startup, Start Target SAP system
    *2.*
    *what is the command line for restroring DB while system copy.*
    brrestore -b logfilename -m full
    e.g. brrestore -b bcnmhluz.aft -m full
    *3.*
    a) Logon using the OPS$ user ("connect /@<sid>") to determine the
    sapr3 password that is stored in the database table SAPUSER.
    Now i have no idea,that how to check the password,as i logged in using "connect /",it just got connected.
    But how will i know that what password has been set.
    In OPS$ connection mechanism, only the existence of ops$<sid>adm user requires. Under <sid>adm OS user if you execute "connect /" in SQLPLUS, then it will get connected with Database through ops$<sid>adm database user, without asking for password.
    During OPS$ connection mechanism, the SAP work processes get connected to Database using this OPS$ user. Then as a next step,  the password of Schema user (SAPSR3 or SAP<SID>) is read from the SAPUSER table from database, and then with that password od schema owner , the R/3 work processes actually get connected with Database Instance schema. So the SAPSR3 password should be same at Oracle DDIC and SAPUSER table levels.
    If you do not know the password of SAPSR3 or SAP<SID> database users, you can change them with br*tools or by the execution of the following brconnect command.
    brconnect -f chpass -o [sapr3 | sap<sid> | sap<xyz> | sapsr3] -p <new_password>
    (Refer SAP Notes 562863, 361641 as reference)
    *4.*
    *after doing a system copy/refresh, what changes i have to perform in OPS$ user.*
    If your getting with OPS$ user issue while SAP startup or R3trans -d execution, then you can refer SAP note 40024 or do the following .
    a.
    Check weather the correct OPS$<SID>ADM user exists at DB level or not ?
    SELECT * FROM DBA_USERS;
    b. If the required OPS$ user does not exist in Target DB....
    CREATE USER "OPS$<SID>ADM" DEFAULT TABLESPACE <user_tsp>  TEMPORARY TABLESPACE PSAPTEMP IDENTIFIED EXTERNALLY;
    c. Grant roles/previleges to OPS$ user
    grant sapdba to ops$<SID>ADM;
    d. check the existence of SAPUSER table and the owner of SAPUSER table in target DB
    SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
    e. If the owner of SAPUSER table is not OPS$<SID>ADM, then u need to drop it and recreate it in Database.
    -- DROP TABLE "<owner>".SAPUSER;
    -- CREATE TABLE "OPS$<SID>ADM".SAPUSER  (USERID VARCHAR2(256), PASSWD VARCHAR2(256));
    --INSERT INTO "OPS$<sid>ADM".SAPUSER VALUES ('<sapowner>', '<password>');
    f.
    Execute R3trans -d under <sid>adm OS level user and verify its return code. Also check trans.log file
    5.
    what is the middle step between db recovery and starting the system.
    middle steps can be
    a.  to OPEN Database with RESETLOGS or NORESETLOGS option and restart the DB instance.
    b. create OPS$ Database user according to new SID and new <SID>ADM OS user
    I hope the above information will be helpful to provide you possible understanding.
    Regards,
    Bhavik G. Shroff

  • How to handle the CRM Middleware after system refresh?

    Guys,
    We are using CRM 5.0 & R/3 4.6C. We have the middleware configured and set up. We finished all inital loads & delta loads are activated as well. The system works perfectly.
    Now for some reason the client wants to refresh the R/3 system. (Basically they are copying over the R/3 Dev system to refresh the R/3 Sandbox system. Our connection is currently between the 2 sand box systems) What impact will this have on the CRM system? Will it cause mass delta downloads? I have already referred to notes 588701 & 765018. Any additional information or watch outs will be appreciated.
    Secondly what's the best practice do a refresh in the future? Is there a SAP recomendation on how to go about with system refresh when CRM & R/3 are connected?
    ARP

    Hello ARP,
    as always: It depends what to do:
    a) do you have a CRM DEV System available? If possible you should get the connection working over there and then do a Landscape Copy of the R/3 DEV + CRM DEV to the Sandbox Landscape.
    b) Let them copy the R/3 DEV to the R/3 Sandbox. Then use the Data Integrety Manager (Transaction SDIMA) to get the missing Customers, Transactions exchanged.
    In the future they normally have to do a Landscape Copy.
    Regards
    Gregor

  • Transports backup during system refresh

    I have a requirement to take the backup of transports from QA system which are not yet imported into PRD as QA is getting refreshed.  After refresh, I would like to add these transports into queue and import them in sequence.
    Now I can get the list of transports not imported into PRD from "transports waiting to be imported" from PRD system.  But I am unable to get in which sequence should these be imported into QA.  Last time I did but it went in the wrong order and programs got overwritten in QA as I tried to do it by the time/date sequence.
    I wish to know if anyone following the better procedure to take the transports backup in QA during the refresh process.

    Hi Sameer,
    2 things: Either these TRws are being imported for the first time, OR, you are concerned about the repeat import.
    1.
    Usually, the order of import is the same as order of release of the TR from development. However, there may be exceptions in some cases.
    But why are you being worried about the order of the transports? The developers should have a look at the list and tell you the order in which they are to be imported. See, only they would know which request contains which versions of the objects and only they can tell you what goes in and in what order.
    Being from Basis (I hope you are from basis only) you have no way of knowing the correct sequence in such a case. Basis never decides order of TRs.
    2.
    But, if you mean these were imported once in Q but after refresh you want the same order, then you should have gone to the transport history for the system in STMS and from there, you should have seen and saved the order of the original imports.
    Regards,
    Shitij

  • How to save a file in client system?

    I have a requiremnet like this:
    "When the user selects a file from his local drive (say c:\), I have to upload the file to a LAN connected to his machine."
    I have written the TestUpload class like below. It will work if my server is on the same machine. But, how can i do this if it is Unix Server?
    I was trying to do this for 2-3 days. Please help.
    protected void doGet(
    HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    HttpSession session = null;
    UploadListener listener = null;
    long contentLength = 0;
    System.out.println("I am inside doGet");
    if (
    ((session = request.getSession()) == null) ||
    listener =
    (UploadListener) session.getAttribute("LISTENER")
    ) == null
    ) || ((contentLength = listener.getContentLength()) < 1)) {
    out.write("");
    out.close();
    return;
    response.setContentType("text/html");
    long percentComplite =
    ((100 * listener.getBytesRead()) / contentLength);
    out.print(percentComplite);
    out.close();
    protected void doPost(
    HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    // create file upload factory and upload servlet
    FileItemFactory factory = new DiskFileItemFactory();
    ServletFileUpload upload = new ServletFileUpload(factory);
    // set file upload progress listener
    UploadListener listener = new UploadListener();
    HttpSession session = request.getSession();
    session.setAttribute("LISTENER", listener);
    // upload servlet allows to set upload listener
    upload.setProgressListener(listener);
    List items = null;
    FileItem fileItem = null;
    String filename = null;
    String fileName = null;
    String directory = null;
    String version = null;
    String fullPath = null;
    String extension = null;
    String folderName = null;
    try {
    // iterate over all uploaded files
    items = upload.parseRequest(request);
    for (Iterator i = items.iterator(); i.hasNext();) {
    fileItem = (FileItem) i.next();
    System.out.println("New file Item::: " + fileItem.getName());
    if (
    (fileItem.getName() != null) &&
    !fileItem.getName()
    .trim()
    .equals("")) {
    fullPath = fileItem.getName();
    extension = fullPath.substring(fullPath.lastIndexOf("."));
    directory = "\\\\MyLAN\\";
    fileName =
    fullPath.substring(
    fullPath.lastIndexOf("\\") + 1,
    fullPath.lastIndexOf("."));
    folderName = getFolderName(directory, fileName, extension);
    version =
    getVersionNumber(
    directory + folderName, fileName, extension);
    String strFilePath =
    directory + folderName + fileName + version +
    extension;
    System.out.println("path:: " + strFilePath);
              //Creating the destination File object.
    File file = new File(strFilePath);
    if (!fileItem.isFormField()) {
    if (fileItem.getSize() > 0) {
    // code that handle uploaded fileItem
    // don't forget to delete uploaded files after you done with them! Use fileItem.delete();
    fileItem.write(file);
    fileItem.delete();
                                       System.out.println("upload successful");
    // indicate that the upload was successfull
    writeLog(
    directory + folderName + "log.txt",
    now() + " ::: " + "Uploaded the version number:: " + version);
    response.getWriter()
    .write("upload successful");
    } catch (FileUploadException e) {
    response.getWriter()
    .write(e.getMessage());
    e.printStackTrace();
    } catch (Exception e) {
    response.getWriter()
    .write(e.getMessage());
    e.printStackTrace();
    } finally {
    session.removeAttribute("LISTENER");
    public String getFolderName(
    String directory, String fileName, String extension) {
    File dir = new File(directory);
    boolean folderFound = false;
    String foldername = null;
    String logFileName = "";
    File getFolderNames[] = dir.listFiles();
    for (int i = 0; i < getFolderNames.length; i++) {
    foldername = getFolderNames.getName();
    if (foldername.equalsIgnoreCase(fileName)) {
    folderFound = true;
    break;
    if (!folderFound) {
    File f = new File(directory + fileName);
    f.mkdir();
    f = new File(directory + fileName + "/log.txt");
    try {
    f.createNewFile();
    } catch (IOException e) {
    e.printStackTrace();
    logFileName = directory + fileName + "/log.txt";
    writeLog(logFileName, "***********************************");
    writeLog(logFileName, "Log for the file " + fileName);
    writeLog(logFileName, "***********************************\n\n");
    writeLog(logFileName, now() + " ::: " + "Created");
    return fileName + "\\";
    public String getVersionNumber(
    String directory, String fileName, String extension) {
    File dir = new File(directory);
    boolean fileFound = false;
    int version = 0;
    File getFolderNames[] = dir.listFiles();
    version = getFolderNames.length;
    return "_" + version;
    public void writeLog(String fileName, String text) {
    try {
    Writer output = null;
    File file = new File(fileName);
    output = new BufferedWriter(new FileWriter(fileName, true));
    output.write(text + "\n");
    output.close();
    System.out.println("Log file has been written");
    } catch (IOException e1) {
    e1.printStackTrace();
    Edited by: AnishThomas on Mar 12, 2008 10:52 PM

    Thanks for your reply!!!
    jwenting wrote:
    no, your code is NOT correct.
    It doesn't "upload" anything, as I stated before.It is working perfectly fine if the destination folder is connected to the server machine (which is not the case now).
    >
    Look into multipart MIME requests, Jakarta Commons File Upload, and things like that to actually upload files to a server instead of insisting on reading them directly from the client's filesystem in your servlet and wondering why that doesn't work if the servlet container is running on a different computer from the client.I AM using Jakarta Commons File Upload. The problem is when I try to access the destination folder(which is in client machine), it can't find as it is searching for the corresponding folder in the server.
    >
    Unless and until you do that, you're wasting our time and your own.I thought someone could help me i giving me some pointers which I missed. Thanks again!!
    Edited by: AnishThomas on Mar 14, 2008 8:13 AM

  • Getting RFC error After system Refresh

    HI Gurus,
    Recently our SRM  QA client was refreshed from Prod and all the RFC connections are pointing to R/3 Production client instead of R/3 QA Client. Because of this reason we are unable to replicate the Product ID's from R/3 to SRM. Also all the attribute values are showing the source sustem as Producion instead of QA R/3.
    We have verified the following and everything looks good.
    1. Table CRMMLSGUID - R/3 logical system as QA R/3.
    2.We ran the report RHOMATTRIBUTES_REPLACE  for the attribute SYS but.no update.
    3.SPRO u2192 Supplier Relationship Management u2192 SRM Server u2192 Technical Basic Settings u2192 ALE Settings (Logical System) u2192 Distribution (ALE) u2192 Basic Settings u2192 Logical Systems u2192 Define Logical System.
    4.SPRO -->Supplier Relationship Management -->SRM Server ->Technical Basic Settings ->Technical Basic Settings.
    5. SPRO ->Supplier Relationship Management -->SRM Server ->Technical Basic Settings ->Define Backend System for Product Category.
    Your response is highly appreciated.
    Thanks,
    Sada.

    Hi,
    After refresh to QA, there may be refresh fpr RFC users.
    Please check
    a)RFC Users with Pwd are exists , if not create new.
    b) Maintain those users /pwd/client in SM59.
    Hope this will work for it.
    Rahul Mandale

  • How to save routing entries permanently after route add

    Hi guys,
    I have added routing entries through route add command. I know i can add routing entries permanently thru -p option in route add command but didin't use that option. How to save those routing entries now?
    Thanks...

    The filename you are looking for is /etc/inet/static_routes which is available only on Solaris 10 update 3 or later:
    root_sol10u3# route -p add -net 192.168.138.0/24 192.168.136.1
    root_sol10u3# cat /etc/inet/static_routes
    # File generated by route(1M) - do not edit.
    -net 192.168.128.0/22 192.168.136.1
    -net 192.168.138.0/24 192.168.136.1
    -net 172.31.68.0/24 192.168.149.253
    -net 172.31.69.0/24 192.168.149.253
    root_sol10u3#For Solaris 10 update 2 or earlier, persistent static routes are not implemented. Additionally, the old RC script method suggested above also will not work for Solaris 10 given the host isn't always guaranteed to reach the "multiuser" milestone and subsequently run the legacy /etc/rc*/S* scripts (say if a filesystem fails to mount). For those releases, you should create a new manifest file as follows:
    root_sol10u2# cat /var/svc/manifest/network/RKstatic-routes.xml
    <?xml version="1.0"?>
    <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
    <!--
            Static Route SMF Manefest
            To be replaced by official Sun mechanism in next solaris release
    -->
    <service_bundle type='manifest' name='RKstatic-routes'>
    <service
      name='network/RKstatic-routes'
      type='service'
      version='1'>
        <create_default_instance enabled='true' />
        <single_instance/>
        <dependency name='network'
            grouping='require_any'
            restart_on='error'
            type='service'>
                <service_fmri value='svc:/network/service' />
        </dependency>
      <exec_method
        type='method'
        name='start'
        exec='/lib/svc/method/RKstatic-routes start'
        timeout_seconds='60' />
      <exec_method
        type='method'
        name='stop'
        exec='/lib/svc/method/RKstatic-routes stop'
        timeout_seconds='60' />
      <property_group name='startd' type='framework'>
        <propval name='duration' type='astring' value='transient' />
      </property_group>
      <stability value='Unstable' />
    </service>
    </service_bundle>
    root_sol10u2#Then create the method script:
    root_sol10u2# cat /lib/svc/method/RKstatic-routes
    #!/bin/sh
    # RKstatic-routes
    # To be called by the network/RKstatic-route SMF service
    ACTION=${ACTION:-add}
    setup_routes () {
    #Route to networks.
    /usr/sbin/route $ACTION net 172.1.0.0 -netmask 255.255.0.0 10.1.0.0
    /usr/sbin/route $ACTION net 172.2.0.0 -netmask 255.255.0.0 10.2.0.0
    case "$1" in
        start)
            echo "${ACTION}ing static routes"
            setup_routes
        stop)
            ACTION=delete
            echo "${ACTION}ing static routes"
            setup_routes
            echo "Usage: $0 {start|stop}"
            exit 1
    esac
    root_sol10u2#Then, import and enable/start the service:
    root_sol10u2# svccfg -v import /var/svc/manifest/network/RKstatic-routes.xml
    root_sol10u2# svcadm enable network/RKstatic-routes
    root_sol10u2# To stop:
    root_sol10u2# svcadm disable network/RKstatic-routes
    root_sol10u2# For posterity, here is a pre-Solaris 10 version:
    root_sol9# cat /etc/init.d/staticRoutes.sh
    #!/bin/sh
    case "$1" in
            start)
                    test -f /etc/routes.conf || exit 0
                    while read type route gateway
                    do
                            /usr/sbin/route add $type $route $gateway
                    done < /etc/routes.conf
            stop)
                    test -f /etc/routes.conf || exit 0
                    while read type route gateway
                    do
                            /usr/sbin/route delete $type $route $gateway
                    done < /etc/routes.conf
                    echo "Usage: /etc/init.d/routes { start | stop }"
    esac
    root_sol9# cat /etc/routes.conf
    172.1.2.0/24 172.1.2.4
    172.1.3.0/24 172.1.3.4
    root_sol9# ln -s /etc/rc2.d/S70staticRoutes /etc/init.d/staticRoutes.sh
    root_sol9#Best Regards,
    Bryan Wood

  • How to debug a RFC function  when the user is non-dialog type? Please help!

    hi Experts,
      I am calling a RFC FM residing in B from R/3 system A.
    R/3 A -
    Call FM residing in B----
    > R/3 B
    The user attached to the remote destination is a non-dialog type.
    I cannot change the user type of this user.
    Therefore how to debug the RFC FM in System A?
    Are there any alternatives?
    Please help
    Thanks
    Gopal

    in your RFC FM, code an endlees loop.
    something like:
    data: gv_x  type xfeld value 'X'.
    do.
      if gv_x = space.
        exit.
      endif.
    enddo.
    now you can catch the mode in TA SM50, go in it, change gv_x to space and debug what is coming further.

Maybe you are looking for

  • Open a new session

    hello all! I need to open a new session on a button click. How shoudl I do it? Puru

  • Macbook Air with Snow Leopard is freezing

    I have a first gen, fully updated, Macbook Air currently running Snow Leopard. Every once in a while, my computer completely freezes. No pinwheel, just a freeze. I can see the cursor, but I can't move it. It happens every few minutes and the freezes

  • Geforce 7800 gtx power plug?

    im getting a geforce 7800 gtx and it comes with i guess its a power cord where do i plug it into my late 05 dual core 2.0 g5? i know the card goes into the pcie slot but what about the little cord so it gets it power? thanks roger

  • Ipod goes into recovery mode every time I plug it in

    Just bought a new iPod classic, 160gb. I plugged it in for the first time to sync it with my laptop and get some music on it. The next time I plugged it in, iTunes gave me an error message saying it couldn't read the contents of my iPod, and that it

  • Canvas problem while adding forms

    I use Netbeans Visual Midlets. I use keypressed class and I added buttons at my Canvas class succesfully. But I am not able to add stringfields or images at canvas class. If I insert images,stringfields and choicefields at getform() class then I can