Skip to Content
avatar image
Former Member

Generic sync not work correctly

Hi,

We are trying to get the inbound container in Java application, we use the method

GetElementsWithFieldName(String) in the object InboundContainer, this method returns an array that has only one entry, but really the wrapper function in R3 returns 6500 entries.

Best regards.

Thanks all.

SCZ

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 30, 2006 at 10:20 AM

    Hi,

    Our problem not depends of how handle the array. The problem is that the result array only has got an element.

    Best regards.

    Thank all.

    SCZ

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi Satur,

      Good to know your problem is solved.

      Kindly close the thread and reward the answers if they had helped you in anyway.

      Regards

      AK.

  • avatar image
    Former Member
    Oct 27, 2006 at 01:24 PM

    hi Satur,

    Try this...

    getAllElements() method. It will return an array of InboundContainerElement. You can traverse through the array and convert them into Strings to process them.

    This is not really recommended for performance reasons but to start with Generic Sync, this is fine..

    Regards

    Ak.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 27, 2006 at 05:40 PM

    hello satur,

    use method readNextElement():InboundContainerElement of

    the InboundContainer interface. getAllElements and getElementsWithFieldName methods as described in the Javadoc

    reads all the container/s into memory. i suggest using

    readNextElement when iterating through the container.

    it behaves a little bit different from the other methods

    by reading the inbound file gradually.

    for details refer to: InboundContainerhttps://media.sdn.sap.com/javadocs/NW04/SPS15/me/com/sap/ip/me/api/sync/InboundContainer.html">InboundContainer>

    regards

    jo

    Add comment
    10|10000 characters needed characters exceeded