Setting RFC import structure

Hello Everyone.
What would be the proper way to set an import value for a WSDL RFC call using a model node (not attribute) that has a 0...1 cardinality? I have tried every method to no avail.

I am specifically trying to call the HRWPC_GET_NAV_SUBTREE RFC. The ComplexType_HRROOTOB model object has two attributes of "oBJID" and "oTYPE".
Here is a snippet of my code:
public void wdDoInit(){
Request_HRWPC_GET_NAV_SUBTREEPortType_HRWPC_GET_NAV_SUBTREE subtree_request =  new Request_HRWPC_GET_NAV_SUBTREEPortType_HRWPC_GET_NAV_SUBTREE();
ComplexType_HRWPC_GET_NAV_SUBTREE subtree_parameters = new ComplexType_HRWPC_GET_NAV_SUBTREE();
ComplexType_HRWPC_S_KEYOBJEC subtree_objects = new
ComplexType_HRWPC_S_KEYOBJEC();
ComplexType_HRWPC_S_KEYSTRUC subtree_struct = new
ComplexType_HRWPC_S_KEYSTRUC();
ComplexType_HRROOTOB subtree_root = new ComplexType_HRROOTOB();
subtree_parameters.addRESULT_OBJEC(subtree_objects);
subtree_parameters.addRESULT_STRUC(subtree_struct);
subtree_request.setROOT(subtree_root);
subtree_request.setParameters(subtree_parameters);
wdContext.nodeRequest_HRWPC_GET_NAV_SUBTREE().bind(subtree_request);
wdThis.executeGetNavSubtree();
public void executeGetNavSubtree( )
     String objid = "50000113";
     String otype = "O";
    if(wdContext.nodeRESULT_OBJEC().currentRESULT_OBJECElement() != null){
          objid = wdContext.nodeRESULT_OBJEC().currentRESULT_OBJECElement().getOBJID();
          otype = wdContext.nodeRESULT_OBJEC().currentRESULT_OBJECElement().getOTYPE();
Here is the part where (I assume) the import parameters for the ROOT property need to be set (ComplexType_HRROOTOB), Do you know how specifically do I do this? It is a model node with cardinality 0...1
I have tried something along the lines of this to no avail. It look as if for some reason, the setting of the values to the model node do not work correctly.
ComplexType_HRROOTOB new_root = new ComplexTypeHRROOTOB();
new_root.setOBJID(objid);
new_root.setOTYPE(otype);
OR
wdContext.nodeROOT().currentROOTElement().setOBJID(objid);
wdContext.nodeROOT().currentROOTElement().setOTYPE(otype);
wdContext.nodeSUBTREE_parameters().currentSUBTREE_parametersElement().
       setNAVTYPE(navType);
     //$$begin Service Controller(-901424175)
     IWDMessageManager manager = wdComponentAPI.getMessageManager();
     try{
          wdContext.currentRequest_HRWPC_GET_NAV_SUBTREEElement().modelObject().execute();
          wdContext.nodeSUBTREE_Response().invalidate();
          wdContext.nodeSUBTREE_Result().invalidate();
          wdContext.nodeSUBTREE_RESPONSE_rESULT_STRUC().invalidate();
          wdContext.nodeSUBTREE_RESPONSE_rESULT_OBJEC().invalidate();
     } catch(Exception ce) {
          manager.reportException(ce.getMessage(), false);
    //@@end
Message was edited by: Trent Taylor

Similar Messages

  • Empty Import Structure in RFC

    Hi,
    I have created a RFC Adapter for receiving XML files. After some problems about the starting of the function module that are already solved now I have another request.
    My FM is running ok but I've a problem with the imported structure. ½
    Hà„:P/ԃæBsÐ"6ÏO›Ÿ   )„?
    BòXJ3@ /Ô å2u“LÇMR±çþ!M¿95gdj¦ Q?ó±îTP„9ÔÁyÓ;LY…¯gexA
    H`…ZPr½€†! Ä2q NN9ñÔGS€÷r›º÷ü¾SÑ(.K ?¿ PK  /¾Èqá   ¯   PK          E‡ÿ6/¾Èqá   ¯                     instance.xmlPK          :        
    Could you help me with that??
    Thanks!
    Regards
    Jorge

    Jorge,
    You cannot use RFC adapter to receive XML File.
    You should use File adapter to receive XML File data. If you mean to say File Adapter, then check your encoding parameters specified in adapter.
    Nilesh

  • Responsibility of consultant in Setting up Enterprise Structure

    Can guru's explain what are the main responsibility of a consultant while setting up enterprise structure in a client company please.
    Thanks in advance.
    Rakesh

    Enterprise Structure is the basic for a successful implementation. If this is not correct, mapping of bussiness processes will also fail, as basic requirement is not met.
    It is important to understand the requirement of the client & with close co-ordinationwith team members from other modules, this should be freezed.
    Regards,
    Rajesh Banka
    Reward points if helpful

  • IPhoto '09 can't "locate" a recent set of imported images

    ISSUE
    NOTE: This is for a MANAGED iPhoto library NOT a Referenced one, and the original image files DO exist and are located in both the source location and the iPhoto Library.
    Late last friday (11/6) suddenly started getting the following error messages on a specific set of images imported into iPhoto from an external Hard Drive:
    • The photo “classes.nib” could not be opened, because the original item cannot be found.
    The quoted filename varies, but are all like the above, NOT the actual image filename.
    I've had the message before, (rarely and not for years) but normally the filename in quotes is the name of the selected image i.e. "IMG_2251.jpg, etc. and has always been due to the actual file no longer existing for one reason or another (usually some thing I did)
    The error message only appears during Preview of the image set in the Library >"Photos" index section.
    I am currently ignoring the warning, since:
    • the images DO appear to exist (in iPhoto Library> Originals > [the year] > [the date]
    • are obviously being managed by iPhoto,
    • can be edited by iPhoto (see more info below)
    But this obviously makes me nervous about the integrity of my photo library (i do have time machine and some disc media backups of many (not all, yet) albums, but still ...
    CONFOUNDING FACTORS
    1. Despite the error message:
    • the image preview appears (not an "!" or "?") before and after dismissal of the message
    • I can continue on to edit the image from the preview step.
    • I can right click on the preview, select "Show Original File" and iPhoto locates the original image in the iPhoto Library Package file.
    2. It does not appear if:
    • I ignore the message and continue on to to edit the image
    • I preview the image in the "Library > Events" index section.
    • I preview the image in the "Recent > Last Import" index section.
    3. Trashing, and emptying trash (from any index view) then re-importing them hasn't helped.
    4. All offending photos can be opened, viewed and edited in various image viewers, editors (Preview.app, the Finder Quickview, Photoshop CS 3, Graphic Converter
    5. Subsequent imports don't appear to have the problem.
    SUGGESTS:
    • A database problem?
    RESOLUTION STEPS:
    Attempted with no corrective results.
    1. Trashed problem photos and emptied iPhoto Trash, reimported images from Ext. HD via drag-n-drop to library index
    2. Above, re-imported via File > Import to Library ...
    3. Above 1 and 2 import steps with files copied to Local HD
    4. Step 3 above with duplicated files (via File > Duplicate)
    5. Opened a photo file in Preview, did save as ..., imported into iPhoto
    6. Step 5 above with Photoshop CS3, slightly cropped image, saved as, imported into iphoto.
    7. Ran "Disk Utility > Verify and Repair Disk" from Snow Leopard Install Disc (there were file and folder count mismatch issues)
    8. Re-ran Verify afterwards with clean bill of health.
    RECREATION STEPS:
    Unknown on how to initially trigger but the last and only iPhoto Console logs appear to be from around the time the issue began:
    11/6/09 9:07:39 AM [0x0-0x1e51e5].com.apple.iPhoto[3976] Fri Nov 6 09:07:39 Trebor-4.local iPhoto[3976] <Error>: kCGErrorIllegalArgument: CGSShapeWindow
    11/6/09 9:07:39 AM [0x0-0x1e51e5].com.apple.iPhoto[3976] Fri Nov 6 09:07:39 Trebor-4.local iPhoto[3976] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    11/6/09 3:05:24 PM ScreenSaverEngine[6784] ILLogger ILMediaBrowserPathWatcher: ** Error in ILMediaBrowserPathWatcher startFSEventStream failed to start for paths: (
    "/Users/Lyle/Pictures/iPhoto Library"
    11/6/09 10:18:36 PM [0x0-0x2d62d6].com.apple.iPhoto[6959] Fri Nov 6 22:18:36 Trebor-4.local iPhoto[6959] <Error>: CGImageDestinationAddImageFromSource image 0 of source is nil
    11/6/09 10:18:36 PM [0x0-0x2d62d6].com.apple.iPhoto[6959] Fri Nov 6 22:18:36 Trebor-4.local iPhoto[6959] <Error>: CGImageDestinationFinalize image destination does not have enough images
    11/6/09 10:25:50 PM iPhoto[345] ILLogger ILMediaBrowserPathWatcher: ** Error in ILMediaBrowserPathWatcher startFSEventStream failed to start for paths: (
    "/Users/Lyle/Library/Preferences"
    Any thoughts or insights would be appreciated.
    Thx
    Message edited for typos and format errors by Lyle Turner

    RESOLVED (if not altogether answered)
    Performed the iPhoto database rebuild cha-cha again - this time selecting ALL checkboxes (previously only selected "Rebuild from backup)
    After rebuild, some photos appeared to be fixed, but photos that still showed the the error were all within specific Photo Rolls and DID NOT allow me to "show original file" on right click.
    On inspection within the iPhoto Library package, the remaining problem photo files were all ALIASES, not actual image files.
    Although the error dialog allowed me to to try and find the missing original, browsing for it didn't work. All image files listed in the browser were grayed out and not selectable.
    SO, not sure if this was kosher, but the following seemed to clear things up:
    * found real images for the aliased files on archived media
    * copied the real files over the aliases of the same file name
    * accepted finders warning that I was replacing files of the same name
    * returned to the iPhoto rolls and previewed the previously error prone images
    NOTE: I DID NOT close iPhoto while I was doing this. Not sure how dangerous that was.
    iPhoto seemed none the wiser, and the error message was gone. (oddly, initially the first photo in each affected roll still threw up the error, but when I moved on the the next one and came back, all seemed well and the message was gone)
    Did not appear to be a rhyme or reason to which rolls contained aliases and which didn't - photo/file date stamps weren't contiguous (so it wasn't a problem of a series of event imports from the camera/card.)
    Best I can figure is somehow some sets were imported as referenced files although my iPhoto is set to use a managed library.
    I'm in the process of consolidating some older manually managed image archives, so I don't know when this happened, or if it's the result of some accidental duplication, aborted import or what. I DO know that I had not encountered this error before, and I know I reviewed the affected rolls some time in the past, long after I had imported them.
    Well, all seems to be on the mend. So life is good.
    Except for those crufty leftovers. May still want to do something about that.
    Thanks to Terence for leading me to look in the right places.
    Message was edited by: Lyle Turner

  • How to set the notifications structure form a form in IDM 8.0.0.5

    Hi,
    we are using Identity Manager 8.0.0.5 and we are trying to set the notifications structure which is evaluated in the Create User and Update User workflow from within our Tabbed User Form and from a ActivveSync Form.
    We had no success in either case so far.
    Any ideas on how to do this?
    What we want to achieve is send additional notifications if certain attribute conditions are met.
    Thans for any answer.
    Ugato

    A text frame in text is an anchored or inline item, so you either have to set the leading of the parent character or use the anchored options of the frames.
    Dave

  • RFC Import from own SAP XI results in java.lang.NullPointerException

    Hi All,
    I'm trying to do an import of a local RFC (developed in SAP XI) but this results in a java.lang.NullPointerException
    RFC import from other SAP system is no problem.
    Anyone an idea?
    Cheers,
    Frank

    Hi,
    But we are using custom RFCs from SAP XI only. We are using XI3.0 SP11.
    Could you pls check the following sap notes..
    SAP Notes 677732, 672745, 212011, and 718320.
    Have a look at the following link...
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/a48f3c685bc358e10000000a11405a/frameset.htm
    Thanks,
    Sasi

  • Set default import format when drag and drop sound file into multitrack view?

    I've looked around the preference panels but cannot find where to set the import settings for dragging and dropping sound files into multitrack view. Some of our computers have correct settings and others do not. Thanks for your help!
    G

    I should have been more specific, sorry... I mean bit depth and bit rate... On some machines this defaults correctly and on other machines it is wrong. Not sure how to set these to downconvert properly by default. Unless it automatically takes the format of the source file, in which case it's just been luck.
    Thanks,
    G

  • Description Column of specific RFC Import Object empty

    Hi all,
    I wonder if there is a way to display the fields descriptions of specific RFC Import Object in SAP XI.
    When the RFC object is imported, even if in the source SAP system the fields descriptions are filled they are not displayed in SAP XI, at least in my SAP PI 7.0 SP9 version.
    Is it a standard behaviour? Is there a way to display it in SAP XI?
    Thanks a lot for your answers.
    Richard

    Haven't seen any option to impost the Description as well. In my opinion, not possible
    Regards,
    Prateek

  • Setting for importing Beatles Mono Box Set to iTunes

    I just bought the Beatles' Mono Box Set and imported it to iTunes. Because I have tons of room left on both my iPod and Mac, I did something I never do...imported them using the AIFF encoder. (I left the setting on Automatic.) Now, when I look at the info for the files, they show up as Stereo. I don't have a of technical know-how and I'm assuming that this simply means that the songs will play in two channels. (I know that if the original masters are mono they can't actually "play in stereo".) But my question is...would there have been any advantage to my setting the encoder to Custom and the Channels to Mono instead of Stereo? Thanks.

    would there have been any advantage to my setting the encoder to Custom and the Channels to Mono instead of Stereo?
    With your AIFF settting set to Mono instead of Stereo, the resulting file size would be half the size. Apart from that, there would be no difference.

  • I can't import cd's into itunes. CD goes in, my setting is import..CD spins..nothing appears, then 1 minute later the disc is spat out

    Hi there. I am trying to import some older CD's into iTunes. I have my preference set on 'import CD and eject'. CD goes in..i hear it spin. nothing appears, then 1 minute later it is spat out. All help appreciated thanks!

    Several thoughts:
    1) 6 year old computer.  Could be a classic case of drive failing.  Many do after 4-5 years.  There's various things you can try such as a cleaning disc but don't have high hopes.
    2) You say "older" CDs. Are these burned CDs?  those can go bad with age, particularly if the medium quality wasn't super great to start with.  Have you tried a commercially produced CD?
    3)  I presume the CDs aren't covered with greasy fingerprints from the last pizza  party.

  • What's the main principle for setting up enterprise structure?

    Hi,All
    are there any principle for setting up enterprise structure? take for example:different department ,different branch,or different palce?
    and how about the relationship between company code and personal area?how about the relationship between them and organizational structure?
    Thank u!

    Enterprise Structure
    To Portray the specific organizational structure of your business in the R/3 System.
    To help you portray your company structure, different Accounting, Logistics and Human Resources organization units are provided.

  • Setting the Importance - high in email

    Please tell me how to set the importance high in an email using mail API or mail.event API?

    Find out what header contains this "importance" thing. (Look at a message that's flagged with it.) Then add a similar header to your message.

  • Importing Structure field values in Excel using VBA and SAP RFC

    I am calling a RFC MEASUREM_DOCUM_RFC_SINGLE_001 from Excel VBA. The export parameters of the RFC has a parameter MEASUREMENT_DOCUMENT and structure COMPLETE_DOCUMENT. I am able to get back parameter value in excel from RFC using
    ActiveCell = Funct.imports("MEASUREMENT_DOCUMENT")
    Now I want to get the value of one of the fields say POINT of the structure COMPLETE_DOCUMENT in Excel. The following code doesnt work
    ActiveCell = Funct.imports("COMPLETE_DOCUMENT-POINT")
    It gives an error.
    Even I have tried to using code for tables
    dim tab as object
    set tab = funct.tabels("COMPLETE_DOCUMENT")
    but it did'nt work.
    Can any one help me how to access the field value of a structure?
    regards
    Ravindra

    I am calling a RFC MEASUREM_DOCUM_RFC_SINGLE_001 from Excel VBA. The export parameters of the RFC has a parameter MEASUREMENT_DOCUMENT and structure COMPLETE_DOCUMENT. I am able to get back parameter value in excel from RFC using
    ActiveCell = Funct.imports("MEASUREMENT_DOCUMENT")
    Now I want to get the value of one of the fields say POINT of the structure COMPLETE_DOCUMENT in Excel. The following code doesnt work
    ActiveCell = Funct.imports("COMPLETE_DOCUMENT-POINT")
    It gives an error.
    Even I have tried to using code for tables
    dim tab as object
    set tab = funct.tabels("COMPLETE_DOCUMENT")
    but it did'nt work.
    Can any one help me how to access the field value of a structure?
    regards
    Ravindra

  • How to put data into a RFC import parameter structure from portal

    Hi, All,
    I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use
    IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    MyTABStr.setString("FIELD1", value1);
    MyTABStr.setString("FIELD2", value2);
    importParams.put("MYTABSTR",MyTABStr);
    But it works for table not structure.  Is there anybody know how to do that?
    Thanks in advance!
    Meiying

    Hi,
    You can try the following code -
    IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    structure.setString("FIELD1", value1);
    structure.setString("FIELD2", value2);
    importParams.put("MYTABSTR",structure);
    Regards,
    Sudip

  • Rfc to jdbc --issue with import structure

    Hi
    I am doing asynch RFc to jdbc scenario, for which I followed the below blog,
    /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    (My abap code is as per the blog)
    But one doubt ,as per the blog, my imported rfc structure in IR doesnot conatin those fields(table structure) then how this mapping is going to happen?
    Else all the configurations are ok and success in runtime n in sxmb_moni,
    Please can anyone help in understanding this,
    Thanks

    Hi,
    What is the problem which you are facing ?
    You cant see the fields after importing in XI ?
    If so where are you trying to see the fields ?
    >>wanted to know as to how to code in R/3 so as to trigger the RFC in background.
    This is what is mentioned in the blog.
    >>i am not able to understand the blogs logic (R/3 code)
    Which part of the code you are not able to understand ?? theres hardly any code .
    Any part/word of the code which you cant understand ..just click on that word and press F1.
    Regards,
    Sumit

Maybe you are looking for

  • Saving a PDF Flattened

    Ok we are trying to use a PDF created with Adobe Reader Professional that allows one to edit then save the contents. The one problem is we want to use this as an order form for our reps through Adobe Reader who will then send it as a quote to potenti

  • Search internet by selecting terms in a pdf document

    Hi. Anyone know if it is possible to add a righ-click (context) menu option to search the internet for terms selected or highlighted while in acrobat. Specifically, I'm reading a document in acrobat and I would like to be able to select a word or a p

  • Change of credit card number

    My credit card was stolen. I have a new number and I cannot change the number in my apple id to order items through my apple account. Suggestions please.

  • Removing XP start files

    Hi, I have two internal hard drives (not in the same time). On one I installed XP on the other not. Unfortunately when I switched two HD's I forgot to remove XP start CD so he started to copy all basic files on the HD I do not have XP installed. Now

  • How to Lock a Mac at  A Certain time

    Hello, I would like to know how to lock my son's computer at a certain time. But when I go under parental controls, his account does not pop up. is it b/c he is the admin on the computer. Not sure on that one. Can someone please tell me how to lock o