on 09-03-2008 2:53 PM
Hi,
I want to use JCO and BAPI_USER_CREATE1 to create users in SAP systems, following the steps in the JCO tutorial.
I have difficulties with suppying the import parameters, for example "PASSWORD"
function.getImportParameterList().setValue("XYZ","USERNAME");
is working, but
function.getImportParameterList().setValue("SECRET","PASSWORD");
-->Cannot convert a value of 'GEHEIM' from type java.lang.String to STRUCTURE at field PASSWORD
runs into an error.
Can someone be so kind to provide a code snippet or a link to "how to deal with import structures in JCO"??
Thanx in advance, Dieter
Moin Dieter,
the field password is of type Structure. Hence you will need to something like the following -
JCO.Structure passStructure = function.getImportParameterList().getStructure("PASSWORD");
passStructure.setValue("GEHEIM", "BAPIPWD");
That should do the trick.
T00th
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanx, this is exactly what I was looking for...!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.