Skip to Content

Mapping lookups - API (SP13) :-)

Hi,

just want to let you know that there's some "practical info" about mapping looups on SDN

RFC API (an article which I posted a week ago)

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/801376c6-0501-0010-af8c-cb69aa29941c

together with siva's weblog (jdbc lookup) we have

quite nice collection for a start 😊

/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler

might be useful for "mapping lookups starters" 😊

Regards,

michal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 12, 2005 at 08:59 AM

    hello,

    I read the article and it was very helpful.

    but, i have a problem with other language than english.

    i get the other language characters not as they appear in the SAP XI system (i get not recognized charcters).

    Is there something i forgot to do?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2006 at 09:14 PM

    Hi Michal,

    I found your article about the Lookup API and it was a really helpful start into the topic. However, the way the XML is composed in the function didn' please me at all.

    So I took your approach forward and added some generic RFC-XML construction for certain situations (it's actually intended for simple mapping lookup RFCs that have a 'flat' structure and the result containing just one element - which I assume will the most common case) and also some generic retrieval of the result value and made it a function in a Java Archive that can easily be called from a user-defined function, passing the relevant information as parameters - getting rid of the hard-coded stuff.

    Now I thought it might be a good idea to share this function as addition to your article, but I'm not sure about the best way to do so - what would you suggest?

    regards,

    Peter

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Michal Krawczyk

      Michal,

      I followed the steps in your weblog, created an archive and am using the function from a class in User defined function. This gives me a lookup exception at the statement

      accessor.close();

      -


      Error while closing accessor Technical error when calling an adapter remotely. The HMI method with the ID close was called with an incorrect session status. The system accessor object is missing.

      ---

      Any Idea about this problem?

      Please note that the function does the intended task but the lookupexception occurs at this close statement.

      Regards,

      Yogeshwari Agashe