on 07-25-2006 5:17 AM
Hi All,
I have to create JCO at runtime. Based on the SAP client ID, user id,password and system number i have to create JCO. Predefined JCO configuration for a client number thru Portal, is not useful, because i don't know how many users will logon at a time? So, i wish to create JCO based on the user inputs at run time.
I used the following code to create JCO at runtime.
try {
mConnection = JCO.createClient("sapclient",
"userid","password",lanuage,"appserver name", "system number");
mConnection.connect();
}catch (Exception ex) { ex.printStackTrace();
System.exit(1); }
After creating, i got all information like(username,appserver name,system number, etc.)
At this stage i got JCo connection name like 'mConnection'. My question is how to move to next step using mConnection?.
The JcoConnection contains some methods like mConnection.execute(parameter).
1. Is it possible to execute BAPI using JcoConnection created at runtime?
2. How to execute BAPI using JcoConnection created at runtime?
3. Is it necessary to create a model through the wizard in NWDS?
4. If i use execute() method, what are the parameters to be given?
Please help me.
Kind Regards,
S.Saravanan.
Message was edited by: Saravanan S
Message was edited by: Saravanan S
Saravanan,
Refer
1.<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm">Table Manipulation</a>
2.<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm">Example Program</a>.
These two links should answer all your queries.
Good Luck,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.