Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

help for a JCO rookie: How to feed import parameter into BAPI_USER_CREATE1


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"


is working, but

-->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

Former Member
Former Member replied

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.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question