11-07-2007 8:02 AM
Hi Gurus,
From Java program, I want to access SAP data using BAPI.
What are the steps and settings ?
Detailed steps help the requirement.
Full points assured for useful answers.
Thanks,
USR
11-07-2007 8:55 AM
hi,
Through JCO conncectivity, you can access SAP Data using BAPI's
you can find JCO connector in internet.
// Change the logon information to your own system/user
mConnection =
JCO.createClient("001", // SAP client
"
OWN_HOST: arasoft1
PARTNER_HOST: hostname
SYSTNR: 00
SYSID: XYZ
CLIENT: 400
USER: TGS
LANGUAGE:
ISO_LANGUAGE:
OWN_CODEPAGE: 1100
OWN_CHARSET: ISO8859_1
OWN_ENCODING: ISO-8859-1
OWN_BYTES_PER_CHAR: 1
PARTNER_CODEPAGE: 1100
OWN_REL: 46D
PARTNER_REL: 46B
PARTNER_TYPE: 3
KERNEL_REL: 46D
TRACE:
RFC_ROLE: C
OWN_TYPE: E
CPIC_CONVID: 31905351
In case you cannot run this sample program successfully, make sure that the system and
user information has been changed to the correct values. Also check that the class path
includes the JCo directory and the sample program itself. If that still does not help, there
is some networking/configuration problem and you need to talk to your SAP Basis
administrator.
regards,
pavan
Message was edited by:
pavan kumar pisipati