cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping lookups - API (SP13) :-)

MichalKrawczyk
Active Contributor
0 Kudos

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-001...

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

MichalKrawczyk
Active Contributor
0 Kudos

hi,

I have a very similar java module

(but since my colleaguge wrote it I cannot share it)

maybe you can just write a weblog with it's code?

Regards,

michal

Former Member

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

Former Member
0 Kudos

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?