Reading name of application server, not SY-HOST

Hey folks,
we have three application servers running on the same machine.
So in table SAPWLSERV you find three entries with following content as example:
NAME             HOST           ...
sys00            host00          ...
sys01            host00          ...
sys11            host00          ...
sys00, sys01 and sys11 are the three application servers running on the machine called host00.
No matter on which application server i am, SY-HOST is set to "host00". But i dont need the host, i need the name of the application server on which my program is running.
How can get the NAME of the actual application server i am running on?
Thank you and best regards,
khs

I cannot test if my suggestion works for multiple app servers, but anyway...
The local server name is in profile parameter "rdisp/myname". You can read this value in your program:
call 'C_SAPGPARAM'
    id 'NAME'  field 'rdisp/myname'
    id 'VALUE' field server_name.
Have look at function module GENERAL_GET_APP_SERVER_NAME, that's where this code is from.
Thomas

Similar Messages

  • I want to change IP and Host Name of application serve

    our application server is on IBM AIX platform and now i want to change IP and Host Name of application server?

    Hi Again;
    For Ip please see:
    How to change the IP Address for a Release 11i Instance ? [ID 364099.1]
    How to Change IP Address in an Oracle Applications Environment [ID 553318.1]
    PS:Please mention your EBS version
    Regard
    Helios

  • ISE application server not running

    Hi Team,
    My ISE appliance application server not running, even reboot still the same, any reason?
    ISE-3315-K9       
    Displaying ISE application status .... 
    ISE Database listener is running, PID: 6270
    ISE Database is running, number of processes: 17
    ISE Application Server process is not running.
    ISE Profiler DB is not running
    ISE M&T Session Database is not running.
    ISE M&T Log Collector is not running.
    ISE M&T Log Processor is not running.
    I saw suspicious from logs, anyone experience this before? I coudn't find this ise ErrorCode: -999 from the Cisco KE database.
    2015-01-19T15:45:47.371651+11:00 ISE1 ADE-SERVICE[2742]: [9862]:[error] application:operation ci_util.c[597] [marcellus]: Problem executing init script (/opt/CSCOcpm/bin/cpmcontrol.sh) err = 1
    2015-01-19T15:45:47.371671+11:00 ISE1 ADE-SERVICE[2742]: [9862]:[error] application:operation cars_install.c[1931] [marcellus]: App (ise) has trouble executing <init> tag
    2015-01-19T15:45:47.377124+11:00 ISE1 ADEOSShell[9862]: ADEAUDIT 3015, type=APP INIT, name=Error during application init, username=marcellus, cause=(null), adminipaddress=10.0.10.7, interface=CLI, detai
    l=Application (ise) has trouble executing <init> tag
    2015-01-19T15:45:47.377333+11:00 ISE1 ADE-SERVICE[2742]: [9862]:[error] application:operation install_cli.c[419] [marcellus]: Error while starting application  - Application: ise ErrorCode: -999

    Hi Neno,
    Thanks for replying, this is it.
    Displaying ISE version ...
    Cisco Identity Services Engine
    Version : 1.2.0.899
    Build Date : Wed 24 Jul 2013 17:37:31 EST
    Install Date : Wed 01 Oct 2014 12:33:32 EST

  • Itunes will not open, error message reads: The iTunes application could not be opened. An unknown error occurred (13014)

    iTunes 10.4 will not open on my macbook, error message reads:
    The iTunes application could not be opened. An unknown error occurred (13014).
    It won't let me delete and re-install either, thank you for any help!

    are you running any anti virus software on your machine ?

  • Changing the default mail sender name in Application server

    Hi,
    how do I change default mail sender name in application server.
    It is administrator@application by default.

    Does the email send from the operating system (sendmail ) or from the IAS?
    If its from the ias , then its in the httpd.conf.
    If its from the Operating system then I dont rememeber
    If you have a non windows platform (like unix) easiest way will be to do a grep for "administrator@application "
    Best Regards
    Rajesh Alex

  • Reading File from Application Server using Read Dataset

    Hi,
    i am trying to read excel file from Application Server and has multiple records in that based on structure below. but when i execute its giving me error message.here is the code, can sumone suggest me on this please ??
    FORM f_data_upload .
      DATA:
         l_filename TYPE string,   "file name
         l_wa_string TYPE string.  "file record
        l_filename = p_inp_as. "File path from Application Server
        OPEN DATASET l_filename FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        DO.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
    Read the data from the file in Application server.
          READ DATASET l_filename INTO l_wa_string.
          IF sy-subrc = 0.
            SPLIT l_wa_string AT cl_abap_char_utilities=>horizontal_tab
                  INTO w_data-tcode
                       w_data-matnr
                       w_data-mtart
                       w_data-werks
                       w_data-vkorg
                       w_data-vtweg
                       w_data-lgort
                       w_data-meins
                       w_data-maktx
                       w_data-spart
                       w_data-kosch
                       w_data-mstae
                       w_data-brgew
                       w_data-ntgew
                       w_data-groes
                       w_data-matkl
                       w_data-prdha
                       w_data-mstde
                       w_data-mtpos_mara
                       w_data-gewei
                       w_data-spart
                       w_data-mstav
                       w_data-mstdv
                       w_data-dwerk
                       w_data-taxkm
                       w_data-versg
                       w_data-kondm
                       w_data-ktgrm
                       w_data-mtpos
                       w_data-mtvfp
                       w_data-tragr
                       w_data-ladgr
                       w_data-herkl
                       w_data-ekgrp
                       w_data-webaz
                       w_data-dismm
                       w_data-beskz
                       w_data-prctr
                       w_data-bklas
                       w_data-bwtty
                       w_data-vprsv
                       w_data-verpr
                   IN CHARACTER MODE.
            APPEND w_data TO i_data.
            CLEAR w_data.
           ENDIF.
        ENDDO.
        CLOSE DATASET l_filename.
    Error Message while executing
    What happened?
        At the conversion of a text from codepage '4110' to codepage '4102':
        - a character was found that cannot be displayed in one of the two
        codepages;
        - or it was detected that this conversion is not supported
        The running ABAP program 'ZHDI_LOMM_VEHI_MAT_MASS_CREATE' had to be terminated
         as the conversion
        would have produced incorrect data.
        The number of characters that could not be displayed (and therefore not
        be converted), is 449. If this number is 0, the second error case, as
        mentioned above, has occurred.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_CONVERSION_CODEPAGE', was not
         caught in
        procedure "F_DATA_UPLOAD" "(FORM)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        Characters are always displayed in only a certain codepage. Many
        codepages only define a limited set of characters. If a text from a
        codepage should be converted into another codepage, and if this text
        contains characters that are not defined in one of the two codepages, a
        conversion error occurs.
        Moreover, a conversion error can occur if one of the needed codepages
        '4110' or '4102' is not known to the system.
        If the conversion error occurred at read or write of  screen, the file
        name was '/usr/sap/interfaces/conversion/pioneer/ddm/data/test_data1.xls'.
         (further information about the file: "X 549
         24064rw-rw----200812232135082008122307293120081223072931")
    Please help me
    Thank You

    Woah ... perfect guru
    but data looks like all junk characters ? its filling with special characters, hashes # and other characters but not with Excel data.. any idea ??
    Temesh
    Edited by: New2Sap Abap on Dec 24, 2008 6:42 AM

  • Logic to fetch the file name from Application Server

    Hi Friends
    I have a requirement that : By giving the Directory name (eg:/tmp),I have to get the all file names stored under that Directory name.
    Can anyone please provide me the logic / function modules related to this requirement.
    Points are assured for useful answers.
    Regards,
    Sree

    Hi,
    use these:
    function module "EPS_GET_DIRECTORY_LISTING"
    FM RZL_DIR_READ instead. its easy and effective to use.
    Or
    FILE_GET_NAME_USING_PATH,
    EPS_GET_DIRECTORY_LISTING
    /SAPDMC/LSM_F4_FRONTEND_FILE
    OPEN DATASET <Path / filename> FOR INPUT IN TEXT MODE...
    if sy-subrc eq 8, then the file does not exist on the application server.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Application server not starting - I have given the dispatcher log below

    trc file: "dev_disp", trc level: 1, release: "700"
    sysno 00
    sid P1D
    systemid 560 (PC with Windows NT)
    relno 7000
    patchlevel 0
    patchno 75
    intno 20050900
    make: multithreaded, Unicode, optimized
    pid 2800
    Wed Apr 07 16:09:05 2010
    kernel runs with dp version 217000(ext=109000) (@(#) DPLIB-INT-VERSION-217000-UC)
    length of sys_adm_ext is 572 bytes
    SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (00 2800) [dpxxdisp.c 1237]
    shared lib "dw_xml.dll" version 75 successfully loaded
    shared lib "dw_xtc.dll" version 75 successfully loaded
    shared lib "dw_stl.dll" version 75 successfully loaded
    shared lib "dw_gui.dll" version 75 successfully loaded
    shared lib "dw_mdm.dll" version 75 successfully loaded
    rdisp/softcancel_sequence : -> 0,5,-1
    use internal message server connection to port 3900
    Wed Apr 07 16:09:10 2010
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 5273]
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >blrkec115278d_P1D_00 <
    DpShMCreate: sizeof(wp_adm) 18304 (1408)
    DpShMCreate: sizeof(tm_adm) 3994272 (19872)
    DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
    DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    DpShMCreate: sizeof(comm_adm) 528064 (1048)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm) 0 (72)
    DpShMCreate: sizeof(vmc_adm) 0 (1440)
    DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
    DpShMCreate: sizeof(gw_adm) 48
    DpShMCreate: SHM_DP_ADM_KEY (addr: 06640040, size: 4653368)
    DpShMCreate: allocated sys_adm at 06640040
    DpShMCreate: allocated wp_adm at 06641E40
    DpShMCreate: allocated tm_adm_list at 066465C0
    DpShMCreate: allocated tm_adm at 066465F0
    DpShMCreate: allocated wp_ca_adm at 06A15890
    DpShMCreate: allocated appc_ca_adm at 06A1B650
    DpShMCreate: allocated comm_adm at 06A1D590
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 06A9E450
    DpShMCreate: allocated gw_adm at 06A9E490
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 06A9E4C0
    DpShMCreate: allocated wall_adm at 06A9E4C8
    MBUF state OFF
    DpCommInitTable: init table for 500 entries
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation flat
    <EsNT> Memory Reset disabled as NT default
    <ES> 511 blocks reserved for free list.
    ES initialized.
    J2EE server info
    start = TRUE
    state = STARTED
    pid = 1216
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives (PID:272 HANDLE:1560)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1585
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Apr 07 16:10:11 2010
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives (PID:272 HANDLE:1560)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1585
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Apr 07 16:10:12 2010
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives (PID:272 HANDLE:1560)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1585
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Apr 07 16:10:13 2010
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives (PID:272 HANDLE:1560)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1585
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Apr 07 16:10:14 2010
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives (PID:272 HANDLE:1560)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1585
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Apr 07 16:10:15 2010
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives (PID:272 HANDLE:1560)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1585
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Apr 07 16:10:16 2010
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives (PID:272 HANDLE:1560)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1585
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Wed Apr 07 16:10:17 2010
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process died (PID:272 HANDLE:1560)
    [DpProcDied] Process died (PID:1216 HANDLE:1540)
    DpStartStopMsg: send stop message (myname is >blrkec115278d_P1D_00 <)
    NiIMyHostName: hostname = 'blrkec115278d'
    AdGetSelfIdentRecord: > <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
    DpConvertRequest: net size = 189 bytes
    NiBufSend starting
    NiIWrite: hdl 3 sent data (wrt=562,pac=1,MESG_IO)
    MsINiWrite: sent 562 bytes
    send msg (len 110+452) to name -, type 4, key -
    DpStartStopMsg: stop msg sent
    NiIRead: hdl 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 3 recv would block (errno=EAGAIN)
    NiIRead: read for hdl 3 timed out (0ms)
    DpHalt: no more messages from the message server
    DpHalt: send keepalive to synchronize with the message server
    NiBufSend starting
    NiIWrite: hdl 3 sent data (wrt=114,pac=1,MESG_IO)
    MsINiWrite: sent 114 bytes
    send msg (len 110+4) to name MSG_SERVER, type 0, key -
    MsSndName: MS_NOOP ok
    Send 4 bytes to MSG_SERVER
    NiIRead: hdl 3 recv would block (errno=EAGAIN)
    NiIPeek: peek successful for hdl 3 (r)
    NiIRead: hdl 3 received data (rcd=114,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=114
    NiBufIIn: packet complete for hdl 3
    NiBufReceive starting
    MsINiRead: received 114 bytes
    MSG received, len 110+4, flag 3, from MSG_SERVER , typ 0, key -
    Received 4 bytes from MSG_SERVER
    Received opcode MS_NOOP from msg_server, reply MSOP_OK
    MsOpReceive: ok
    MsSendKeepalive : keepalive sent to message server
    NiIRead: hdl 3 recv would block (errno=EAGAIN)
    Wed Apr 07 16:10:18 2010
    NiIPeek: peek for hdl 3 timed out (r; 1000ms)
    NiIRead: read for hdl 3 timed out (1000ms)
    DpHalt: no more messages from the message server
    DpHalt: sync with message server o.k.
    detach from message server
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 11899]
    NiBufSend starting
    NiIWrite: hdl 3 sent data (wrt=110,pac=1,MESG_IO)
    MsINiWrite: sent 110 bytes
    MsIDetach: send logout to msg_server
    MsIDetach: call exit function
    DpMsShutdownHook called
    NiBufISelUpdate: new MODE -- (r-) for hdl 3 in set0
    SiSelNSet: set events of sock 1484 to: ---
    NiBufISelRemove: remove hdl 3 from set0
    SiSelNRemove: removed sock 1484 (pos=3)
    SiSelNRemove: removed sock 1484
    NiSelIRemove: removed hdl 3
    MBUF state OFF
    AdGetSelfIdentRecord: > <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/13
    LOCK WP ca_blk 1
    make DISP owner of wp_ca_blk 1
    DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 15)
    MBUF component DOWN
    NiICloseHandle: shutdown and close hdl 3 / sock 1484
    NiBufIClose: clear extension for hdl 3
    MsIDetach: detach MS-system
    cleanup EM
    EsCleanup ....
    EmCleanup() -> 0
    Es2Cleanup: Cleanup ES2
    ***LOG Q05=> DpHalt, DPStop ( 2800) [dpxxdisp.c 10259]
    Good Bye .....

    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ
    B
    B Wed Apr 07 16:09:10 2010
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\P1D\DVEBMGS00\exe\dboraslib.dll' ...
    B  Library 'D:\usr\sap\P1D\DVEBMGS00\exe\dboraslib.dll' loaded B  Version of 'D:\usr\sap\P1D\DVEBMGS00\exe\dboraslib.dll' is "700.08", patchlevel (0.73) B  New connection 0 created
    M sysno      00
    M sid        P1D
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    75
    M intno      20050900
    M make:      multithreaded, Unicode, optimized
    M pid        3784
    M
    M  kernel runs with dp version 217000(ext=109000) (@(#) DPLIB-INT-VERSION-217000-UC) M  length of sys_adm_ext is 572 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 3784) [dpxxdisp.c   1299]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active M  DpShMCreate: sizeof(wp_adm)  18304 (1408) M  DpShMCreate: sizeof(tm_adm)  3994272 (19872) M  DpShMCreate: sizeof(wp_ca_adm)  24000 (80) M  DpShMCreate: sizeof(appc_ca_adm) 8000 (80) M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    M  DpShMCreate: sizeof(comm_adm)  528064 (1048) M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)  0 (72) M  DpShMCreate: sizeof(vmc_adm)  0 (1440) M  DpShMCreate: sizeof(wall_adm)  (38456/34360/64/184) M  DpShMCreate: sizeof(gw_adm) 48 M  DpShMCreate: SHM_DP_ADM_KEY  (addr: 06640040, size: 4653368) M  DpShMCreate: allocated sys_adm at 06640040 M  DpShMCreate: allocated wp_adm at 06641E40 M  DpShMCreate: allocated tm_adm_list at 066465C0 M  DpShMCreate: allocated tm_adm at 066465F0 M  DpShMCreate: allocated wp_ca_adm at 06A15890 M  DpShMCreate: allocated appc_ca_adm at 06A1B650 M  DpShMCreate: allocated comm_adm at 06A1D590 M  DpShMCreate: system runs without file table M  DpShMCreate: allocated vmc_adm_list at 06A9E450 M  DpShMCreate: allocated gw_adm at 06A9E490 M  DpShMCreate: system runs without vmc_adm M  DpShMCreate: allocated ca_info at 06A9E4C0 M  DpShMCreate: allocated wall_adm at 06A9E4C8 X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation flat
    M  <EsNT> Memory Reset disabled as NT default X  ES initialized.
    M
    M Wed Apr 07 16:09:11 2010
    M  ThInit: running on host blrkec115278d M M Wed Apr 07 16:09:12 2010 M  calling db_connect ...
    C  Prepending D:\usr\sap\P1D\DVEBMGS00\exe to Path.
    C
    C Wed Apr 07 16:09:13 2010
    C  Oracle Client Version: '10.2.0.1.0'
    C  Client NLS settings: AMERICAN_AMERICA.UTF8 C  Logon as OPS$-user to get SAPSR3's password C  Connecting as /@P1D on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   06BF10F8   06BF6694   06BF5F1C
    C  Attaching to DB Server P1D (con_hdl=0,svchp=06BF5E68,svrhp=06C07734)
    C
    C Wed Apr 07 16:09:14 2010
    C  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    [dboci.c      4172]
    C  *** ERROR => CONNECT failed with sql error '12541'
    [dbsloci.c    10933]
    C  Try to connect with default password
    C  Connecting as SAPSR3/<pwd>@P1D on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   06BF10F8   06BF6694   06BF5F1C
    C  Detaching from DB Server (con_hdl=0,svchp=06BF5E68,srvhp=06C07734)
    C  Attaching to DB Server P1D (con_hdl=0,svchp=06BF5E68,svrhp=06C07734)
    C
    C Wed Apr 07 16:09:16 2010
    C  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    [dboci.c      4172]
    C  *** ERROR => CONNECT failed with sql error '12541'
    [dbsloci.c    10933]
    B  ***LOG BY2=> sql error 12541  performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> ORA-12541: TNS:no listener [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 12541  performing CON [dblink#3 @ 431] [dblink  0431 ] B  ***LOG BY0=> ORA-12541: TNS:no listener [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1411]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10156]
    M
    M  Info for wp 0
    M
    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = V-1
    M
    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server blrkec115278d_P1D_00 on host blrkec115278d (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Wed Apr 07 16:09:16 2010
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10354
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************
    M
    M  PfStatDisconnect: disconnect statistics M  Entering TH_CALLHOOKS M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260] M  Entering ThSetStatError M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0) M  Entering ThReadDetachMode M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 3784) [dpnttool.c   327]

  • APPLICATION SERVER not starting      SSO

    Hi ,
    I am not able to start our application server, the instance starts and then it shuts down.
    Following is the Log of dev_w0...
    File "/usr/sap/HSP/SYS/exe/run/libsnckrb5.so" dynamically loaded as SNC-Adapter.
    N    The Adapter identifies as:
    N    External SNC-Adapter (Rev 1.0) to Kerberos 5/GSS-API v2
    N  *** ERROR => SncPSetNewName()==SNCERR_PLAUSI  [sncxx*.c 2560]
    N        GSS-API(maj): An invalid name was supplied
    N      Cleanup: trying to release GSSAPI internal name
    N      gss_name_t="ptr: 112659610"
    N  SncInit():   found snc/identity/as=p:host/[email protected]
    N  *** ERROR => SncPAcquireCred()==SNCERR_GSSAPI  [sncxxall.c 1510]
    N        GSS-API(maj): Unspecified GSS failure.  Minor code may provide more information
    N        GSS-API(min): No principal in keytab matches desired name
    N      Could't acquire ACCEPTING credentials for

    N      name="p:host/[email protected]"
    M  *** ERROR => ErrISetSys: error info too large [err.c        945]
    Please look into it.
    Thanks
    Nitish

    Hi,
    I was able to resolve this issue earlier with the below reference.
    please check the doc ID 657411.1 on oracle support .(E-AS: exec PSSRCHSRV: CMDTUX_CAT:1685: ERROR: Application initialization failure [ID 657411.1])
    It says the error might be because of the Add to Path.
    check if this helps you in resolving the issue.
    Shilpa

  • Application Server Not Booting Up.. Urgent Help Required

    Hi,
    I am unable to boot the Application Server. Could anyone plz help me on this.
    Thanks a lot,
    Shuaib Shahzan
    PeopleSoft Domain Boot Menu
    Domain Name: CRMD
    1) Boot (Serial Boot)
    2) Parallel Boot
    q) Quit
    Command to execute (1-2, q) [q]: 1
    psappsrv.cfg has changed archiving old one...
    Copying CRMD/Archive/psappsrv.cfg to CRMD/Archive/psappsrv_071409_0628_58.cfg
    Attempting to boot bulletin board...
    tmadmin - Copyright (c) 1996-1999 BEA Systems, Inc.
    Portions * Copyright 1986-1997 RSA Data Security, Inc.
    All Rights Reserved.
    Distributed under license by BEA Systems, Inc.
    Tuxedo is a registered trademark.
    No bulletin board exists. Entering boot mode.
    INFO: BEA Tuxedo, Version 8.1, 32-bit, Patch Level 135
    INFO: Serial #: 650522264138-1184269388129, Expiration NONE, Maxusers 1000000
    INFO: Licensed to: PeopleSoft - ISV
    Booting admin processes ...
    exec BBL -A :
    process id=32288 ... Started.
    1 process started.
    Attempting to boot ...
    INFO: BEA Tuxedo, Version 8.1, 32-bit, Patch Level 135
    INFO: Serial #: 650522264138-1184269388129, Expiration NONE, Maxusers 1000000
    INFO: Licensed to: PeopleSoft - ISV
    Booting server processes ...
    exec PSWATCHSRV -A -- -ID 91864 -C psappsrv.cfg -D CRMD -S PSWATCHSRV :
    process id=30495 ... Started.
    exec PSAPPSRV -s@../psappsrv.lst -s@../psqcksrv.lst -sICQuery -sSqlQuery:SqlRequest -- -C psappsrv.cfg -D CRMD -S PSAPPSRV :
    process id=30496 ... Started.
    exec PSAPPSRV -s@../psappsrv.lst -s@../psqcksrv.lst -sICQuery -sSqlQuery:SqlRequest -- -C psappsrv.cfg -D CRMD -S PSAPPSRV :
    process id=30764 ... Started.
    exec PSAPPSRV -s@../psappsrv.lst -s@../psqcksrv.lst -sICQuery -sSqlQuery:SqlRequest -- -C psappsrv.cfg -D CRMD -S PSAPPSRV :
    process id=30786 ... Started.
    exec PSAPPSRV -s@../psappsrv.lst -s@../psqcksrv.lst -sICQuery -sSqlQuery:SqlRequest -- -C psappsrv.cfg -D CRMD -S PSAPPSRV :
    process id=31069 ... Started.
    exec PSSAMSRV -A -- -C psappsrv.cfg -D CRMD -S PSSAMSRV :
    process id=31336 ... Started.
    exec PSBRKHND -s PSBRKHND_dflt:BrkProcess -- -C psappsrv.cfg -D CRMD -S PSBRKHND_dflt :
    process id=31360 ... Started.
    exec PSBRKDSP -s PSBRKDSP_dflt:Dispatch -- -C psappsrv.cfg -D CRMD -S PSBRKDSP_dflt :
    process id=31639 ... Started.
    exec PSPUBHND -s PSPUBHND_dflt:PubConProcess -- -C psappsrv.cfg -D CRMD -S PSPUBHND_dflt :
    process id=31919 ... Started.
    exec PSPUBDSP -s PSPUBDSP_dflt:Dispatch -- -C psappsrv.cfg -D CRMD -S PSPUBDSP_dflt :
    CMDTUX_CAT:1863: INFO: Process ID=32186 Assume failed (timeout).
    tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error handler
    exec tmshutdown -qy
    ==============ERROR!================
    Boot attempt encountered errors!. Check the TUXEDO log for details.
    ==============ERROR!================
    Do you wish to see the error messages in the APPSRV.LOG file? (y/n) [n] :y
    PSADMIN.32259 (0) [07/14/09 06:46:21](0) Begin boot attempt on domain CRMD
    PSWATCHSRV.32546 (0) [07/14/09 06:46:30] Checking process status every 120 seconds
    PSWATCHSRV.32546 (0) [07/14/09 06:46:30] Server started
    PSAPPSRV.32547 (0) [07/14/09 06:46:31](0) PeopleTools Release 8.48.16 (Linux) starting
    PSAPPSRV.32547 (0) [07/14/09 06:46:31](0) Cache Directory being used: /usr/pscrm/crm89/appserv/CRMD/CACHE/PSAPPSRV_1/
    PSAPPSRV.32547 (0) [07/14/09 06:46:52](3) (PublishSubscribe): PubSubSystem::InitializeServer(): Initialization succeeded.
    PSAPPSRV.32547 (0) [07/14/09 06:46:52](0) Server started
    PSAPPSRV.32558 (0) [07/14/09 06:46:54](0) PeopleTools Release 8.48.16 (Linux) starting
    PSAPPSRV.32558 (0) [07/14/09 06:46:54](0) Cache Directory being used: /usr/pscrm/crm89/appserv/CRMD/CACHE/PSAPPSRV_2/
    PSAPPSRV.32558 (0) [07/14/09 06:47:15](3) (PublishSubscribe): PubSubSystem::InitializeServer(): Initialization succeeded.
    PSAPPSRV.32558 (0) [07/14/09 06:47:15](0) Server started
    PSAPPSRV.369 (0) [07/14/09 06:47:16](0) PeopleTools Release 8.48.16 (Linux) starting
    PSAPPSRV.369 (0) [07/14/09 06:47:16](0) Cache Directory being used: /usr/pscrm/crm89/appserv/CRMD/CACHE/PSAPPSRV_3/
    PSAPPSRV.369 (0) [07/14/09 06:47:38](3) (PublishSubscribe): PubSubSystem::InitializeServer(): Initialization succeeded.
    PSAPPSRV.369 (0) [07/14/09 06:47:38](0) Server started
    PSAPPSRV.652 (0) [07/14/09 06:47:39](0) PeopleTools Release 8.48.16 (Linux) starting
    PSAPPSRV.652 (0) [07/14/09 06:47:39](0) Cache Directory being used: /usr/pscrm/crm89/appserv/CRMD/CACHE/PSAPPSRV_4/
    PSAPPSRV.652 (0) [07/14/09 06:48:00](3) (PublishSubscribe): PubSubSystem::InitializeServer(): Initialization succeeded.
    PSAPPSRV.652 (0) [07/14/09 06:48:00](0) Server started
    PSSAMSRV.928 (0) [07/14/09 06:48:01](0) PeopleTools Release 8.48.16 (Linux) starting
    PSSAMSRV.928 (0) [07/14/09 06:48:01](0) Cache Directory being used: /usr/pscrm/crm89/appserv/CRMD/CACHE/PSSAMSRV_100/
    PSSAMSRV.928 (0) [07/14/09 06:48:22](0) Server started
    PSBRKHND_dflt.946 (0) [07/14/09 06:48:23](0) PeopleTools Release 8.48.16 (Linux) starting
    PSBRKHND_dflt.946 (0) [07/14/09 06:48:23](0) Cache Directory being used:
    /usr/pscrm/crm89/appserv/CRMD/CACHE/PSBRKHND_dflt_101/
    PSBRKHND_dflt.946 (0) [07/14/09 06:48:44](3) (PublishSubscribe): PubSubSystem::InitializeServer(): Initialization succeeded.
    PSBRKHND_dflt.946 (0) [07/14/09 06:48:44](0) Server started
    PSBRKDSP_dflt.1223 (0) [07/14/09 06:48:45](0) PeopleTools Release 8.48.16 (Linux) starting
    PSBRKDSP_dflt.1223 (0) [07/14/09 06:48:45](0) Cache Directory being used:
    /usr/pscrm/crm89/appserv/CRMD/CACHE/PSBRKDSP_dflt_100/
    PSBRKDSP_dflt.1223 (0) [07/14/09 06:49:06](3) (PublishSubscribe): PubSubSystem::InitializeServer(): Initialization succeeded.
    PSBRKDSP_dflt.1223 (0) [07/14/09 06:49:06](0) Server started
    PSPUBHND_dflt.1512 (0) [07/14/09 06:49:07](0) PeopleTools Release 8.48.16 (Linux) starting
    PSPUBHND_dflt.1512 (0) [07/14/09 06:49:07](0) Cache Directory being used:
    /usr/pscrm/crm89/appserv/CRMD/CACHE/PSPUBHND_dflt_201/
    PSPUBHND_dflt.1512 (0) [07/14/09 06:49:28](3) (PublishSubscribe): PubSubSystem::InitializeServer(): Initialization succeeded.
    PSPUBHND_dflt.1512 (0) [07/14/09 06:49:28](0) Server started
    PSPUBDSP_dflt.1539 (0) [07/14/09 06:49:29](0) PeopleTools Release 8.48.16 (Linux) starting
    PSPUBDSP_dflt.1539 (0) [07/14/09 06:49:29](0) Cache Directory being used:
    /usr/pscrm/crm89/appserv/CRMD/CACHE/PSPUBDSP_dflt_200/
    PSPUBDSP_dflt.1539 (0) [07/14/09 06:49:50](3) (PublishSubscribe): PubSubSystem::InitializeServer(): Initialization succeeded.
    PSPUBDSP_dflt.1539 (0) [07/14/09 06:50:56](0) Server started
    PSWATCHSRV.32546 (0) [07/14/09 06:50:58] Shutting down
    PSADMIN.32259 (0) [07/14/09 06:51:04](0) End boot attempt on domain CRMD
    Do you wish to see the error messages in the TUXLOG.071409 file? (y/n) [n] :y
    064621.psdwa1.lgc.com!PSADMIN.32259: Begin attempt on domain CRMD
    064623.psdwa1.lgc.com!tmadmin.32270.1124032.-2: TMADMIN_CAT:1330: INFO: Command: boot -A
    064625.psdwa1.lgc.com!tmboot.32287.3084019392.-2: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064625.psdwa1.lgc.com!tmboot.32287.3084019392.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 60 seconds
    064625.psdwa1.lgc.com!tmboot.32287.3084019392.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
    064628.psdwa1.lgc.com!BBL.32288.3083253440.0: 07-14-2009: Tuxedo Version 8.1, 32-bit, Patch Level 135
    064628.psdwa1.lgc.com!BBL.32288.3083253440.0: LIBTUX_CAT:262: INFO: Standard main starting
    064630.psdwa1.lgc.com!tmboot.32311.2250432.-2: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064630.psdwa1.lgc.com!tmboot.32311.2250432.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 60 seconds
    064630.psdwa1.lgc.com!tmboot.32311.2250432.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
    064630.psdwa1.lgc.com!PSWATCHSRV.32546.3075246304.-2: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064630.psdwa1.lgc.com!PSWATCHSRV.32546.3075246304.-2: LIBTUX_CAT:262: INFO: Standard main starting
    064631.psdwa1.lgc.com!PSAPPSRV.32547.3034003136.0: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064631.psdwa1.lgc.com!PSAPPSRV.32547.3034003136.0: LIBTUX_CAT:262: INFO: Standard main starting
    064654.psdwa1.lgc.com!PSAPPSRV.32558.3034003136.0: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064654.psdwa1.lgc.com!PSAPPSRV.32558.3034003136.0: LIBTUX_CAT:262: INFO: Standard main starting
    064716.psdwa1.lgc.com!PSAPPSRV.369.3034003136.0: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064716.psdwa1.lgc.com!PSAPPSRV.369.3034003136.0: LIBTUX_CAT:262: INFO: Standard main starting
    064739.psdwa1.lgc.com!PSAPPSRV.652.3034003136.0: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064739.psdwa1.lgc.com!PSAPPSRV.652.3034003136.0: LIBTUX_CAT:262: INFO: Standard main starting
    064801.psdwa1.lgc.com!PSSAMSRV.928.3042309824.0: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064801.psdwa1.lgc.com!PSSAMSRV.928.3042309824.0: LIBTUX_CAT:262: INFO: Standard main starting
    064823.psdwa1.lgc.com!PSBRKHND.946.3041949376.-2: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064823.psdwa1.lgc.com!PSBRKHND.946.3041949376.-2: LIBTUX_CAT:262: INFO: Standard main starting
    064845.psdwa1.lgc.com!PSBRKDSP.1223.3041949376.-2: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064845.psdwa1.lgc.com!PSBRKDSP.1223.3041949376.-2: LIBTUX_CAT:262: INFO: Standard main starting
    064907.psdwa1.lgc.com!PSPUBHND.1512.3041949376.-2: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064907.psdwa1.lgc.com!PSPUBHND.1512.3041949376.-2: LIBTUX_CAT:262: INFO: Standard main starting
    064929.psdwa1.lgc.com!PSPUBDSP.1539.3041949376.-2: 07-14-2009: Tuxedo Version 8.1, 32-bit
    064929.psdwa1.lgc.com!PSPUBDSP.1539.3041949376.-2: LIBTUX_CAT:262: INFO: Standard main starting
    065028.psdwa1.lgc.com!tmboot.32311.2250432.-2: CMDTUX_CAT:1859: ERROR: Server process ID 1539 failed to initialize within 60
    seconds
    065028.psdwa1.lgc.com!tmboot.32311.2250432.-2: tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error
    handler
    065056.psdwa1.lgc.com!PSPUBDSP.1539.3041949376.-2: LIBTUX_CAT:252: WARN: Cannot synchronize with tmboot...continuing
    065101.psdwa1.lgc.com!BBL.32288.3083253440.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
    065104.psdwa1.lgc.com!PSADMIN.32259: End boot attempt on domain CRMD
    Press Enter to continue...

    065028.psdwa1.lgc.com!tmboot.32311.2250432.-2: CMDTUX_CAT:1859: ERROR: Server process ID 1539 failed to initialize within 60 seconds
    Did you retry ? What is your OS ? Does your server not too much overloaded ?
    Nicolas.

  • Uploading and reading file from application server

    Hi
    My problem is when am uploading a file to application server it is getting stored in
    usr/sap/transyp1/prod/in   directory
    after that i want to read that file from application server to update database
    when  using below code it is showing some other directory in f4 help
    DATA: lv_hostname TYPE msxxlist-name.
    DATA: lv_server TYPE bank_dte_jc_servername.
    PARAMETERS: p_file TYPE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL FUNCTION 'BANK_API_SYS_GET_CURR_SERVER'
    IMPORTING
    e_server = lv_server.
    lv_hostname = lv_server.
    CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
    EXPORTING
    dynpfield_filename = 'P_FILE'
    dyname = sy-cprog
    dynumb = '1000'
    filetype = 'P'
    location = 'A'
    server = lv_hostname.
    experts could you please help me out
    Thanks & Regards
    Nagesh.Paruchuri

    User Transaction file. You will get all logical file path names.
    used following fucntion module to read file name and use command open dataset to read the file.
    CALL FUNCTION 'FILE_GET_NAME'
           EXPORTING
                CLIENT           = SY-MANDT
                LOGICAL_FILENAME = C_LOGICAL_FILENAME
                OPERATING_SYSTEM = SY-OPSYS
                PARAMETER_1      = P_IN_FILENAME
           IMPORTING
                FILE_NAME        = P_OUT_FILENAME
           EXCEPTIONS
                FILE_NOT_FOUND   = 1
                OTHERS           = 2.
    OPEN DATASET P_OPEN_FILE ENCODING UTF-8 IN TEXT MODE FOR OUTPUT.
      IF SY-SUBRC <> 0.
        MESSAGE E000(38) WITH 'Error in Opening file: ' V_PHY_FILENAME.
      ENDIF.

  • Problem  in reading file from application server

    while reading the file from application server i am succesful in reading from dataset but the program gets terminated giving a runtime error "CONVT_CODEPAGE".
    the code written is as below :
    open dataset d1 for input in text mode encoding default.
    IF sy-subrc NE 0.
    EXIT.
    ENDIF.
    do.
                    Read dataset d1 into btab.
         if sy-subrc <> 0.
         exit.
                   else.
                   condense btab NO-GAPS.
                   wtt_text-text1 = btab-wa+0(10).
                   wtt_text-text2 = btab-wa+10(1).
                   wtt_text-text3 = btab-wa+11(3).
                  append wtt_text.
                  clear wtt_text.
                  wt_counter = wt_counter + 1.
                  ENDIF.
    enddo.
    write : /10 ' number of records :'.
    write :  wt_counter.
    kindly help me asap.
    regards,
    rachu.

    If I am not wrong you are working on a Unicode enabled system. That is why this error is coming.
    Look at the link below, where the solution is provided.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c554dcb3dc11d5993800508b6b8b11/content.htm
    open dataset DSN in text mode for output encoding utf-8.
    Regards,
    Ravi
    Note - Please close the thread by selecting PROBLEM SOLVED against the answer which helped your most, if the issue is resolved.

  • My sun java application server not run and give me error

    hi master
    sir i use
    sun java system with studio creator but when i start deployment server
    that give me this error
    ==================
    The sun java system application server 8.2 could not start.
    more information about the cause is in the server log file .
    possible reasons include:
    -Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
    -Incorrect server configuration (domain.xml to be corrected muanually)
    -Corrupted Deployed Application preventing the server to start.(this can be seen in the server.log file. in the case, domain.xml needs to be modified).
    ==========
    this is my server.log file
    =======
    [#|2007-10-23T09:43:55.144+0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER003:The Launcher encountered a problem with the configuration data from either domain.xml or processLauncher.xml.  The launcher could not continue processing the request.
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:D:\Creator2_1\SunAppServer8\domains\creator/config/domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:368)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:450)
    at com.sun.enterprise.config.impl.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:241)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getDomainBean(ServerBeansFactory.java:74)
    at com.sun.enterprise.config.serverbeans.ConfigAPIHelper.getDomainConfigBean(ConfigAPIHelper.java:57)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildInternalCommand(ProcessLauncher.java:429)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildCommand(ProcessLauncher.java:404)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.process(ProcessLauncher.java:204)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.main(ProcessLauncher.java:128)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
    at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:345)
    ... 8 more
    Caused by: org.xml.sax.SAXParseException: Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1027)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:851)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
    ... 10 more
    |#]
    [#|2007-10-23T09:58:09.886+0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER003:The Launcher encountered a problem with the configuration data from either domain.xml or processLauncher.xml.  The launcher could not continue processing the request.
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:D:\Creator2_1\SunAppServer8\domains\creator/config/domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:368)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:450)
    at com.sun.enterprise.config.impl.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:241)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getDomainBean(ServerBeansFactory.java:74)
    at com.sun.enterprise.config.serverbeans.ConfigAPIHelper.getDomainConfigBean(ConfigAPIHelper.java:57)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildInternalCommand(ProcessLauncher.java:429)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildCommand(ProcessLauncher.java:404)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.process(ProcessLauncher.java:204)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.main(ProcessLauncher.java:128)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
    at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:345)
    ... 8 more
    Caused by: org.xml.sax.SAXParseException: Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1027)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:851)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
    ... 10 more
    |#]
    [#|2007-10-23T10:12:34.768+0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER003:The Launcher encountered a problem with the configuration data from either domain.xml or processLauncher.xml.  The launcher could not continue processing the request.
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:D:\Creator2_1\SunAppServer8\domains\creator/config/domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:368)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:450)
    at com.sun.enterprise.config.impl.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:241)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getDomainBean(ServerBeansFactory.java:74)
    at com.sun.enterprise.config.serverbeans.ConfigAPIHelper.getDomainConfigBean(ConfigAPIHelper.java:57)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildInternalCommand(ProcessLauncher.java:429)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildCommand(ProcessLauncher.java:404)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.process(ProcessLauncher.java:204)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.main(ProcessLauncher.java:128)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
    at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:345)
    ... 8 more
    Caused by: org.xml.sax.SAXParseException: Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1027)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:851)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
    ... 10 more
    |#]
    [#|2007-10-23T11:10:28.081+0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER003:The Launcher encountered a problem with the configuration data from either domain.xml or processLauncher.xml.  The launcher could not continue processing the request.
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:D:\Creator2_1\SunAppServer8\domains\creator/config/domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:368)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:450)
    at com.sun.enterprise.config.impl.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:241)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getDomainBean(ServerBeansFactory.java:74)
    at com.sun.enterprise.config.serverbeans.ConfigAPIHelper.getDomainConfigBean(ConfigAPIHelper.java:57)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildInternalCommand(ProcessLauncher.java:429)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildCommand(ProcessLauncher.java:404)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.process(ProcessLauncher.java:204)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.main(ProcessLauncher.java:128)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
    at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:345)
    ... 8 more
    Caused by: org.xml.sax.SAXParseException: Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1027)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:851)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
    ... 10 more
    |#]
    [#|2007-10-23T12:58:46.034+0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER003:The Launcher encountered a problem with the configuration data from either domain.xml or processLauncher.xml.  The launcher could not continue processing the request.
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:D:\Creator2_1\SunAppServer8\domains\creator/config/domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:368)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:450)
    at com.sun.enterprise.config.impl.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:241)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getDomainBean(ServerBeansFactory.java:74)
    at com.sun.enterprise.config.serverbeans.ConfigAPIHelper.getDomainConfigBean(ConfigAPIHelper.java:57)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildInternalCommand(ProcessLauncher.java:429)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.buildCommand(ProcessLauncher.java:404)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.process(ProcessLauncher.java:204)
    at com.sun.enterprise.tools.launcher.ProcessLauncher.main(ProcessLauncher.java:128)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "name" was already specified for element "jdbc-connection-pool".
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
    at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
    at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:345)
    ... 8 more
    Caused by: org.xml.sax.SAXParseException: Attribute "name" was already specified for element "jdbc-connection-pool".
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1027)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:851)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
    ... 10 more
    |#]
    please how i start my application server
    thank's
    aamir

    Please see the following FAQ:
    Why doesn't application server Start.
    http://developers.sun.com/jscreator/reference/faqs/technical/depsrvs/index.jsp

  • Dynamically Reading Files From Application Server

    Hi Experts,
    Presently I have to write a program which reads files from the application server dynamically. This program will be scheduled in the background with the frequency of half an hour.
    I am Using the function module
    CALL FUNCTION 'SUBST_GET_FILE_LIST'
    EXPORTING
    DIRNAME = '/usr/sap/xxx/xxx/'
    FILENM = 'DATASET'
    PATTERN = '.txt'
    TABLES
    FILE_LIST = IT_FILELIST
    I am facing problem in specifying the parameter FILENM in the function module,
    As I have to read many files from the apps server. How to assign the parameter of function module so it can take the many files generated in the apps server.
    Thanks in Advance,
    Regards,
    Irfan Hussain

    Hi,
    Instead of the above FM, you can use the following code :
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR po_ifile.
    PERFORM get_current_directory  USING 'PO_IFILE'   po_ifile
                                              rov-home_dir rov-curr_dir.
        PERFORM get_filename-of-server TABLES itab_filename
                                           USING  rov-curr_dir rov-gen_name.
        PERFORM help_values_get_with_table_ext TABLES itab_filename
                                           USING  rov-curr_dir
                                                       po_ifile.
    *&      Form  get_current_directory
          text
         -->P_0023   text
         -->P_PO_IFILE  text
         -->P_ROV_HOME_DIR  text
         -->P_ROV_CURR_DI  text
         -->P_CALL  text
         -->P_FUNCTION  text
         -->P_0029   text
         -->P_IMPORTING  text
         -->P_FILE_NAME  text
         -->P_=  text
         -->P_PO_IFILE  text
      FORM get_current_directory  USING _fieldname
                                        _filename
                                        homedir
                                        currdir.
        IF _fieldname <> space.
          PERFORM dunp_value_read USING _fieldname _filename.
        ENDIF.
        IF _filename = space.
          currdir = homedir.
        ELSE.
          rov-work_dir = _filename.
          rov-fdpos = STRLEN( rov-work_dir ).
          DO.
            IF rov-fdpos = 0.
              EXIT.
            ENDIF.
            rov-fdpos = rov-fdpos - 1.
            ASSIGN rov-work_dir+rov-fdpos(1) TO <rov_p>.
            IF <rov_p> = rov-delchar.
              <rov_p> = space.
              EXIT.
            ELSE.
              <rov_p> = space.
            ENDIF.
          ENDDO.
          currdir = rov-work_dir.
        ENDIF.
      ENDFORM.                    " get_current_directory
    *&      Form  get_filename-of-server
          text
         -->P_ITAB_FILENAME  text
         -->P_ROV_CURR_DIR  text
         -->P_ROV_GEN_NAME  text
      FORM get_filename-of-server TABLES nametab STRUCTURE itabfilename
                                  USING  _dirname _genname.
        CALL 'C_DIR_READ_FINISH'             " just to be sure
                               ID 'ERRNO'  FIELD rov-errno
                               ID 'ERRMSG' FIELD rov-errmsg.
        CALL 'C_DIR_READ_START' ID 'DIR'    FIELD _dirname
                                ID 'FILE'   FIELD _genname
                                ID 'ERRNO'  FIELD rov-errno
                                ID 'ERRMSG' FIELD rov-errmsg.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        REFRESH _nametab.
        DO.
          CLEAR _nametab.
          CALL 'C_DIR_READ_NEXT'  ID 'TYPE'   FIELD _nametab-type
                                  ID 'NAME'   FIELD _nametab-name
                                  ID 'LEN'    FIELD _nametab-len
                                  ID 'OWNER'  FIELD _nametab-owner
                                  ID 'MTIME'  FIELD _nametab-mtime
                                  ID 'MODE'   FIELD _nametab-mode
                                  ID 'ERRNO'  FIELD _nametab-errno
                                  ID 'ERRMSG' FIELD _nametab-errmsg.
          _nametab-dirname = _dirname.
          MOVE sy-subrc TO _nametab-subrc.
          CASE sy-subrc.
            WHEN 0.
              IF _nametab-name+0(1) = '.'.
              ELSE.
                APPEND _nametab.
              ENDIF.
            WHEN 1.
              EXIT.
            WHEN OTHERS.                     " SY-SUBRC >= 2
              EXIT.
          ENDCASE.
        ENDDO.
        CALL 'C_DIR_READ_FINISH'             " just to be sure
                               ID 'ERRNO'  FIELD rov-errno
                               ID 'ERRMSG' FIELD rov-errmsg.
      ENDFORM.                    " get_filename-of-server
    *&      Form  help_values_get_with_table_ext
          text
         -->P_ITAB_FILENAME  text
         -->P_ROV_CURR_DIR  text
         -->P_PO_IFILE  text
      FORM help_values_get_with_table_ext  TABLES _filename
                                                 STRUCTURE itab_filename
                                          USING  _currdir
                                                _selfile.
        TYPES: BEGIN OF f4typ_head_struc,
                 tabname LIKE help_info-tabname,
                 fieldname LIKE help_info-fieldname,
                 head_text LIKE shstruc-keyword,
               END OF f4typ_head_struc.
       DATA itab_fields    LIKE TABLE OF help_value        WITH HEADER LINE.
       DATA itab_selvals   LIKE TABLE OF help_vtab         WITH HEADER LINE.
       DATA itab_values    LIKE TABLE OF rlgrap-filename   WITH HEADER LINE.
       DATA itab_header    TYPE TABLE OF f4typ_head_struc  WITH HEADER LINE.
        REFRESH itab_fields.
        REFRESH itab_selvals.
        REFRESH itab_values.
        REFRESH itab_header.
        itab_fields-tabname    = 'PS0192'.
        itab_fields-fieldname  = 'BAA01'.
        itab_fields-selectflag = ' '.
        APPEND itab_fields.
        itab_fields-tabname    = 'RLGRAP'.
        itab_fields-fieldname  = 'FILENAME'.
        itab_fields-selectflag = 'X'.
        APPEND itab_fields.
        LOOP AT _filename.
          itab_values = itab_filename-type.
          APPEND itab_values.
          itab_values = itab_filename-name.
          APPEND itab_values.
        ENDLOOP.
        CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE_EXT'
           EXPORTING
            CUCOL                         = 0
            CUROW                         = 0
            DISPLAY                       = ' '
            FIELDNAME                     = ' '
            TABNAME                       = ' '
            TITLE_IN_VALUES_LIST          = ' '
            SHOW_ALL_VALUES_AT_FIRST_TIME = ' '
            USE_USER_SHRINKING            = ' '
                titel                         = _currdir
            NO_SCROLL                     = ' '
            NO_CONVERSION                 = ' '
            NO_MARKING_OF_CHECKVALUE      = ' '
           IMPORTING
                index                         = rov-index
                select_value                  = rov-selvalue
             TABLES
                  fields                        = itab_fields
                  select_values                 = itab_selvals
                  valuetab                      = itab_values
            HEADING_TABLE                 =
             EXCEPTIONS
                  field_not_in_ddic             = 1
                  more_then_one_selectfield     = 2
                  no_selectfield                = 3
                  OTHERS                        = 4.
        IF sy-subrc = 0.
          CLEAR itab_filename.
          READ TABLE itab_filename INDEX rov-index.
          IF itab_filename-type+0(3) = 'dir'.
            CONCATENATE _currdir rov-delchar rov-selvalue  rov-delchar
                                                          INTO _selfile.
          ELSE.
            CONCATENATE _currdir rov-delchar rov-selvalue INTO _selfile.
          ENDIF.
        ENDIF.
      ENDFORM.                    " help_values_get_with_table_ext
    Best regards,
    Prashant

  • Unable to read file from application server

    Hi guys,
    I am reading file(could be any extension) from application server,but some time i am successfuly able to read file and sometime unable to read,why its happening .
    my code is here
    OPEN DATASET E_FILE FOR INPUT IN  BINARY MODE . "
      IF SY-SUBRC = 0.
        DO .
          READ DATASET E_FILE INTO GS_PDF_TAB.
          IF SY-SUBRC = 0.
            APPEND GS_PDF_TAB TO GT_PDF_TAB.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
        CLOSE DATASET E_FILE.
      ENDIF.
    Thanks
    Ankur Sharma

    Hi,
    What actually happens?  Do you get a short dump?  Do you get a return code ne 0?  Does it run fine but you get no data in your table?
    We aren't mind-readers and can't help much without more information.
    Try using transaction AL11 to see if you access the files you are trying to open.
    Gareth.

Maybe you are looking for