From Sap to Remote Unix Server

Hi,
I have to send a file from an internal table to a remote unix server. i have tried a lot appling FTP with a put command but its still not getting transported.
please help me out.and also tell me wheather i can use some other way to do this.
also tell me wheather there are some issues of authorisation in this....
please help me as early as possible.. i am in a real need.. i promise to revert back with points...

I HAVE TO SEND A FILE FROM OUR SAP TO REMOTE UNIX SERVER.
FOR THIS PURPOSE I AM USING FTP, BUT STILL I AM NOT ABLE TO DO THAT..
PLEASE HELP ME OUT ON THIS..
BELOW I AM GIVING MY CODE PLEASE HAVE A LOOK AT IT AND TELL ME WHATS WRONG.
REPORT ZIZSFPB001 .
TABLES : ZISFP03.
CONSTANTS: C_DELIMETER(1)  TYPE C
                          VALUE '#'.
TYPES: BEGIN OF TY_FREIGHT,
                VENDOR      TYPE ZISFP03-VENDOR,
                LR_NO       TYPE ZISFP03-LR_NO,
                EBELN       TYPE ZISFP03-EBELN,
                LR_DATE     TYPE ZISFP03-LR_DATE,
                PO_DATE     TYPE ZISFP03-PO_DATE,
                PO_BRANCH   TYPE ZISFP03-PO_BRANCH,
                TRK_NO      TYPE ZISFP03-TRK_NO,
                DISP_TIME   TYPE ZISFP03-DISP_TIME,
                SCAN_NO     TYPE ZISFP03-SCAN_NO,
                ACTU_QTY    TYPE ZISFP04-ACTU_QTY,
                MATERIAL    TYPE ZISFP04-MATERIAL,
                GR_BRANCH   TYPE ZISFP04-GR_BRANCH,
                STDTIME     TYPE ZISFP14-STDTIME,
                EST_ARRV_DT TYPE ZISFP04-ARRV_DT,
       END   OF TY_FREIGHT.
TYPES: BEGIN OF TY_FTP,
                FIELD(90) TYPE C,
       END   OF TY_FTP.
DATA: IT_FREIGHT TYPE STANDARD TABLE OF TY_FREIGHT,
      IT_OUTPUT  TYPE STANDARD TABLE OF TY_FREIGHT,
      IT_FTP     TYPE STANDARD TABLE OF TY_FTP.
DATA : BEGIN OF TABL OCCURS 0,
       LINE(560),
       END OF TABL.
DATA: WA_FREIGHT TYPE TY_FREIGHT,
      WA_OUTPUT  TYPE TY_FREIGHT,
      WA_FTP     TYPE TY_FTP.
DATA: W_DSN             TYPE SXPGCOLIST-PARAMETERS,
      W_FTP_DSN         TYPE SXPGCOLIST-PARAMETERS,
      W_PARCOM_LOC(150) TYPE C,
      W_FNAME(16)       TYPE C,
      W_ERROR_FLAG(1)   TYPE C.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_LR_DT FOR ZISFP03-LR_DATE.
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
  PERFORM GET_DATA.
  PERFORM TRANSFER_DATA_TO_FILE.
  PERFORM FTP_TRANSFER.
*&      Form  GET_DATA
      text
FORM GET_DATA.
  SELECT A~VENDOR
         A~LR_NO
         A~EBELN
         A~LR_DATE
         A~PO_DATE
         A~PO_BRANCH
         A~TRK_NO
         A~DISP_TIME
         A~SCAN_NO
         B~ACTU_QTY
         B~MATERIAL
         B~GR_BRANCH
         C~STDTIME
    INTO TABLE IT_FREIGHT
    FROM ( ( ZISFP03 AS A
   INNER JOIN ZISFP04 AS B
      ON AVENDOR = BVENDOR
     AND ALR_NO = BLR_NO
     AND AEBELN = BEBELN )
   INNER JOIN ZISFP14 AS C
      ON AVENDOR = CVENDOR
     AND APO_BRANCH = CFROM_LOC
     AND BGR_BRANCH = CTO_LOC
     AND AZMODE = CEXPRES_TY )
   WHERE A~LR_DATE IN S_LR_DT.
  IF SY-SUBRC EQ 0.
    SORT IT_FREIGHT BY VENDOR LR_NO EBELN.
    DELETE ADJACENT DUPLICATES FROM IT_FREIGHT.
  ENDIF.
IT_OUTPUT[] = IT_FREIGHT[].
ENDFORM.                    " GET_DATA
*&      Form  TRANSFER_DATA_TO_FILE
      text
FORM TRANSFER_DATA_TO_FILE.
  MOVE 'createnew.txt' TO W_FNAME.
  CONCATENATE '/usr/sap/trans/mmpp/' W_FNAME INTO W_DSN.
  OPEN DATASET W_DSN FOR OUTPUT IN TEXT MODE.
  IF SY-SUBRC NE 0.
    WRITE : 'File open error occured.'.
    STOP.
  ENDIF.
  LOOP AT IT_OUTPUT INTO WA_OUTPUT.
    TRANSFER WA_OUTPUT TO W_DSN.
    CLEAR WA_OUTPUT.
  ENDLOOP.
  IF SY-SUBRC NE 0.
    WRITE : 'File write error occured.'.
    EXIT.
  ENDIF.
  CLOSE DATASET W_DSN.
ENDFORM.                    " TRANSFER_DATA_TO_FILE
*&      Form  FTP_TRANSFER
      text
FORM FTP_TRANSFER.
  PERFORM BUILD_FTP_FILE.
  PERFORM TRANSFER_FTP_FILE.
ENDFORM.                    " FTP_TRANSFER
*&      Form  BUILD_FTP_FILE
      text
FORM BUILD_FTP_FILE.
  W_FTP_DSN  =  '/usr/sap/trans/mmpp/createcheck.txt'.
  CONCATENATE 'open'
              'www.info.com'
         INTO WA_FTP-FIELD
    SEPARATED BY SPACE.
  APPEND WA_FTP TO IT_FTP.
  CLEAR WA_FTP.
  CONCATENATE 'user'
              'myusername'
              'mypassword'
         INTO WA_FTP-FIELD
    SEPARATED BY SPACE.
  APPEND WA_FTP TO IT_FTP.
  CLEAR WA_FTP.
  CONCATENATE 'cd'
'/oracle01/oracle/product/iSuites/Apache/Apache/htdocs/etrans/user/upload/'
INTO WA_FTP-FIELD separated by space.
  APPEND WA_FTP TO IT_FTP.
  CLEAR WA_FTP.
MOVE 'put /usr/sap/trans/mmpp/createnew.txt' TO WA_FTP-FIELD.
  APPEND WA_FTP TO IT_FTP.
  CLEAR WA_FTP.
  MOVE 'close' TO WA_FTP-FIELD.
  APPEND WA_FTP TO IT_FTP.
  CLEAR WA_FTP.
  MOVE 'bye' TO WA_FTP-FIELD.
  APPEND WA_FTP TO IT_FTP.
  CLEAR WA_FTP.
  OPEN DATASET W_FTP_DSN FOR OUTPUT IN TEXT MODE.
  LOOP AT IT_FTP INTO WA_FTP.
    TRANSFER WA_FTP-FIELD TO W_FTP_DSN.
    CLEAR WA_FTP.
  ENDLOOP.
  CLOSE DATASET W_FTP_DSN.
ENDFORM.                    " BUILD_FTP_FILE
*&      Form  TRANSFER_FTP_FILE
      text
FORM TRANSFER_FTP_FILE.
  FREE TABL.
  CONCATENATE 'ftp -v -n < 'W_FTP_DSN INTO W_PARCOM_LOC.
  CALL 'SYSTEM' ID 'COMMAND' FIELD W_PARCOM_LOC
                ID 'TAB'     FIELD TABL-SYS.
  IF  W_ERROR_FLAG = '*'.
    MESSAGE I036(ZIMM).
  ELSEIF  W_ERROR_FLAG =  'F' .
    MESSAGE I139(ZIMM) WITH W_FNAME.
  ELSE.
    MESSAGE I038(ZIMM) WITH W_FNAME.
  ENDIF.
ENDFORM.                    " TRANSFER_FTP_FILE
**THE ABOVE GIVEN IS THE CODE I AM WRITING FOR THE FTP TO TRANSFER DATA FROM OUR APLICATION SERVER TO
THE REMOTE UNIX SERVER.
BUT WHEN I DO THE
  CALL 'SYSTEM' ID 'COMMAND' FIELD W_PARCOM_LOC
                ID 'TAB'     FIELD TABL-SYS.
MY SYSTEM GOT HANGED AND GVES NO RESPONSE...
PLEASE HELP ME OUT AS EARLY AS POSSIBLE...
I WILL SURE U THAT U WULL REVERT BACK WITH POINTS...
PLEASE HELP...
ARE THERE ANY AUTHORISATIONS ISSUES..OR I AM DOING SOMETHING WRONG...

Similar Messages

  • Transfer files from SAP R/3(unix server) to windows

    Hi TechGurus,
    We have a requirement where in , we are extracting data from SAP table into a text file using OPEN DATASET in TEXT MODE.
    Then using a third party tool (Connect-direct), we are transferring text files to windows server using unix script, in binary mode.
    The problem is that that the data is being transferred in blocks,each time beginning transfer from a new line.That is, after say transferring 25KB data it transfers next 25KB data from a new line. What happens as a result is that records
    after particular amount of data is broken and remaining data transfer begins from new line.
    The file size is around 25 MB.There is no such problem while transferring file of size 10 KB.
    We are uploading the data from text file on windows server into MSAccess.
    And error occurs during this process.
    Assured points for helpful answers
    Thanks in advance!!

    Hi,
    If you want to transfer file between different SAP servers then you can use the function module EPS_FTP_PUT. You need to have a RFC destination (with sufficient authorizations for the RFC user). The meaning of the importing parameters of the function module are quite obvious. Of course, SAP offers us more than this function module:
    - EPS_FTP_GET
    - EPS_FTP_MPUT
    - EPS_FTP_MGET
    Kishi.

  • Remote Connection from SAP to MS-SQL server

    Hello Experts,
    We have been following 2 options so far and we have come across some issues
    The first Option is to call a stored procedure (this is our preferred method) which does the data transfer for us
    We have been able to test this scenario successfully from SQL Server side
    However, while calling the stored proc via native SQL from ABAP we have come across an issue which is due to SQL 2005 changes (Schema implementation and difference in the security context)
    While calling the stored procedure from the ABAP Code we have an error
                The program short dumps with runtime error DBIF_DSQL2_SQL_ERROR, exception CX_SY_NATIVE_SQL_ERROR. The database error code is 15274, and the error text is
                 "Access to the remote server     is denied because the current security context is not trusted."
    This issue is new after the SQL Server 2005.
    We are trying to resolve that.
    Secondly we have been trying the DBCON option as well as per OSS Note 323151
    We have a few things thatu2019s impacting our scenario:
    The remote servers are in a different domain
    The remote servers are located  in DIZ
    Remote server is a named instance
    Remote server has been configured with a different port than standard (1565) u2013 All Connection strings will need port in there
    The Database name starts with a numeric value
    Due a combination of factors as mentioned above the standard approach does not work
    Have any of you used this approach while connecting from SAP to MS-SQL server? Do you know of any successful methods to connect to SQL using ABAP (or not) from SAP.
    Thanks in advance,

    Yes,
    DBConnect & UDConnect.
    Works like a charm.
    We write data into a MS-SQL database via DBConnect & an ABAP program (using open sql).

  • Need to access/connect Remote Unix server from Java

    Please any one give me a direct solution for connecting a remote Unix server through telnet connection from java application. Thanks in advance..

    If I run the below program codes, in the console it is asking to enter username and password in manual but I need to give it automatically.
    The highlighted "root" is entered by the user manually using keyboard.
    Expected:
    I mean the username, password and some action is set to be automatic, so that it should not ask the user to enter the input from keyboard.
    import java.awt.Robot;
    import java.awt.event.KeyEvent;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import org.apache.commons.net.telnet.TelnetClient;
    import org.apache.commons.net.telnet.TelnetNotificationHandler;
    import org.apache.commons.net.telnet.SimpleOptionHandler;
    import org.apache.commons.net.telnet.EchoOptionHandler;
    import org.apache.commons.net.telnet.TerminalTypeOptionHandler;
    import org.apache.commons.net.telnet.SuppressGAOptionHandler;
    import org.apache.commons.net.telnet.InvalidTelnetOptionException;
    import java.util.StringTokenizer;
    * This is a simple example of use of TelnetClient.
    * An external option handler (SimpleTelnetOptionHandler) is used.
    * Initial configuration requested by TelnetClient will be:
    * WILL ECHO, WILL SUPPR
    * ESS-GA, DO SUPPRESS-GA.
    * VT100 terminal type will be subnegotiated.
    * <p>
    * Also, use of the sendAYT(), getLocalOptionState(), getRemoteOptionState()
    * is demonstrated.
    * When connected, type AYT to send an AYT command to the server and see
    * the result.
    * Type OPT to see a report of the state of the first 25 options.
    * <p>
    * @author Bruno D'Avanzo
    public class UnixConnect implements Runnable, TelnetNotificationHandler
        static TelnetClient tc = null;
         * Main for the TelnetClientExample.
        public static void main(String[] args) throws IOException
            FileOutputStream fout = null;
            /*if(args.length < 1)
                System.err.println("Usage: TelnetClientExample1 <remote-ip> [<remote-port>]");
                System.exit(1);
            String remoteip = "192.168.20.11";
            int remoteport;
            if (args.length > 1)
                remoteport = (new Integer(args[1])).intValue();
            else
                remoteport = 23;
            try
                fout = new FileOutputStream ("spy.log", true);
            catch (Exception e)
                System.err.println(
                    "Exception while opening the spy file: "
                    + e.getMessage());
            tc = new TelnetClient();
            TerminalTypeOptionHandler ttopt = new TerminalTypeOptionHandler("VT200", false, false, true, false);
            EchoOptionHandler echoopt = new EchoOptionHandler(true, false, true, false);
            SuppressGAOptionHandler gaopt = new SuppressGAOptionHandler(true, true, true, true);
            try
                tc.addOptionHandler(ttopt);
                tc.addOptionHandler(echoopt);
                tc.addOptionHandler(gaopt);
            catch (InvalidTelnetOptionException e)
                System.err.println("Error registering option handlers: " + e.getMessage());
            while (true)
                boolean end_loop = false;
                try
                    tc.connect(remoteip, remoteport);
                    Thread reader = new Thread (new UnixConnect());
                    tc.registerNotifHandler(new UnixConnect());
                    reader.start();
                    OutputStream outstr = tc.getOutputStream();
                    byte[] buff = new byte[1024];
                    int ret_read = 0;
                    do
                        try
                            ret_read = System.in.read(buff);
                            if(ret_read > 0)
                            outstr.write(buff, 0 , ret_read);
                            outstr.flush();
                        catch (Exception e)
                            System.err.println("Exception while reading keyboard:" + e.getMessage());
                            end_loop = true;
                    while((ret_read > 0) && (end_loop == false));
                    try
                        tc.disconnect();
                    catch (Exception e)
                              System.err.println("Exception while connecting:" + e.getMessage());
                catch (Exception e)
                        System.err.println("Exception while connecting:" + e.getMessage());
                        System.exit(1);
         * Callback method called when TelnetClient receives an option
         * negotiation command.
         * <p>
         * @param negotiation_code - type of negotiation command received
         * (RECEIVED_DO, RECEIVED_DONT, RECEIVED_WILL, RECEIVED_WONT)
         * <p>
         * @param option_code - code of the option negotiated
         * <p>
        public void receivedNegotiation(int negotiation_code, int option_code)
            String command = null;
            if(negotiation_code == TelnetNotificationHandler.RECEIVED_DO)
                command = "DO";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_DONT)
                command = "DONT";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_WILL)
                command = "WILL";
            else if(negotiation_code == TelnetNotificationHandler.RECEIVED_WONT)
                command = "WONT";
            System.out.println("Received " + command + " for option code " + option_code);
         * Reader thread.
         * Reads lines from the TelnetClient and echoes them
         * on the screen.
        public void run()
            InputStream instr = tc.getInputStream();
            try
                byte[] buff = new byte[1024];
                int ret_read = 0;
                do
                    ret_read = instr.read(buff);
                    if(ret_read > 0)
                       System.out.print(new String(buff, 0, ret_read));
                while (ret_read >= 0);
            catch (Exception e)
                System.err.println("Exception while reading socket:" + e.getMessage());
            try
                tc.disconnect();
            catch (Exception e)
                System.err.println("Exception while closing telnet:" + e.getMessage());

  • Connect from SAP gateway to RFC server failed - Java StandAlone app X SAP RAC System

    Dears,
    I'm developing a Java application (RFC SERVER) with JCo3 and I need to connect to SAP RAC system.
    I have configured the TCP/IP connection via transaction SM59, but when I try to start my server I face the error below (dev_jco_rfc.trc):
    ==========================================================================================
    **** Error file opened at 20140714 112024 Brasilia Time Rel 3.0.10 (2013-08-08) [720.440]
    Error:  >Mon Jul 14 11:20:24,636<    RfcException: [null]
        message: Connect from SAP gateway to RFC server failed
    Connection parameters: TYPE=A DEST=VSPAGUE ASHOST=cpe1601 SYSNR=01 SAPROUTER=/H/155.56.49.28 PCS=1
    LOCATION    SAP-Gateway on host ld7624.dmzwdf.sap.corp / sapgw01
    ERROR       hostname 'cpe1601' unknown
    TIME        Mon Jul 14 16:20:25 2014
    RELEASE     740
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -2
    MODULE      /bas/740_REL/src/base/ni/nixxhl.cpp
    LINE        193
    DETAIL      NiHLGetNodeAddr: hostname cached as unknown
    COUNTER     3
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
    ==========================================================================================
    This problem happens when my app executes the line:
    JCoServer myServer = JCoServerFactory.getServer(myServerName);
    My system properties:
    jco.client.lang=EN
    jco.destination.peak_limit=10
    jco.client.client=800
    jco.client.passwd=********
    jco.client.user=********
    jco.client.sysnr=01
    jco.destination.pool_capacity=3
    jco.client.ashost=/H/155.56.49.28/H/cpe1601
    jco.server.connection_count=3
    jco.server.gwhost=/H/155.56.49.28/H/cpe1601
    jco.server.progid=VSPAGUE
    jco.server.gwserv=sapgw01
    jco.server.repository_destination=VSPAGUE
    Using SAP Logon i can connect to server cpe1601 system E16 without problems.
    Please, I really need some help, because my knowledge on SAP platform is minimum.

    Hi Markus,
    Changing ASHOST=ld7624.dmzwdf.sap.corp as you have suggested, I got the error message: Connect to SAP gateway failed ...
    As you could see, the host I'm connecting is from SAP RAC Service.
    Here in our company we have only SAP Logon and my RFC Application, and I can connect to SAP remote system via SAP Logon with this settings:
    System Connection Parameters
    Description: SAP ECC 6.0
    Application Server: cpe1601
    Instance Number: 01
    System ID: E16
    SAProuter String: /H/155.56.49.28/H/
    Below the connection information I received from SAP RAC SUPPORT for testing purposes:
        E16 System:
        SID: E16
        Client: 800
        System Number: 01
        Server: cpe1601
        Component Version: SAP ERP Central Component 6.0 Enhancement Pack 6 Suite on HANA
        User: ********
       Password: ********
       SAProuter String:
       If you don't plan to use SAPRouter at your end,
       /H/155.56.49.28/H/    

  • Oracle directory at remote unix server

    Hi,
    We have created a oracle directory which is pointing to the remote unix server. The unix admin the path is mounted ( i donot understand much about mounting).
    The problem is the directory is visible in the all_directory view but it says when “the directory is not valid” when we try to write to this directory.
    Nordick

    >
    We have created a oracle directory which is pointing to the remote unix server. The unix admin the path is mounted ( i donot understand much about mounting).
    The problem is the directory is visible in the all_directory view but it says when “the directory is not valid” when we try to write to this directory.
    >
    When you create a directory object oracle doesn't do any validation until the point you try to access that directory object. So please try checking from the $ prompt whether you are able to access that directory. If so then verify the owner of the listener process has access to the directory.
    Regards
    Raj

  • Crystal report- Connect from SAP gateway to RFC server failed

    Hi All,
    I am trying to connect to a SAP R3 system from crystal reports but it gives me below error.
    Please note : Transports have been imported and also the roles CRYSTAL_ENTITLEMENT and CRYSTAL_DESIGNER. My user is a member of these roles which were release along with Best practice reports v1.31
    Error :
    Logon failed.
    Details: CMALLC : rc= 27 > Connect from SAP gateway to RFC server failed
    Connect_pm GWHOST=10.10.4.63, gwserv=SAPGW30, SYSNR= 30
    Location SAP-gateway on host ply.log.com/sapgw30
    Error timeout during allocate
    TIME ....
    Release 700
    Component SAP Gateway
    Version 2
    RC 242
    Module gwr3cpic.c
    LINE 1996
    Detail no connect of TP sapdb30 from host 10.10.4.63 after 20 sec
    Can you please help us solving this error.
    Thanks
    Chetan

    Hi Stratos,
    The SAP Version is ECC 6.0.
    The below transports have been imported.
    u2022 Open SQL Connectivity transport (K900574.r21 and R900574.r21)
    u2022 Info Set Connectivity transport (K900575.r21 and R900575.r21)
    u2022 Row-level Security Definition transport (K900576.r21 and R900576.r21)
    u2022 Cluster Definition transport (K900585.r21 and R900585.r21)
    u2022 Authentication Helpers transport (K900578.r21 and R900578.r21)
    Thanks & Regards,
    Chetan

  • Connect from SAP gateway to RFC server failed

    Good day and a happy new year to you all!
    I am failing to connect to my SAP BW system from BEx. The logon fails with this message:
    >>>>>Start<<<<<<<<<<
    Error Group
    RFC_ERROR_COMMUNICATION
    Message
    Connect from SAP gateway to RFC server failed
    Connect_PM  GWHOST=10.16.64.77, GWSERV=sapgw02, ASHOST=10.16.64.77, SYSNR=02
    LOCATION    SAP-Gateway on host bwsys / sapgw02
    ERROR       timeout during allocate
    TIME        Sat Dec 31 13:16:19 2005
    RELEASE     640
    COMPONENT   SAP-Gateway
    VERSION     2
    RC          242
    MODULE      gwr3cpic.c
    LINE        1785
    DETAIL      no connect of TP sapdp02 from host 10.16.64.77 after 22 sec
    COUNTER     2
    >>>>>>>>>END<<<<<<<<<<<<
    I only experience this problem when connecting using any BEx component, but, I can successfully connect to the SAP BW system from SAP gui.
    Additionally, I have the service 'sapdp02' defined in the services file, both on the workstation and the server.
    What could be wrong or missing in my configuration?
    Regards,
    Joao.

    hi Joao,
    check if oss note 447882 relevant
    you may ask basis for help
    Symptom
    You want to access the customer system using the BEx Analyzer.The connenction fails:The system displays the error RFC_ERROR_COMMUNICATION.In the detail screen, the system displays message "Partner not reached" (host 192.168.4.2, service sapgw 00).
    Other terms
    SAP Gateway, RFC_ERROR_COMMUNICATION, partner not reached
    Reason and Prerequisites
    The SAP gateway host is deactivated or the TCP/IP port 33xx (where xx corresponds to the system number) is not open.
    Solution
    Issue statement ping <IP address> (In this example:192.168.4.2) No reply: Boot SAP Gateway host required.
    An answer:Check whether the TCP/IP port 33xx is open (where xx corresponds to the system number) and start the SAP gateway.
    The TCP/IP port is also partially defined in the services file as an sapgw<SID> or sapgwxx entry (where xx corresponds to the system number). The services file is in the Windows directory or in WinNT/System32/drivers/etc.

  • Error: Connect from SAP gateway to RFC Server failed

    Hi
    I am trying to connect SAP server using the java (JCO connection), and getting following error. While I am able to connect to the same sever using SAP Logon pad with the same ipaddress (hostname) and logon credentials.
    Please kindly help.
    Erro: Connect from SAP gateway to RFC server failed.
    Connect_PM GWHOST = hostname, GWSER = sapgw03, ASHOST=hostname, SYSNR=03
    LOCATION  SAP-Gateway on host hostname / sapgw03
    ERROR       timeout during allocate
    TIME Wed Oct 31 05:31:45 2007
    RELEASE 640
    COMPONENT SAP-Gateway
    VERSION 2
    RC 242
    MODULE gwr3cpic.c
    LINE 1795
    DETAIL no connect of TP sapdp03 from host hostname after 22 sec
    COUNTER 3

    Hi K Patil,
    Acording to me you are faceing this issue because the entry of your backend System is not in the SLD (System Landscape Directory ) of your server.
    to make this work you have to make entry in the SLD of your server
    fort that plesae acess this link.
    Re: JCo connection Error
    Re: wt is SLD.. how to do configure it
    Please Reward Points if Helpfull.
    Regards
    Vinit
    Edited by: Vinit Soni on Dec 19, 2007 7:20 AM

  • Solution: View distorted logon page from remote unix server.

    This problem is a bloody f*cking headache which I spent days searching this and other forums for a solution trying this and that ... f*cktype problem. I just thought writing this so that somebody out there having same problem can benefit from this.
    This is the solution if you have problem trying to use another unix ws or server to do startconsole but you get distorted image at the logon page or you cannot type any entry in the fields to logon to server.
    The symptoms are: at the ias console located in the datacenter I can logon, but remotely on my ultra1 I cannot even when all the access permissions and IP addresses for remote administration have been specified.
    For my setup I have a couple of ias server at remote which I tried to manage using a small ultra1 ws which I only installed the "base" admin tool namely startconsole.
    Initially I tried doing "xhost +" on the ultra1 then telnet to the ias server at remote and 'export DISPLAY' that didn't work as somehow the java didn't display up properly. So thats why in the end I installed the tool for startconsole.
    Firstly when trying to logon to remote server ensure the correct administration url of the remote ldap, this can be found under < */iplanet/ias6/admin-serv/config/adm.conf >
    check for the "ldaphost : "
    Then ensure that this entry is stored in your dns or remote server /etc/host file.
    Solution:
    The reason why I saw distorted image logon during "startconsole" was because of some missing files on my ultra1 under <*/iplanet/ias6/java/jars/ias60*> somehow during installation on the ultra1 those files were missing as part of the installation. I copied those files from remote ias servers and put them in the ultra1 and everything came up properly.
    ==================================
    some troubleshooting steps which I used.
    ==================================
    startconsole -D # debug mode
    truss startconsole # more debug
    startconsole -x nologo # starts console with the iplanet logo.
    startconsole -x nologo -u "cn=Directory Manager" -w <password>
    testing logon password at remote ias server using ldapsearch(can help narrow down if passwords are having problems or not)
    ============================================
    ldapseatch -D "cn=Directory Manager" -w <password> -b o=netscaperoot cn=admin-serv-<host>

    This problem is a bloody f*cking headache which I spent days searching this and other forums for a solution trying this and that ... f*cktype problem. I just thought writing this so that somebody out there having same problem can benefit from this.
    This is the solution if you have problem trying to use another unix ws or server to do startconsole but you get distorted image at the logon page or you cannot type any entry in the fields to logon to server.
    The symptoms are: at the ias console located in the datacenter I can logon, but remotely on my ultra1 I cannot even when all the access permissions and IP addresses for remote administration have been specified.
    For my setup I have a couple of ias server at remote which I tried to manage using a small ultra1 ws which I only installed the "base" admin tool namely startconsole.
    Initially I tried doing "xhost +" on the ultra1 then telnet to the ias server at remote and 'export DISPLAY' that didn't work as somehow the java didn't display up properly. So thats why in the end I installed the tool for startconsole.
    Firstly when trying to logon to remote server ensure the correct administration url of the remote ldap, this can be found under < */iplanet/ias6/admin-serv/config/adm.conf >
    check for the "ldaphost : "
    Then ensure that this entry is stored in your dns or remote server /etc/host file.
    Solution:
    The reason why I saw distorted image logon during "startconsole" was because of some missing files on my ultra1 under <*/iplanet/ias6/java/jars/ias60*> somehow during installation on the ultra1 those files were missing as part of the installation. I copied those files from remote ias servers and put them in the ultra1 and everything came up properly.
    ==================================
    some troubleshooting steps which I used.
    ==================================
    startconsole -D # debug mode
    truss startconsole # more debug
    startconsole -x nologo # starts console with the iplanet logo.
    startconsole -x nologo -u "cn=Directory Manager" -w <password>
    testing logon password at remote ias server using ldapsearch(can help narrow down if passwords are having problems or not)
    ============================================
    ldapseatch -D "cn=Directory Manager" -w <password> -b o=netscaperoot cn=admin-serv-<host>

  • How to store multiple files from SAp in to Application server?

    Hi Guys,
                 Can anybody tell me how to store multiple files from SAP into Application server.in my application i have to get the data from SAP tables BSEG , BKPF , BSAK and BSIK that to daily i have to do.
                Any Logic  or Code for how to do is welcomed.
                        plz help me urgently.
    Thanks,
    Gopi

    Hi,
      directories creates basis. If you have task to store data in application server you already should have information into which folder you have to do it. If you don't have this information because it is just for example training for next task then you can use your personal folder into which you have access. To get list of all available folders please look at attached code and form get_directories (you get the list of folders you see in transaction AL11). But don't forget: If you are using open dataset you have to have rights to access application folder!
    Here you are code which I use to upload text files from local disc into application folder
    Regards,
      Karol
    *& Report  FILE_PC_TO_SAP
    REPORT  FILE_PC_TO_SAP.
    DATA: BEGIN OF searchpoints OCCURS 100,
            DIRNAME(200)     TYPE c, " name of directory.
            sp_name(100)     TYPE c," name of entry. (may end with *)
          END OF searchpoints.
    DATA: BEGIN OF isearchpoints OCCURS 10,
            dirname(75) TYPE c,            " name of directory.
            aliass(75)  TYPE c,            " alias for directory.
            svrname(75) TYPE c,            " svr where directory is availabl
            sp_name(75) TYPE c,            " name of entry. (may end with *)
            sp_cs(10)   TYPE c,            " ContainsString pattern for name
          END OF isearchpoints.
    data: l_file type filetable.
    data: l_rc   type i.
    data: itab   type TABLE OF string.
    data: g_tmp_file_path type rlgrap-filename.
    data: wa_itab type string.
    data: h_destin(100) type c.
    data: dat      type string.
    INITIALIZATION.
    perform get_directories.
    START-OF-SELECTION.
    parameters: in_file type string OBLIGATORY LOWER CASE.
    parameters: destin(100) type c OBLIGATORY LOWER CASE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
       FILENAME                      = in_file
       "FILETYPE                      = 'BIN'
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = ' '
       HEADER_LENGTH                 = 0
       READ_BY_LINE                  = 'X'
       DAT_MODE                      = ' '
      TABLES
        DATA_TAB                     = itab
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17.
    IF sy-SUBRC <> 0.
      write: / 'Error during loading input file!'.
    ENDIF.
    if h_destin is INITIAL.
      h_destin = in_file.
    endif.
    CONCATENATE destin h_destin into dat SEPARATED BY '/'.
    *TRANSLATE dat TO UPPER CASE.
    OPEN DATASET dat FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-SUBRC = 0.
      loop at itab into wa_itab.
         TRANSFER: wa_itab TO dat.
      endloop.
      CLOSE DATASET dat.
      write: / 'File uploaded!'.
    ELSE.
      write: / 'Not possible to open dataset'.
    ENDIF.
    at selection-screen on value-request for in_file.
      perform select_input_file_name.
      loop at l_file into g_tmp_file_path.
        move g_tmp_file_path to in_file.
        h_destin = ''.
        SPLIT g_tmp_file_path at '\' into table itab.
        loop at itab into g_tmp_file_path.
          h_destin = g_tmp_file_path.
        endloop.
      endloop.
    at selection-screen on value-request for destin.
      DATA: lt_dfies    TYPE TABLE OF dfies.
      DATA: lwa_dfies   TYPE dfies.
      CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
          tabname    = '/BI0/PCO_AREA'
          lfieldname = 'CO_AREA'
        IMPORTING
          dfies_wa   = lwa_dfies.
      lwa_dfies-tabname = 'searchpoints'.
      lwa_dfies-REPTEXT   = 'Destination directory'.
      lwa_dfies-LENG      = 100.
      lwa_dfies-INTLEN    = 100.
      lwa_dfies-OUTPUTLEN = 100.
      lwa_dfies-fieldname = 'SP_NAME'.
      APPEND lwa_dfies TO lt_dfies.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD = 'SP_NAME'
          DYNPPROG = SY-REPID
          DYNPNR = SY-DYNNR
          DYNPROFIELD = 'destin'
          VALUE_ORG = 'S'
        TABLES
          VALUE_TAB = searchpoints
          FIELD_TAB = lt_dfies
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS = 3.
    *&      Form  select_input_file_name
    *       text
    form select_input_file_name.
    *  call function 'F4_FILENAME'
    *       exporting
    *            program_name  = sy-repid
    *            dynpro_number = sy-dynnr
    *            field_name    = 'PATH'
    *       importing
    *            file_name     = g_tmp_file_path.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      EXPORTING
      WINDOW_TITLE = 'Please choose a file'
      "default_extension = '*.TXT'
      "default_filename = 'C:\*.txt'
      initial_directory = 'C:\'
      file_filter = '*.*'
      CHANGING
      FILE_TABLE = l_file
      RC = l_RC
      EXCEPTIONS
      FILE_OPEN_DIALOG_FAILED = 1
      CNTL_ERROR = 2
      ERROR_NO_GUI = 3
      NOT_SUPPORTED_BY_GUI = 4
      OTHERS = 5.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endform.                    "select_input_file_name
    *&      Form  WRITE_DB_HOME
    *       Write DB home directory
    *       no parameters
    FORM write_db_home.
      CASE sy-dbsys(3).
        WHEN 'ORA'.
          CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_ORAHOME'
                             ID 'VALUE' FIELD searchpoints-dirname.
    *--- C5056155 Start of ALV -------------------------------*
    *      PERFORM flip_flop(rsora000) USING cflag.
    *      WRITE: / 'DIR_ORAHOME',       30 searchpoints-dirname.
          MOVE: 'DIR_ORAHOME'        TO searchpoints-sp_name.
          APPEND searchpoints.
    *--- C5056155 End   of ALV -------------------------------*
        WHEN 'ADA'.
          CALL 'C_GETENV' ID 'NAME'  FIELD 'DBROOT'
                          ID 'VALUE' FIELD searchpoints-dirname.
    *--- C5056155 Start of ALV -------------------------------*
    *      PERFORM flip_flop(rsora000) USING cflag.
    *      WRITE: / 'DIR_ADA_DBROOT',    30 searchpoints-dirname.
          MOVE: 'DIR_ADA_DBROOT'     TO searchpoints-sp_name.
          APPEND searchpoints.
    *--- C5056155 End   of ALV -------------------------------*
        WHEN 'INF'.
          CALL 'C_GETENV' ID 'NAME'  FIELD 'INFORMIXDIR'
                          ID 'VALUE' FIELD searchpoints-dirname.
    *--- C5056155 Start of ALV -------------------------------*
    *      PERFORM flip_flop(rsora000) USING cflag.
    *      WRITE: / 'DIR_INF_INFORMIXDIR', 30 searchpoints-dirname.
          MOVE: 'DIR_INF_INFORMIXDIR' TO searchpoints-sp_name.
          APPEND searchpoints..
    *--- C5056155 End   of ALV -------------------------------*
        WHEN 'DB6'.
          CALL 'C_GETENV' ID 'NAME'  FIELD 'INSTHOME'
                          ID 'VALUE' FIELD searchpoints-dirname.
          IF sy-subrc = 0.
    *--- C5056155 Start of ALV -------------------------------*
    *        PERFORM flip_flop(rsora000) USING cflag.
    *        WRITE: / 'DIR_DB2_HOME',    30 searchpoints-dirname.
            MOVE: 'DIR_DB2_HOME'       TO searchpoints-sp_name.
            APPEND searchpoints.
    *--- C5056155 End   of ALV -------------------------------*
          ELSE.
            EXIT.
          ENDIF.
        WHEN OTHERS.
          EXIT.
      ENDCASE.
    ENDFORM.                    " WRITE_DB_HOME
    FORM get_directories.
    * get the name and aliases of ALL userdefined directories
      SELECT * FROM user_dir INTO isearchpoints
        WHERE svrname = sy-uname.
        MOVE isearchpoints-dirname to searchpoints-dirname.
        MOVE isearchpoints-aliass  to searchpoints-sp_name.
        APPEND searchpoints.
      ENDSELECT.
      SELECT * FROM user_dir INTO isearchpoints
        WHERE svrname = 'all'.
        MOVE isearchpoints-dirname to searchpoints-dirname.
        MOVE isearchpoints-aliass  to searchpoints-sp_name.
        APPEND searchpoints.
      ENDSELECT.
    * Get DB home
      IF sy-dbsys(3) = 'ADA'.
        PERFORM write_db_home.
      ENDIF.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_ATRA'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_ATRA'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_BINARY'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_BINARY'         TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory $DIR_CCMS
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_CCMS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_CCMS'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_CT_LOGGING'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_CT_LOGGING'     TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_CT_RUN'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_CT_RUN'         TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_DATA'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_DATA'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * Get DB home
      IF sy-dbsys(3) = 'DB6'.
        PERFORM write_db_home.
      ENDIF.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_DBMS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_DBMS'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_EXECUTABLE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_EXECUTABLE'     TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_EXE_ROOT'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_EXE_ROOT'       TO searchpoints-sp_name.
      APPEND searchpoints.
    *get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GEN'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GEN'            TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GEN_ROOT'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GEN_ROOT'       TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GLOBAL'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GLOBAL'         TO searchpoints-sp_name.
      APPEND searchpoints.
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GRAPH_EXE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GRAPH_EXE'      TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_GRAPH_LIB'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_GRAPH_LIB'      TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_HOME'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_HOME'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * Get DB home
      IF sy-dbsys(3) = 'INF'.
        PERFORM write_db_home.
      ENDIF.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_INSTALL'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_INSTALL'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_INSTANCE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_INSTANCE'       TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_LIBRARY'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_LIBRARY'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_LOGGING'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_LOGGING'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the files written by the memory inspector
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_MEMORY_INSPECTOR'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_MEMORY_INSPECTOR' TO searchpoints-sp_name.
      APPEND searchpoints.
    * Get DB home
      IF sy-dbsys(3) = 'ORA'.
        PERFORM write_db_home.
      ENDIF.
    *get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PAGING'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PAGING'         TO searchpoints-sp_name.
      APPEND searchpoints.
    *get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PUT'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PUT'            TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PERF'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PERF'           TO searchpoints-sp_name.
      APPEND searchpoints.
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PROFILE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PROFILE'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_PROTOKOLLS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_PROTOKOLLS'     TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_REORG'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_REORG'          TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_ROLL'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_ROLL'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_RSYN'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_RSYN'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * calculate directory for saphostagent (no sapparam available...)
      IF ( sy-opsys(3) = 'WIN' ) OR ( sy-opsys(3) = 'Win' ).
        DATA: windir_path(64),  programfiles_path(64).
    *   hoping that ProgramFiles is set in service user environment
        CALL 'C_GETENV' ID 'NAME'  FIELD 'ProgramFiles'
                        ID 'VALUE' FIELD programfiles_path.
        IF programfiles_path IS INITIAL.
    *     %ProgramFiles% not available. guess from windir
          CALL 'C_GETENV' ID 'NAME'  FIELD 'windir'
                          ID 'VALUE' FIELD windir_path.
    *     e.g. S:\WINDOWS ==> S:\Program Files
          CONCATENATE windir_path(3) 'Program Files' INTO programfiles_path.
        ENDIF.
        CONCATENATE programfiles_path '\SAP\hostctrl'
                                                 INTO searchpoints-dirname.
      ELSE.
    *   on UNIX, the path is hard coded
        searchpoints-dirname = '/usr/sap/hostctrl'.
      ENDIF.
      MOVE: 'DIR_SAPHOSTAGENT' TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SAPUSERS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      IF searchpoints-dirname = '.'.
        IF sy-opsys = 'Windows NT'.
          searchpoints-dirname = '.\'.
        ELSE.
          searchpoints-dirname = './'.
        ENDIF.
      ENDIF.
      MOVE: 'DIR_SAPUSERS'       TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SETUPS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_SETUPS'         TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SORTTMP'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_SORTTMP'        TO searchpoints-sp_name.
      APPEND searchpoints.
    *get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_SOURCE'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_SOURCE'         TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TEMP'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_TEMP'           TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TRANS'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_TRANS'          TO searchpoints-sp_name.
      APPEND searchpoints.
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TRFILES'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_TRFILES'        TO searchpoints-sp_name.
      APPEND searchpoints.
    * get name of directory with the error files
      CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'DIR_TRSUB'
                         ID 'VALUE' FIELD searchpoints-dirname.
      MOVE: 'DIR_TRSUB'          TO searchpoints-sp_name.
      APPEND searchpoints.
    *  get the name of the current server.
      CALL 'C_SAPGPARAM' ID 'NAME' FIELD 'rdisp/myname'
                         ID 'VALUE' FIELD searchpoints-dirname.
      data: h_ind type i.
      LOOP AT searchpoints.
        h_ind = sy-tabix.
        IF searchpoints-sp_name IS INITIAL.
          DELETE searchpoints INDEX h_ind.
        ENDIF.
      ENDLOOP.
    ENDFORM.

  • Cannot deploy BPM process from JDev into remote weblogic server

    Hi all,
    I have in a trouble!
    I've built a simple BPM process but when i deploy it from JDeveloper to a remote weblogic server it have following error, pls give me solution
    [02:16:27 PM] ---- Deployment started. ----
    [02:16:27 PM] Target platform is (Weblogic 10.3).
    [02:16:27 PM] Running dependency analysis...
    [02:16:27 PM] Building...
    [02:16:31 PM] Deploying profile...
    [02:16:31 PM] Updating revision id for the SOA Project 'Project1.jpr' to '1.0'..
    [02:16:31 PM] Wrote Archive Module to C:\JDeveloper\mywork\TestDeploy\Project1\deploy\sca_Project1_rev1.0.jar
    [02:16:31 PM] Running dependency analysis...
    [02:16:31 PM] Building...
    [02:16:33 PM] Deploying 2 profiles...
    [02:16:33 PM] Wrote Web Application Module to C:\JDeveloper\mywork\TestDeploy\Project2_UI\deploy\Project2_UI.war
    [02:16:33 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\TestDeploy\deploy\TestDeploy.ear
    [02:16:33 PM] Deploying sca_Project1_rev1.0.jar to partition "default" on server AdminServer [http://HP:7001]
    [02:16:33 PM] Processing sar=/C:/JDeveloper/mywork/TestDeploy/Project1/deploy/sca_Project1_rev1.0.jar
    [02:16:33 PM] Adding sar file - C:\JDeveloper\mywork\TestDeploy\Project1\deploy\sca_Project1_rev1.0.jar
    [02:16:33 PM] Preparing to send HTTP request for deployment
    [02:16:33 PM] Creating HTTP connection to host:HP, port:7001
    [02:16:33 PM] Sending internal deployment descriptor
    [02:16:33 PM] Sending archive - sca_Project1_rev1.0.jar
    [02:16:33 PM] Received HTTP response from the server, response code=503
    [02:16:33 PM] Invalid logging line: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    [02:16:33 PM] Invalid logging line: <html><head>
    [02:16:33 PM] Invalid logging level on line: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    [02:16:33 PM] Invalid logging line: <title>ERROR: The requested URL could not be retrieved</title>
    [02:16:33 PM] Invalid logging line: <style type="text/css"><!--
    [02:16:33 PM] Invalid logging line: /*
    [02:16:33 PM] Invalid logging line: Stylesheet for Squid Error pages
    [02:16:33 PM] Invalid logging line: Adapted from design by Free CSS Templates
    [02:16:33 PM] Invalid logging line: http://www.freecsstemplates.org
    [02:16:33 PM] Invalid logging line: Released for free under a Creative Commons Attribution 2.5 License
    [02:16:33 PM] Invalid logging line: */
    [02:16:33 PM] Invalid logging line: /* Page basics */
    [02:16:33 PM] Invalid logging line: * {
    [02:16:33 PM] Invalid logging level on line:      font-family: verdana, sans-serif;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: html body {
    [02:16:33 PM] Invalid logging level on line:      margin: 0;
    [02:16:33 PM] Invalid logging level on line:      padding: 0;
    [02:16:33 PM] Invalid logging level on line:      background: #efefef;
    [02:16:33 PM] Invalid logging level on line:      font-size: 12px;
    [02:16:33 PM] Invalid logging level on line:      color: #1e1e1e;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* Page displayed title area */
    [02:16:33 PM] Invalid logging line: #titles {
    [02:16:33 PM] Invalid logging level on line:      margin-left: 15px;
    [02:16:33 PM] Invalid logging level on line:      padding: 10px;
    [02:16:33 PM] Invalid logging level on line:      padding-left: 100px;
    [02:16:33 PM] Invalid logging level on line:      background: url('http://www.squid-cache.org/Artwork/SN.png') no-repeat left;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* initial title */
    [02:16:33 PM] Invalid logging line: #titles h1 {
    [02:16:33 PM] Invalid logging level on line:      color: #000000;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: #titles h2 {
    [02:16:33 PM] Invalid logging level on line:      color: #000000;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* special event: FTP success page titles */
    [02:16:33 PM] Invalid logging line: #titles ftpsuccess {
    [02:16:33 PM] Invalid logging level on line:      background-color:#00ff00;
    [02:16:33 PM] Invalid logging level on line:      width:100%;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* Page displayed body content area */
    [02:16:33 PM] Invalid logging line: #content {
    [02:16:33 PM] Invalid logging level on line:      padding: 10px;
    [02:16:33 PM] Invalid logging level on line:      background: #ffffff;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* General text */
    [02:16:33 PM] Invalid logging line: p {
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* error brief description */
    [02:16:33 PM] Invalid logging line: #error p {
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* some data which may have caused the problem */
    [02:16:33 PM] Invalid logging line: #data {
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* the error message received from the system or other software */
    [02:16:33 PM] Invalid logging line: #sysmsg {
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: pre {
    [02:16:33 PM] Invalid logging level on line: font-family:sans-serif;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* special event: FTP / Gopher directory listing */
    [02:16:33 PM] Invalid logging line: #dirlisting tr.entry td.icon,td.filename,td.size,td.date {
    [02:16:33 PM] Invalid logging level on line: border-bottom: groove;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: #dirlisting td.size {
    [02:16:33 PM] Invalid logging level on line: width: 50px;
    [02:16:33 PM] Invalid logging level on line: text-align: right;
    [02:16:33 PM] Invalid logging level on line: padding-right: 5px;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* horizontal lines */
    [02:16:33 PM] Invalid logging line: hr {
    [02:16:33 PM] Invalid logging level on line:      margin: 0;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: /* page displayed footer area */
    [02:16:33 PM] Invalid logging line: #footer {
    [02:16:33 PM] Invalid logging level on line:      font-size: 9px;
    [02:16:33 PM] Invalid logging level on line:      padding-left: 10px;
    [02:16:33 PM] Invalid logging line: }
    [02:16:33 PM] Invalid logging line: body
    [02:16:33 PM] Invalid logging level on line: :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }
    [02:16:33 PM] Invalid logging level on line: :lang(he) { direction: rtl; float: right; }
    [02:16:33 PM] Invalid logging line: --></style>
    [02:16:33 PM] Invalid logging line: </head><body>
    [02:16:33 PM] Invalid logging line: <div id="titles">
    [02:16:33 PM] Invalid logging line: <h1>ERROR</h1>
    [02:16:33 PM] Invalid logging line: <h2>The requested URL could not be retrieved</h2>
    [02:16:33 PM] Invalid logging line: </div>
    [02:16:33 PM] Invalid logging line: <hr>
    [02:16:33 PM] Invalid logging line: <div id="content">
    [02:16:33 PM] Invalid logging line: <p>The following error was encountered while trying to retrieve the URL: http://hp:7001/soa-infra/deployer</p>
    [02:16:33 PM] Invalid logging line: <blockquote id="error">
    [02:16:33 PM] Invalid logging line: <p><b>Unable to determine IP address from host name <q>hp</q></b></p>
    [02:16:33 PM] Invalid logging line: </blockquote>
    [02:16:33 PM] Invalid logging line: <p>The DNS server returned:</p>
    [02:16:33 PM] Invalid logging line: <blockquote id="data">
    [02:16:33 PM] Invalid logging line: <pre>Name Error: The domain name does not exist.</pre>
    [02:16:33 PM] Invalid logging line: </blockquote>
    [02:16:33 PM] Invalid logging line: <p>This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.</p>
    [02:16:33 PM] Invalid logging level on line: <p>Your cache administrator is [email protected].</p>
    [02:16:33 PM] Invalid logging line: <br>
    [02:16:33 PM] Invalid logging line: </div>
    [02:16:33 PM] Invalid logging line: <hr>
    [02:16:33 PM] Invalid logging line: <div id="footer">
    [02:16:33 PM] Invalid logging line: <p>Generated Tue, 20 Dec 2011 07:18:27 GMT by proxy.hipt.com.vn (squid/3.1.4)</p>
    [02:16:33 PM] Invalid logging line: <!-- ERR_DNS_FAIL -->
    [02:16:33 PM] Invalid logging line: </div>
    [02:16:33 PM] Invalid logging line: </body></html>
    [02:16:33 PM] Error deploying archive sca_Project1_rev1.0.jar to partition "default" on server AdminServer [http://HP:7001]
    [02:16:33 PM] HTTP error code returned [503]
    [02:16:33 PM] No error message is returned from the server.
    [02:16:33 PM] Error deploying archive sca_Project1_rev1.0.jar to partition "default" on server AdminServer [http://HP:7001]
    [02:16:33 PM] #### Deployment incomplete. ####
    [02:16:33 PM] Error deploying archive file:/C:/JDeveloper/mywork/TestDeploy/Project1/deploy/sca_Project1_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    Thanks a lot!

    Hi, thanks for your reply,
    I just check but soa-infra is up
    Result:
    Welcome to the Oracle SOA Platform on WebLogic
    SOA Version: v11.1.1.5.0 - 11.1.1.5.0_110418.1550.0174 built on Mon Apr 18 18:05:14 PDT 2011
    WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 (10.3.5.0)
    I've deployed my process in local computer that good! but from remote JDev i've wrong
    Help me pls!

  • Migrating from SAP DMS to File Server

    Hi,
    Our client is currently using the SAP DMS to store documents for the EHS module. This has brought with it lot of handicaps.. primarily the huge size of the database. There is an initiative now to move from SAP DMS to a file server where the files would be physically stored whereas the linking would be made via SAP EHS module.
    This effectively means that the things would remain as they were.. only that the specifications in EHS would now be pointing to a new location for its documents.
    My question is whether this is a techinallly feasible solution and second how should the migration be done. keeping in  mind that the linkages should be kept intact.
    Suggestions are solicited... points are guaranteed.
    Thanks!
    Aviroop

    Hi Aviroop,
    Got any idea about how File server works with DMS ?
    I am in urgent need for details about the file server functionality and configuration.
    Can I use a sharepoint site (internet site0 as a file server?
    Pls send me some documents regarding this to my mail id [email protected]
    Thanks in advance and warm regards
    Purnendu

  • How to execute a system command on a remote UNIX server?

    I would like to execute a system command (for example "df") on a remote UNIX machine.
    A simple example would be welcome...
    Thanks

    I would like to execute a system command (for example
    "df") on a remote UNIX machine.
    A simple example would be welcome...None will be forthcoming.
    Executing a process is relatively simple. However doing this on a remot system is another matter.
    See http://sourceforge.net/projects/sshtools/
    and/or http://javassh.org/space/start
    Other resources to be found with Google.

  • How to run report from a cronjob in UNIX server?

    I am trying to create a huge report in pdf format in UNIX server,
    please tell me the command and syntax.
    tnx

    Hi,
    Reports job command line methods (and syntax) are explained here (Publishing Reports Manual):
    http://download.oracle.com/docs/html/B10314_01/pbr_run.htm#1008687
    And all the different arguments that you can specify in the command are explained here:
    http://download.oracle.com/docs/html/B10314_01/pbr_cla.htm#666889
    Navneet.

Maybe you are looking for

  • Settings to order min qty in purchase requistion

    Hi ,   Our customer wants to order a material in multiple of quantities 10 ITMS in the purchase requistion. Is there any setting to achevies this .  i have tried with rounding profile , it is working in POs , but not in purcahse requistion.  Please a

  • Can i invoke Photoshop Scripting in web page?

    Can i invoke Photoshop Scripting in web page?

  • Snow Leopard will not boot on new SSD

    I purchased a 120 GB SSD for my 2007 MBP (A1226) and installed it.  The old drive crashed and I am looking for a clean install - not time machine. I have tried to boot from the OSX 10.6 Install Disk but it keeps getting stuck!  1.  I power on the MBP

  • What I should get to start developing j2me

    Hello. I was wondering if somebody could tell me what they think is the best software development environment for j2me on a mac with osx 10.4? I'm looking for free software so whatever that entails. I will also be testing my midlets across a wide var

  • Events in Labview RT?

    Are event structures usable in RT?  If not, could you please point me to the documentation that states this or implies this?  Usually when Labview closes a door, they open a window....(provide a workaround). Grub Hell, there are no rules here...we're