JCO - Application Server

Hi
I am trying to make a JCO connection through an application server (single server) instead of message server (load balanced).
I included the application Server in SLD administration.
When I reference this application Server in Webdynpro configuration manager, in JCO connection, all parameters seem to be ok, but I got the error message:
CIM_ERR_FAILED MAXLEN(2) violeted for property AppServNumber.
I filled application server number in the field labeled "number"....should I put this information in some another place too??
Any ideas?
Regards.

Hi Ronaldo,
I don´t know the solution of your problem but the easiest way to get your R/3 system data into SLD is by using SLD supplier bridge and (I think) transaction RZ70 in your R/3 system. When configured correctly the R/3 system sends its data automatically to the SLD server which registers the R/3 system then.
Have a look at Post-Installation Guide of SLD which is available at service marketplace.
Additionally you should know that you need a message server if your are working with Adaptive RFC for retrieving the meta data of your function modules.
In Web Dynpro Administrator you have to define to JCO destionations. One for meta data (message server) and another for model data (message or application server).
Does this help?
Helmut

Similar Messages

  • How To Populate Application Server Dropdown List In JCo Destination

    Hi guys, I'm currently working on EP7 and just finished installing the ESS Business Package. The next step is to maintain the JCo Destinations in the Web Dynpro Console and here's where I got stuck. When I got to step 4.1 the field for the Application Server is a drop down list with no items in the list. How do you populate this list? Thanks in advance!

    Figured it out! Maintain an Web AS ABAP Technical System in the SLD.

  • Use of JCo in JBoss Application Server

    Hi All
    does anyone know if the SAP JCo drivers are supported in other Application Servers (e.g. JBoss 6) ?
    Thanks a lot in advance

    The short answer is yes.
    The longer answer:
    As I am aware of, SAP does not guarantee that they work in application servers other than SAP WebAS per se, but I know that they work at least in Tomcat and Websphere. JCo does not include dependencies on the application server architecture and can also run locally with a Java application on your machine.
    As JCo involves native code, there is a limitation on what Java/OS platform it is supported. For the current JCo 3.0, you may refer to SAP Note 1077727 for compatibility with your Java version and Operating System platform you run with JBoss.
    Edited by: Christian Wunderlich on Jul 14, 2011 6:42 PM [minor spelling fixes]

  • Application server crashes when using JCO

    Hi,
    I am currently dealing with JCO Version 2.1.8.
    For testing purposes, I want to receive data from a Remote Function Module existing in our SAP development system.
    Therefore I created a simple Java servlet:
    public class POA_EDS_Servlet extends HttpServlet {
       private static final long serialVersionUID = 1L;
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       response.setContentType("text/html");
       PrintWriter out = response.getWriter();
       out.println("<html>");
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
         response.setContentType("text/html");
         PrintWriter out = response.getWriter();
         String uri = request.getParameter("uri");
         JCO.Client connection;
         connection = JCO.createClient("200",
                   "DAHMSMA",
                   "EN",
                   "vmw3063.wdf.sap.corp",
                                  "00");
         try {
            connection.connect();
         catch (Exception ex) {
              ex.printStackTrace();
              System.exit(1);
    After deploying and when running this servlet, the application server is crashing. That means I have to restart the server via Remote Desktop Connection.
    Can anybode provide some help?
    Regards
    Marco
    Edited by: Marco Dahms on Sep 8, 2009 3:30 PM
    Edited by: Marco Dahms on Sep 8, 2009 3:33 PM

    Hello there,
    Can you please paste your defaultrace.log here. This log file will show the exception occured before the crash.
    For better debugging always using a logging mechanism and log the messages to a particular file.
    Regards,
    Vivek

  • Error in uploading file from Application server

    Hi
    My scenario is file->XI->Idoc.I am using a senedre file adpator
    My adaptar cofiguration is
    transport protocol NFS
    message protocol file
    Adaptor engine integration server
    source directory .\ (application server path of XI)
    file name invoice.xml
    quality of servise exactly once
    poll interval 10 sec
    proceesing mode test
    processing seq by namefile type text
    But the problem is adaptor monitoring it  is showng that it it polled succesfully with green signal
    but in the message montoring it is showing "Canceled with errors"
    in the detail list it is showing the error category is XI_J2EE_MESSAGING_SYSTEM
    and the error code is CALL_CUSTOMER_ERROR
    Any one can help me in this matter?
    Thanks
    Debraj Roy

    Debraj,
    in SXMB_MONI, go through the "Trace" header section of the message and find the exact point in which the exception occurs. Paste it here.
    At a glance, it seems an RFC call that fails inside the mapping... Do you use JCo & UDF in the mapping to do some lookup/check in R/3?
    Let me know.
    Alex

  • Application Server Not apprearing in dropdown list

    Hello ,
    While  creating JCo Connection , application server is not appearing  in the connection wizard . SLD  server settings are at place and running.
    Thanks in advance

    Hi,
    Hope you are creating a JCo connecton through the content administrator. You can set the properties of the application server while creating the Application data connection type if you are having a single server connection.
    Regards
    Noufal

  • Integration between EP & BW (with multiple application server)

    Hello Experts,
    We are configuring JCo Rfc Provider using visual administrator.
    We have Successfully used Note No##Note 917950 - SAP NetWeaver 2004s:
    Setting Up BEx Web,For Our Development  & QAS BW & EP Server.(Single application Server)
    But on our Production systems which have multiple application servers ( 3 each for EP & BW) at the step of creating RFC Creation we find that the RFC connection (JCO provider) only works when we specify the individual Apps server in the BW Host Field. We are not able to Specify the BW message server in the JCO Connection.
    Kindly help us to resolve this issue.
    With Regards,
    Anshul

    Hi Jim,
    The reason that the documentation specifically spells out IBM Websphere is most likely because it was the application server that we developed and tested with at the time. The important requirement for this type of integration is that this server be an Intel based server running a Microsoft OS. The reason for this is because there are dlls with the Oracle IPM product that enable communication between the IPM functions and the JDE Business functions. If the Enterprise server for JDE is intel based then a JAS can exist on the same server, the dlls can be on that machine and the extra server is not required. This server is only required if the Enterprise server is not intel based. As far as your choice to use Oracle Application Server goes, I really have no basis to say if this works or not. My thought is that it shouldn't matter as long as the JAS server is an intel based, 32 bit server running a Microsoft OS. There are many other variables and lots of experience implementing this type of integration with JDE within the Oracle IPM consulting team. Give us a call if we can help.
    Hope this helps,
    Matt

  • Application server on a XI system

    Hi Guys
    We have installed an Application server on a XI system. Now we have a serious problem.
    Now I see in Visual Administrator 2 Dispatcher and 2 Server. Basically The App server created his own Server in Visual Administrator. My Server 0_0 runs on port 50004. My Server 0_2 runs on port 50204. The JCo`s and everything is the same on the 2 Servers. Basically Server 0_2 clone Server 0_0.
    The problem we have is:  The primary Dispatcher that Xi is using is the one of the App server. When Xi starts running the files it is specifically looking for port 50204.
    Can anyone please tell me where I can change this? So that the primary port 50004 can be used?
    Thanks in Regards
    S.W.

    Problem solve

  • Process Chain - Delete File from Application Server

    Hi Gurus,
    Im working with Process chain, and i have a load from a flat file, so my question is :
    How can i delete that file from the application server after was loaded ?
    THANKS IN ADVANCED !!! I REALLY APRECCIATE YOUR HELP.
    Marcos

    hi,
    I have gone through the forum you have posted for deleting files from application server through process chain.
    I have similar reuirement in my project.
    Can you please provide me the solution?
    Your inputs will be highly appreciated.
    Thanks in advance.
    Regards,
    Lavanya.

  • How to delete file from application server(Unix)

    Hi All,
    Using the below code downloading a file from application server(Unix) to client machine. I want to delete the file from application server once it is downloaded to client
    We work on Forms 11.1.1.4.0 and Oracle DB 10g. Client machine are Windows 7.
    BEGIN
      IF webutil_file_transfer.AS_to_Client
      (clientFile => Name_In('global.g_file_name')
      ,serverFile => ls_AppServer_Loc)THEN
      message('Data exported Successfully');
      ELSE
       message('File download from Application Server failed');
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
      message('File download failed: '||SUBSTR(sqlerrm,1,200));
      END;
    I have search for solution on OTN. Few suggested to use HOST.
    Can any one help me how to use Host() built_in to delete the file.
    Thanks,
    Maddy

    Can any one help me how to use Host() built_in to delete the file.
    Host('/bin/rm <complete file path>');

  • Delete file from application server

    Hi,
       Can any one tell me how to delete a file from application server?
    Thanks,
    Rahul.

    Basic question, please search for available information.
    Thread locked.
    Thomas

  • Use of Open and close data set in to pick up files from application server

    Hi,
    As per my earlier posts i m making a programm which will pick excel sheet from application server and make auto PR by bapi and this all process will be handle by background processing (SM36, SM37). My concer is all proces are working fine but my files are not been picked by application server , when run on my own machine everything is working fine.I never used OPENDATA SET command before , so i have no idea how it will be used , can anyone provide me details with my set of codes where it should be used ....
    sou_dir_name = 'Y:\Sucess\'.
    tar_dir_name = 'Y:\destination\'.
    Open dataset sou_dir_name for input in text mode encoding default.
    if sy-subrc eq 0.
       do.
           read dataset sou_dir_name into file_table.
       if sy-subrc ne 0.
         exit.  " end of file.
    enddo.
    endif.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
          endat.
      endloop.

    Parsing XML data:
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    or alternatively check out ABAP online help for "CALL TRANSFORMATION".
    For creating the material master look at BAPI_STANDARDMATERIAL_CREATE.
    Thomas

  • How to see the file at the application server

    HI TO ALL SDNERS ,
                                 THIS IS MY CODE WHERE TO CHECK THE DOWNLOADED FILE AT THE APPLICATION SERVER.IN TCODE AL11 I HAVE SEEN THERE IS NO FILE GETTING CREATED.WHEN TRANSFERRING THE SY-SUBRC VALUE IS ZERO.
    Program Name        : ZME11_BDC.
    Title               : PURCHASE INFORMATION RECORD LOAD PROGRAM
    Program Objective   : THIS PROGRAM READS IN THE PURCHASE
                          INFORMATION FILE. IT CREATES A BDC SESSION TO
                          USE TO LOAD THE PURCHASE INFORMATION RECORDS
                          INTO SAP using the ME11 Transaction.
    REPORT  ZME11_BDC no standard page heading MESSAGE-ID ZHNC line-size 55.
                constants declaration
    constants: c_x value 'X',
               c_sess type apqi-groupid value 'zcustomer',
               c_xd01 type tstc-tcode value 'ME11'.
                  DECLARING VARIABLES
    DATA: V_MSG(255),
          V_ERREC TYPE I,"NO OF FAILED RECORDS
          V_LINES."NO OF RECORDS
           FLAG DECLARATIONS
    DATA: FG_DATA_EXIST VALUE 'X',"CHECK FOR DATA
          FG_SESSION_OPEN VALUE ''.
          STRUCTURES AND INTERNAL TABLE DECLARATIONS
    TYPES :BEGIN OF TY_PIR,
             LIFNR TYPE EINA-LIFNR,
             MATNR TYPE EINA-MATNR,
             EKORG TYPE EINE-EKORG,
             WERKS TYPE EINE-WERKS,
             VERKF TYPE EINA-VERKF,"sales person
             TELF1 TYPE EINA-TELF1,"telephone
             URZLA TYPE EINA-URZLA,"country
             REGIO TYPE EINA-REGIO,"region
             APLFZ(5),"plan deleivery time
             EKGRP TYPE EINE-EKGRP,"purchase group
             NORBM(13),
             NETPR(13),
         END OF TY_PIR.
    DATA : IT_PIR TYPE TABLE OF TY_PIR,
           WA_PIR LIKE LINE OF IT_PIR.
    DATA: BEGIN OF IT_BDCDATA.
    INCLUDE STRUCTURE BDCDATA.
    DATA END OF IT_BDCDATA.
    DATA : BEGIN OF IT_BDCMSG.
    INCLUDE STRUCTURE BDCMSGCOLL.
    DATA END OF IT_BDCMSG.
                      SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : FNAME TYPE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
                           AT SELECTION ON VALUE REQUEST
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FNAME.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
       FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = FNAME.
                             START OF SELECTION
    START-OF-SELECTION.
    PERFORM F_GET_DATA USING FNAME
                       CHANGING IT_PIR.
    PERFORM F_GENERATE_DATASET USING FNAME
                               CHANGING IT_PIR WA_PIR.
    *&      Form  F_GET_DATA
          text
         -->P_V_FNAME  text
         <--P_IT_PIR  text
    FORM F_GET_DATA  USING    P_FNAME LIKE FNAME
                     CHANGING P_IT_PIR LIKE IT_PIR.
    DATA: LV_FILE TYPE STRING.
    LV_FILE  = FNAME.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = LV_FILE
       FILETYPE                      = 'DAT'
      HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      = P_IT_PIR
    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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF P_IT_PIR IS INITIAL.
    FG_DATA_EXIST = ''.
    ENDIF.
    ENDFORM.                    " F_GET_DATA
    *&      Form  F_GENERATE_DATASET
          text
         -->P_V_FNAME  text
         <--P_IT_PIR  text
    FORM F_GENERATE_DATASET  USING    P_V_FNAME LIKE FNAME
                             CHANGING P_IT_PIR LIKE IT_PIR
                                      P_WA_PIR LIKE WA_PIR.
    MESSAGE I001(ZHNC).
    *OPENING FILE AT THE APPLICATION SERVER FOR WRITING
    OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC  EQ 0.
    MESSAGE I002(ZHNC).
    LOOP AT P_IT_PIR INTO P_WA_PIR.
    SPLIT P_WA_PIR AT '*' INTO P_WA_PIR-LIFNR
                               P_WA_PIR-MATNR
                               P_WA_PIR-EKORG
                               P_WA_PIR-WERKS
                               P_WA_PIR-VERKF
                               P_WA_PIR-TELF1
                               P_WA_PIR-URZLA
                               P_WA_PIR-REGIO
                               P_WA_PIR-APLFZ
                               P_WA_PIR-EKGRP
                               P_WA_PIR-NORBM.
    *TRANSFER THE FILE FROM INTERNAL TABLE TO APPLICATION SERVER
    MESSAGE I003(ZHNC).
    TRANSFER P_WA_PIR TO FNAME.
    ENDLOOP.
    *CLOSING THE FILE AT THE APPLICATION SERVER
    CLOSE DATASET FNAME.
    ENDIF.

    Hello,
    I made a similar program. You can have a look at it.
    *&      Form  write_to_app_server
          text
    -->  p1        text
    <--  p2        text
    FORM write_to_app_server.
    To get filename
      PERFORM get_filename.
    To write into the application server
      OPEN DATASET g_filename_with_path FOR OUTPUT IN TEXT MODE.
      IF sy-subrc = 0.
        LOOP AT <l_table> INTO <l_line>.
          TRANSFER <l_line> TO g_filename_with_path.
        ENDLOOP.
        CLOSE DATASET g_filename_with_path.
      ELSE.
        CLOSE DATASET g_filename_with_path.
      ENDIF.
    To send mail
      PERFORM send_mail.
    ENDFORM.                    " write_to_app_server
    *&      Form  get_filename
          text
    -->  p1        text
    <--  p2        text
    FORM get_filename.
      DATA : l_log_path TYPE  filepath-pathintern
                          VALUE 'Y28M_DOWNLOADS_BACKGROUND' .
      CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
           EXPORTING
                client                     = sy-mandt
                logical_path               = l_log_path
                operating_system           = sy-opsys
                file_name                  = p_fname
           IMPORTING
                file_name_with_path        = g_filename_with_path
           EXCEPTIONS
                path_not_found             = 1
                missing_parameter          = 2
                operating_system_not_found = 3
                file_system_not_found      = 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.                    " get_filename
    You may find it useful.
    Regards,
    Karuna.

  • How Create Virtual Directory On Oracle Application Server 10g on RHEL 5

    Dear Sir
    i have deployed my application on OAS 10g on RHEL 5 ,,now since my application is calling some pro*c programs and then they generate some text based reports on fixed folder named
    /treas/temp
    now i simply have to open these text based reports on web browser
    WEB.SHOW_DOCUMENT('/forms/pcreport/'||v_filename);
    but for that i need to create virtual directory name : " /pcreport " without code
    kindlly help as its working on my developer suit 10g i created a virtual directory in my application server by making following entry in "orion-web.xml" file
    <virtual-directory virtual-path="/pcreport" real-path="/u/treas/temp" />
    kindlly help

    (My paths shown, yours will be different)
    In a text editor :
    /u01/app/oracle/product/midtier/Apache/Apache/conf/httpd.conf
    Add
    Alias /pcreport/ "/u01/app/oracle/product/midtier/forms/pcreport/"
    <Directory "/u01/app/oracle/product/midtier/forms/pcreport/">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Create the pcreport directory.
    Add a simple test page
    vi /u01/app/oracle/product/midtier/forms/pcreport/test.html
    <html>
    <head>
    <title>Simple test page </title>
    <style type="text/css">
    body {
    margin-left: 20%;;
    margin-right: 20%;
    border: 1px dotted gray;
    padding: 10px 10px 10px 10px;
    </style>
    </head>
    <body>
    <p>test!</p>
    </body>
    </html>
    Test
    http://yourserver.com:7777/pcreport/test.html
    Best Regards
    mseberg

  • How to delete the record in the file present in the application server?

    Hi,
      I have two questions.
      i) How can I delete a record based on some condition in the recordx in the file that is present in the application server?
      ii) How can I lock the users whiel one user is accessing the file on the application server?
    Thanks in advance.
    Suvan

    Hi,
    If u want a frequent deletion this approach to delete a record from a file will havee unnecesary copy of records from one file to another and deletion of one file and renaming activities.
    Instead what u can do is Add and field del_flag to ur record structure.
    If u want to delete the record from a file just mark this del_flag as 'X'.
    While processing u can have a loop like
    loop at it_XXX where del_flag <> 'X'.
    endloop.
    This will logically delete the record.
    When u r to finish the application at that time only perform this copying / deleting / and renaing activity
    Hope this helps.
    Cheers,
    Nitin

Maybe you are looking for

  • How do I share my videos/pictures on icloud with other users?

    We have taken videos of Christmas using our iPad.  We have uploaded them to iCloud.  How can we share these videos with our family in other parts of the country?

  • Question regarding line in on Macbook air, early 2014

    Excuse my english, I'm from Sweden. My computer is running OS X 10.9.5 I'm trying to figure out exactly what apple mean by saying: If the computer only has one port for sound then it will be marked with a headphone sign and can be used as both in- an

  • When i try to install lightning it trys to save as a pdf file in adobe

    when i try to install lightning it will only save as a pdf in adobe how do i change that

  • BI server - not in domain

    Hi, My BI server is in Solaris system and is not on domain, i am facing the BI post installation wizard (from portal NWA) running problem, becuase in steps it ask for domain. please suggest is it possible to run the bi post installation wizard withou

  • Android ics 4.0 xperia

    hey people all i can say about this whole deel with verizon holding back this updateit is just stupiid they had better put ics on xperia sony has stated that ics willl be out by the end of march