RFC to XI File -  can NEVER EVER  get more than one record in Output file.

Hi guys
This might be related to my other post on  File conversion but whatever I do I just can't seem to get more than one record in the output file
the payload from R3==> XI seems fine
for example
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <IP_CUSTOMER_HEADER>
- <item>
  <CUSTOMERID>1000001</CUSTOMERID>
  <COMPANY>One-time ship-to</COMPANY>
  <SHORT_NAME>ONE-TIME</SHORT_NAME>
  <STREET />
  <STREET2 />
  <STREET3 />
  <STREET4 />
...... more data
</item>
then next customer  master data and so on
- <item>
  <CUSTOMERID>1000005</CUSTOMERID>
  <COMPANY>ddfask</COMPANY>
  <SHORT_NAME>;LK;L</SHORT_NAME>
  <STREET />
  <STREET2 />
  <STREET3 />
  <STREET4/>
etc etc until
<HKUNNR>60000</HKUNNR>
  <SALES_REGION />
  </item>
  </IP_CUSTOMER_HEADER>
  </rfc:Z_XI_005_RFC>  
All I get on the Output target file
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_customer_header xmlns:ns1="http://avenue.com/xi/test">
  <CustomerId>1000001</CustomerId>
  <company>One-time ship-to</company>
  <shortname>ONE-TIME</shortname>
.... more data
  </ns1:MT_customer_header>
the <item> and subsequent records all seem to have vanished.
I must be doing something PARTICULARLY stupid as nobody else ever seems to have this problem --  I've tried almost every possible combination but still to no avail
The function module is passing a table to XI in the correct structure and the payload seems to be fine so what on earth is broken here !!!,.
Cheers
Jimbo

Thanks everybody -- it's working now
RFC call was passing data correctly
function z_xi_005_rfc.
""Local interface:
*"  TABLES
*"      IP_CUSTOMER_HEADER STRUCTURE  ZAP_CUSTOMER_INFO_2
endfunction.
in debug mode table data was fine -- in this instance 3 records were being passed.
3 errors  in mapping etc fixed (with help from SDN - thanks)
1)  missing the ITEM level in the Data type (hence mapping)
2)  needed 0:unbounded in the occurrence
3)  also mapping Item====>Item was missing (sub fields were ok)
Points awarded
final file output ok output now  ok (with 3 fields only for testing)
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_customer_header xmlns:ns1="http://avenue.com/xi/test">
- <item>
  <Customerid>1000001</Customerid>
  <company>One-time ship-to</company>
  <shortname>ONE-TIME</shortname>
  </item>
- <item>
  <Customerid>1000005</Customerid>
  <company>ddfask</company>
  <shortname>;LK;L</shortname>
  </item>
- <item>
  <Customerid>1000010</Customerid>
  <company>One Time Customer Test</company>
  <shortname>SADFIWQEFG</shortname>
  </item>
  </ns1:MT_customer_header>
Now only the final problem to make file content conversion work.
Once again thanks --sometimes what seem trivial or simple problems take AGES to fix until someone else gives you a clue --that's why boards like SDN are great value.
Cheers
Jimbo

Similar Messages

  • After updating to firefox 8, I can only sporadically get more than one tab to function at a time; if I click on the others, nothing happens.

    I have 11 tabs in my homepage, but only the first tab will work, unless I close out Firefox and restart it. It usually takes three to six restarts before it works correctly and I can use the other tabs. However, if I have to restart again, it usually reverts back to only one tab working, and I have to keep restarting until it clears up once again.
    The tabs all look like they should function, and when I click on one, it seems to become active, but the screen does not change, and I am stuck with the same tab, no matter which one I click on.

    Unfortunately, that is not the problem. I double checked; I do not have that option selected. Also, even after the tab is selected, it does not load. Nothing at all happens.

  • Can not color label more than one file at a time

    Hi,
    I've had this problem since 10.6.6-ish, i can not color label more than one file at a time in the Finder.
    Wether i select two, twenty or twohundred only one file gets color labeled.
    It doesn't seem to matter if i assign a color label through the File menu or right click > label.
    Figured a re-install might fix this but it hasn't (even a clean install without restoring any kind of backup).
    Does anyone else have this issue and/or a fix for it?
    Thanks,
    Jay

    Aaaaanyone ?

  • Can i make more than one faces-config.xml file ?

    Can i make more than one faces-config.xml file under one project or application, if yes than how it will link.

    Just that you know,
    In the second week of july I was taking the Jdeveloper/Jheadstart course at Oracle Netherlands. During that course we were asked to split the faces-config. After splitting it, we were not able to find the navigation rules that were defined in the first faces-config in the web.xml. The Jdeveloper IDE was confused........
    However, we were able to use the navigation rules (type in manualy) and that worked in the application.
    I talked about it with Steven Davelaar and he thought it might be a bug. I don't know if it's reported, and I don't know if it's fixed.
    So, if you get confused.... it works, but Jdeveloper might have some problems with it.
    Luc Bors

  • Why can't I get more than 80min. of AAC on a CD

    My iTUNES library 2237 songs, 6.4 days, 9.62GB...Playlists of 1.3 hrs. or longer, (74.0 MB) when burned with blank TDK/CD-R 52X 80min. 700MB can't be burned on 1 CD I am told by iTUNES two CD's will be needed...Reduced down to less than 1.3 hrs. it's all burned on 1 CD when I look at the burned CD surface it looks like only about 1/10th. has been used...All the music is AAC from imported CD's and converted files from Audacity 1.2.4b it all plays in iTUNES and every burned CD plays fine.....Why can't I get more than 80min. of AAC music on 1 CD...THANKS in advance
    17" G5   Mac OS X (10.4.4)  
    17" G5   Mac OS X (10.4.4)  

    Yes Chris that is the right...should I change it to MP3 CD?...I get it now 80min. is all the Audio that will fit if it were data more would fit.... THANKS
    17" G5   Mac OS X (10.4.4)  
    17" G5   Mac OS X (10.4.4)  
    17" G5   Mac OS X (10.4.4)  

  • Can not get more than one computer to access internet

    using airport and can not get more than one computer to access internet wirelessly... currently airport is in bridge mode and internet sharing is set to "off" in network preferences...
    help - what should the settings be in airport and network preferences?

    are using internet connection as dhcp?
    Yes.
    bridge mode seems to only work with pppoe connection to internet which is what my set up is
    But you've never said why you're using bridge mode (I'm not), which -- as I've explained before -- is probably the reason you can connect only 1 client at a time.
    If you'll setup the AX as a regular, main base station, connect using DHCP, and share IP addresses, you should be fine.

  • Can I get more than one account on iphone microsoft exchange server

    Hi all,
    I was trying to get more than one account on iphone microsoft exchange server for mail, but it seems to only accept one. Is this true with everyone else out there. I guess I am one of the few people with more than one email account that uses microsoft exchange. I would love to have the convience of accessing them through iphone mail but it seems that I will be forced to use safari for the other two by typing owa... in the url.
    any workaround to the one email account per iphone policy??

    Yu can only have one Exchange Server account per device. This is true to iPhone and any Windows mobile device in the market. The work around is to set your other accounts that reside on an Exchange server using IMAP or POP settings as you used to do before the Version 2 update allowed you to sync directly to the Exchange Server. This methode will allow you to add as many accounts as you want or have.

  • How can I get more than one firewre port ?

    Hello,
    how can I get more than one firewire port ? I'd like to be able to connect my canon HV30 camera as well as my firewire external HD at the same time so I can use firewire to upload the videos I've taken. Is this possible?
    TIA

    Hi ginestre-
    Many FireWire hard drives have 2 firewire ports so that you can daisy-chain devices and connect the camera that way.
    Daisy-chaining is not the most reliable method, but it works, so you could buy a FireWire hub.
    Luck-
    -DP

  • HT1473 how can I download an more than one audio cd to itunes, scramble all and then transfer all back to a R/W cd?

    how can I download an more than one audio cd to itunes, scramble all and then transfer all back to a R/W cd?

    Import the CDs to iTunes one at a time, following these instructions.
    Once the tracks are in your iTunes library, put them into a playlist, and get them into the order you want.  Or if you by "scramble" you mean a randomly shuffled order, use the crossing arrows at the lower left to do so.
    When you are ready, insert a blank CD, use the command File > Burn Playlist to Disc, and create an audio CD.  I strongly suggest using CD-Rs rather than CD-RWs, since the latter often have trouble in normal CD players.

  • Can oracle  function return more than one value

    Hi All
    please answer can oracle function return more than one value
    need one schenario
    regards

    Can any function, irrespective of the language, return multiple values?
    OF COURSE NOT!!
    So why do you think Oracle will now suddenly do it differently than all other languages? Never mind that it is impossible for a function (a unit/module of code) returning a memory address, to return multiple memory addresses. The machine code that does that, has not been yet been designed/implemented.
    I am continually amazed that this question is asked. It is about something so fundamental in almost every single 3rd and 4th generation language... something that is taught right at the start... the definition of what a procedure and what a function is.
    Sorry, but I simply cannot pull punches on this subject and smooth it over. There is something fundamentally wrong with your training as a programmer if you have to ask such a question about a function.
    And whatever programming skills you build on such a foundation, will be seriously lacking.
    I kindly suggest that you get back to the very basics of programming - and review and revisit until you fully understand it. There are no shortcuts in becomming a good programmer.
    Message was edited by:
    Billy Verreynne

  • How can you set up more than one device on iTunes. I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices.

    How can you set up more than one device on iTunes? I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices. I have all my music/videos on iTunes on my mac book pro. Can you set up separate folders for each device and drop in what ever music/videos from the main iTunes library?

    In itunes it is called syncing and you can choose exactly what content to sync to all devices and it can be different for all of them
    How to sync

  • I have a PC, Windows 7 x64. I installed a plug-in in Elements 13. I tried to installed another plug-in. It replaced the first plug-in . Can't I have more than one plug-in at a time??? If so, how?

    I have a PC with Windows 7 x64. I have Elements 13. I installed a plug-in (Topaz) which appeared under the Filter Menu.
    Then I tried to install my new Canon Printer software plug-in which put it under FILE > AUTOMATION TOOLS. However, when I tried to use TOPAZ under the FILTER MENU it was gone. In other words, the Canon printer plug-in replaced my Topaz plug-in. When I reinstalled the Topaz plug-in, it replaced the Canon Printer Plug-in.
    QUESTION: Can't I have more than one plug-in installed in Photoshop Elements 13 at a time? So that the Canon printer plug-in is in AUTOMATION TOOLS, and the Topaz plug-in is under the FILTER menu?

    Have a look at this thread.
    http://discussions.apple.com/message.jspa?messageID=2369954#2369954
    Before you try some of the suggestions bear in mind that your iPod is still under warranty.

  • More than one struts-config.xml files in one project

    Hi all
    Can we have more than one struts-config.xml files in one project developed using struts.
    If so what is purpose and how to do this.
    Anybody please explain on this topic.
    Thanks
    Parvathy

    Hi all
    Can we have more than one struts-config.xml files in
    one project developed using struts.
    yes it is possible
    If so what is purpose and how to do this.
    it is use for odular application so developer won't share a single configureation file.. as you know struts-config.xml is defined on the web.xml
    like this:
    <servlet>
    <servlet-name>mybank</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet
    </servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/module1</param-name>
    <param-value>
    /WEB-INF/struts-module1-config.xml
    </param-value>
    </init-param>
    </servlet>

  • How To Get more than one Return Values in LOV ADF

    In ADF LOV, I can get only one return value;
    How can I Get more than one values like in Oracle Form?
    SomeOne can help me?
    Thanks

    you may add more <set> tag like the following:
    <event name="lovSelect">
    <set property="inputValue" value="${bindings.Id.inputValue}" target="${data.work_workBusinessViewUIModel.buyCompanyId}"/>
    </event>
    or you can implement your Action

  • Pop to get more than one value of same type

    Hi
    I want to give pop up that can take 3 customer numbers
    and export it.Problem with <b>popup_get_values</b> function module is that you cannot get more than one value of same type for example here <i>kna1-kunnr</i>.
    Is there any function module to solve this problem.
    Regards
    Amol Deshmukh

    Hi,
    may be you can use knvv-kunnr for the second value ....
    That should also do the job.
    regards
    Siggi

Maybe you are looking for