Skip to Content
author's profile photo Former Member
Former Member

Painfully dumb question

I'm messing with JCo and, yes, I'm new to SAP. So, I have some really silly questions that stem from shallow 'sap semantics' knowledge on my part.

client = JCO.createClient( "00",// SAP client

"Administrator",// userid

"<whatever>", // password

"EN", // language

"localhost", // host name

"05" ); // system number

i) Can the client be anything? Is if just an arbitrary identifier used to identify the client in some namespace?

ii) Is the password plain text or do I have to encode it in some way?

iii) Is sap/j2ee picky regarding the hostname being 'localhost' versus the computer hostname? Should I expect 'localhost' to be good enough or should I use the specific host name?

iv) The system number, that's been bugging me. I have a system number that is higher than the default do to several failed install attempts. I think mine is '04', but on my windows file system my 'usr' directory is

c:/usr/sap/AH4/JC04

c:/usr/sap/AH4/SCS05

So I guess I'm ignorant as to the distinction between the 'AH4' and the JC04 and the SCS05.

Is my system number 4, or 5? Is one the J2EE engine and the other is the sap number?

Anyone who could clarify my ignorance will be thanked.

-Andrew

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2005 at 05:50 PM

    I guess I'm also vague on an obvious fundamental as well:

    Having installed the Netweaver Suite, does this mean I have an SAP instance installed locally, or is the database that's there simply a DB to support the J2EE engine. I guess I don't fundamentally understand that distiction between the Netweaver-WAS and SAP itself. Should I be expected to be able to use JCo to my local instance or should I simple connect to one of my companies dev boxes that I have accounts on?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 05, 2005 at 05:16 PM

    Hi Andrew,

    i suppose, you want to connect to a SAP system with <b>ABAP</b> stack (e.g. R/3 Enterprise) with your JCo-Connection.

    Therefor your answers would be:

    i) client is the client of the SAP system (it's 3 digits btw.)

    ii) the password is plain-text. but you could also deal with SSO (SingleSignOn) scenarios, in which a password isn't needed

    iii) as hostname you can use anything the computer on that the programm is running can resolve. but I don't believe, you're running a SAP system on your developing machine, so you wouldn't use "localhost"

    iv) use the system number of your SAP system.

    all the connection parameters (except user/password) can be obtained by the entries, that you have in your sap-logon(pad) for your sap system.

    kr, achim

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Your response was very kind and appreciated. I did have success in the meantime in connecting to a development SAP/R3 system in house hear. I am coming to have more of an understaning about what comes along with the Netweaver development kit, and what does not. Thanks very much for your tips. Most of my trouble is terminology, and I am learning. Danke.

  • Posted on Feb 08, 2005 at 03:03 PM

    Even you found an answer on most of this already I'd like to clarify some points:

    > ii) Is the password plain text or do I have to encode

    > it in some way?

    > iii) Is sap/j2ee picky regarding the hostname being

    > 'localhost' versus the computer hostname? Should I

    > expect 'localhost' to be good enough or should I use

    > the specific host name?

    > iv) The system number, that's been bugging me. I

    > have a system number that is higher than the default

    > do to several failed install attempts. I think mine

    > is '04', but on my windows file system my 'usr'

    > directory is

    > c:/usr/sap/AH4/JC04

    > c:/usr/sap/AH4/SCS05

    This 04 and 05 numbers are numbers of instances, that is an installation of the server on the same host. While JC means the installation of the Java Server part, therefore this would be 5 instances on a single host (if you had 00 to 04). As SCS is the "Server Central Services" (some interprete it as SAP Central Services), this one os for a complete cluster, therefore if you ha SCS00 to SCS05, this would mean the existence of 6 clusters.

    Definitely your numbers are initiated by multiple installations.

    > So I guess I'm ignorant as to the distinction between

    > the 'AH4' and the JC04 and the SCS05.

    The three letter 'AH4' is your SystemID (SID) and believe me, it it not so long ago that I was confused on this also. Especially when I tried to use longer names on early versions of the server....

    > Is my system number 4, or 5? Is one the J2EE engine

    > and the other is the sap number?

    First one yes, second one I already mentioned. It includes the services that are needed once in every cluster, the message server and the Enqueue server. Both are essential to the system. But you have to read the architecture manual to understand them...

    >

    > Anyone who could clarify my ignorance will be

    > thanked.

    Well, I would not call this ignorance 😉

    Regards,

    Benny

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.