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

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

Similar Messages

  • If I had a font I used in CS6, how do I import it into CC?

    If I had a font I used in CS6, how do I import it into CC?

    No worries.
    If you are using a font manager, it will either have an activate or install option in it. The help file for the particular font manager likely has the process written down.
    If you are not using a font manager, then depending upon your OS, you simply install them. I am using Windows and so installing a font is as easy as right-clicking on the font file and choosing install. I have no idea how to installa  font on a Mac if that's what you are using. Either OS font installation can easily be Googled, though, if you are not sure.
    Mike

  • How to Pass multiple parameter into single store procedure

    How to Pass multiple parameter into single store procedure
    like a one to many relationship.
    it is possible then reply me immediatly

    you mean like this .....
    CREATE OR REPLACE procedure display_me(in_param in varchar2,in_default in varchar2 := 'Default') is
    BEGIN
    DBMS_OUTPUT.put_line ('Values is .....'||in_param || '....'||in_default);
    END display_me;
    CREATE OR REPLACE procedure display_me_2 as
    cnt integer :=0;
    BEGIN
    For c1_rec In (SELECT empno,deptno FROM test_emp) Loop
         display_me(in_param => c1_rec.empno);
         cnt := cnt+1;
         end loop;
         DBMS_OUTPUT.put_line('Total record count is ....'||cnt);
    END display_me_2;
    SQL > exec display_me_2
    Values is .....9999....Default
    Values is .....4567....Default
    Values is .....2345....Default
    Values is .....7369....Default
    Values is .....7499....Default
    Values is .....7521....Default
    Values is .....7566....Default
    Values is .....7654....Default
    Values is .....7698....Default
    Values is .....7782....Default
    Values is .....7788....Default
    Values is .....7839....Default
    Values is .....7844....Default
    Values is .....7876....Default
    Values is .....7900....Default
    Values is .....7902....Default
    Values is .....7934....Default
    Values is .....1234....Default
    Total record count is ....18

  • How can I import music into iTunes from other media .I have music which was downloaded from my Sony Ericcson W715 into "Media Go" and I want to transfer it into iTunes.Is this possible ?

    How can I import music into iTunes from another media.
    I have a library downloaded from a Sony Ericsson W715 into "Media Go" and I want to transfer to iTunes and then into my iPhone 4.
    Is this possible ?
    Chris
    <Email Edited by Host>

    chrisfromgoodworth clatford wrote:
    How can I import music into iTunes from another media.
    I have a library downloaded from a Sony Ericsson W715 into "Media Go" and I want to transfer to iTunes and then into my iPhone 4.
    Is this possible ?
    Chris
    Possibly. Media Go supports a variety of music formats, some of which can be imported in to iTunes and then synced on to an iPhone, however some of its formats cannot be imported in to iTunes.
    See http://mediago.sony.com/enu/supported-file-formats/ for a list of formats supported by Media Go. iTunes for Windows supports MP3, AAC, WAV, and can import and convert WMA files as well. However iTunes does not support ATRAC, or FLAC.
    Furthermore, if some of your music has been bought from an Internet music store it might be procted by DRM. If so it cannot be imported in to iTunes.
    To do the importing you would either drag the music files in to iTunes, or tell iTunes to open them. See http://support.apple.com/kb/ht1347

  • I have Calendar v 7.0 and Entourage 12.3.6 2008 on OS X 10.9.2. I cannot import Entourage events into Calendar - this was never an issue with iCal. Whats happened and how can I import details into Calendar or do I need iCal back?

    I have Calendar v 7.0 and Entourage 12.3.6 2008 on OS X 10.9.2. I cannot import Entourage events into Calendar - this was never an issue with iCal. Whats happened and how can I import details into Calendar or do I need iCal back?

    adamboettiger wrote:
    Sophos and MacKeeper
    There are many reported problems with both these programs.
    Run through this list of fixes in order, will tune you right up.
    They are in order for a reason.
    ..Step by Step to fix your Mac

  • How do I import Edge into muse?

    How do I import Edge into muse?

    Hi,
    Please refer to the following link http://helpx.adobe.com/en/muse/tutorials/inserting-edge-content-muse-website.html
    Regards,
    Aish

  • How can I import video into iMovie from a DVD?

    How can I import video into iMovie from a DVD?
    Thanks,
    Doug Davis

    You can do this with a free app called MPEG Streamclip and a $20 quicktime component from Apple.
    See detailed instructions here.
    https://discussions.apple.com/docs/DOC-3951

  • How do you import photos into iPhoto from an iPhone?

    how do you import photos into iPhoto from an iPhone?

    1 - with iPhoto open connect the iPhone to your Mac with its USB cable and import.
    OT

  • I created a book cover in Gimp. How do I import it into iBooks Author?

    Probably a simple question, but I'll ask: I created a book cover in Gimp. How do I import it into iBooks Author?

    It can be in portrait orientation or square, but not landscape.
    See:
    https://discussions.apple.com/thread/3775367?start=0&tstart=0

  • How do you import photos into imovie?

    How do you import photos into imovie?

    If you can open a Finder Window to your photos, you can drag them in to an iMovie project from the Finder.
    Some third party apps might support drag and drop, but I haven't got Lightroom to test it. If drag and drop from LightRoom does not work, try exporting from LightRoom into a Finder folder and drag them in from there.

  • How to feed a cluster into the mathscript?

    Hi all,
      I am trying to feed a cluster into the mathscript. I found that if the name of the cluster element does not have any space or special characters, it works pretty well. But it doesn't run if the name of the cluster elements have any special characters. Is it how Mathscript designed? Any workaround here?
    Solved!
    Go to Solution.

    Hey dragondiver,
    Hope you're doing well today. This document overviews the intended use and behavior of data types with MathScript.
    Passing Data in and out of the MathScript Node (MathScript RT Module)
    http://zone.ni.com/reference/en-XX/help/373123C-01/lvtextmathmain/ms_passing_data_lv_mathscript/
    So, to answer your question more specifically, the rule for naming of elements within a cluster passed into the Node is,
    "You must label individual elements of the cluster. Labels must start with an alphabetic character and can contain only alphanumeric characters and underscores without any spaces."
    This should account for the behavior you're seeing with your code!
    Tim A.
    National Instruments

  • Just finished using iTunes, closed out and then tried to get back in.  Got this message "he iTunes library .itl file is locked, on a locked disk, or you do not have write permission for this file."  How can I get back into iTunes ?

    I just finished using iTunes, closed out and then tried to get ack in.  Got this message "The iTunes library .9tl file is locked, on a locked disk, or you do not have write permission for this file."   How can I get back ino iTunes ?

    I actually figured it out...I had to go to the iTunes Library Extras.itdb file and give myself permission to have full control.  THEN, I could go and estore a previos version.  Once I had done this, I got the same message for iTunes Library Genius.itdb . . . I did the same thing with it and Voila'!!
    Hope this helps...
    SVT

  • How to pass a parameter into execute sql task and later use it into dataflow task?

    i am in a situation, where i have a logging table in which i have a primary key called ETL_log_ID which is an identity column and acts as a foreign key for various fact table and dimension tables which are populated using SSIS packages. Now i wanna use the
    ETL_log_ID as a parameter in the execute sql task which populates the log table and pass the same value in the data flow task which populates the facts and dimension. Can you let me know how to pass the parameter in a step by step procedure.
    Thanks,
    Nikhil
      

    Nikhil,
    You can check the following :
    http://www.programmersedge.com/post/2013/03/05/ssis-execute-sql-task-mapping-parameters-and-result-sets.aspx
    http://stackoverflow.com/questions/7610491/how-to-pass-variable-as-a-parameter-in-execute-sql-task-ssis
    Regarding the usage in Dataflow task, Can you elaborate on that a little?
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • Confused...how do I import photos into a particular album?

    I'm trying to import a bunch of Hubble Space Telescope photos into iPhoto. They are in a folder on my hard drive. I'd like them to go into an album I created titled "Astro photos for iPad".
    Is there any way of picking selected photos and importing them directly into that album?
    I rarely use iPhoto, but every time I do, it's a major head-scratcher. I don't know why, but I simply do not understand the interface or organization (folders, albums, events, etc.). The PDF help manual doesn't cover importing photos from the hard drive. I'm sure iPhoto works wonderfully for regular users. I know it's me, not you!
    Where do the imported photos go? Are they in the aether until you, somehow, find them and then drag them into an album? How do you find them?
    It seems that the strategy is to give an import an event name as the way to group them, but then I can't find the event. (It's usually mixed in with a bunch of dated events.)
    Here's the complication in this case. I have dozens of images in that Hubble folder. I'm in iPhoto. I'd like to import selected ones. I have to import them one at a time because I'm checking on which image is which. Then they get lost as they were taken, and saved/dated, at different times. I suppose my only recourse is to create the iPad Hubble folder first outside of iPhoto and then import them in one fell swoop.
    I know this will all sound ridiculous to those who use iPhoto regularly or simply just get it, but I'm lost in space--literally!
    Any suggestions on making my way back to Earth would be greatly appreciated!

    §s.
    Mbonetj wrote:
    I have read through the explanation provided but unfortunately you just explained iPhoto.  I believe the original question was how do you import photos directly into an album and bypass "EVENTS" and "PHOTOS". 
    I know this an old thread but I need help in doing this.  I have my camera connected, and I have created an album specifically that I want these pictures to go into.  Any advise?  Thank you, 
    You can't do it.
    iPhoto works like iTunes. All the tracks are in the Library, each playlist contains references to the tracks in the Library. So a track can be in any number of playlists without using extra disk space.
    In iPhoto, all the phoots are in the LIbrary. Each Album contains references to the photos in the Library. So a photo can be in any number of Albums without using extra disk space.
    Events and Photos are views of the LIbrary. Two doors into the same room, as it were.

  • How to use import parameter to be instead of SQL where sub-sentence ?

    I wrote a RFC to read data from SAP table. To fetch data flexibility, I want to use import parameter xx instead of where sub-sentence in SQL sentence.
       For example, "SELECT * FROM T WHERE XXX",  and "XXX" is a importing parameter.
       How can I use it.
       Thanks a lot.
       Frank.

    FUNCTION ZRFC_04.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(TARGETTABLE) LIKE  MAKT-MAKTX
    *"     VALUE(TWHERE) LIKE  MAKT-MAKTX
    *"  EXPORTING
    *"     VALUE(ZRETURN) LIKE  MAKT-MAKTX
    *"  TABLES
    *"      TMP_TEST1 STRUCTURE  ZTEST1
      DATA:
      TRANSACTION_ID LIKE ARFCTID,
      V_VAILD(1) TYPE C,
      scond(80) TYPE c.
      V_VAILD = 'X'.
    GET PARAMETER twhere fields scond.
    The error " 'LATE FIELDS' expected, not 'TWHERE FIELDS' " generated.

Maybe you are looking for

  • Bc4j:RowScope on a Master Detail page always returns 0 rows for detail

    Hi, I have a problem with a Master Detail page that is called from another page. The Master Detail page has two View Objects, Budgets and Budget Versions. These are linked properly in BC4J and when I use these VOs together I can navigate through the

  • Stop adobe acrobat from asking to reactivate

    Hi, My company is a closed system. So when I need to activate Adobe Acrobat Standard 11 I open up the firewall for that IP and activate. However, Adobe keeps asking to reactivate after a few weeks over and over. Is there any way I can stop that? Than

  • How to view output of SAP Exit variables

    Hi All, I want to view the data of standard SAP Exit variables. For example, for displaying the current date, SAP has provided some variables to use in the report. Can you please guide me where to get all the variables and how to see the output of th

  • Error in groovy expression: Illegal type in constant pool

    Hi, I intermittently get this error on my page: EMGC_OMS1 ERROR] [ http://oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator [tid: userId: SYSMAN ecid: 004emUHK7jA9XbWLHyl3if0002JD0011gG,0:1 APP: emgc URI: ... ... ... :Server Exceptio

  • Submit struts portlet in same window

    hi, i develop a portlet in struts and its running ok, but i click in button submit the portlet is process in full window and not in same page in portlet.