cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping using LookUp RFC

Former Member
0 Kudos

Hi,

I need to read some additional values during my mapping (out of SAP R3 System) So I do the same like described in weblog:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guide... to perform sap data lookups within xi mappings

I create a new function and "only" changed line:

IFunctionTemplate ft = mRepository.getFunctionTemplate("Z_UOM_LOOKUP");

to:

IFunctionTemplate ft = mRepository.getFunctionTemplate("BAPI_VENDOR_GETDETAIL");

and depending on that:

input.setValue( a , "UOMCODE" );

to:

input.setValue( a , "VENDORNO" );

but anyhow I get everytime following errors - but I don't know WHY??

/usr/sap/XIT/DVEBMGS44/j2ee/cluster/server0/./temp/classpath_resolver/Map6c43119034e911dac59b000d60ec48ba/source/com/sap/xi/tf/_MM_BAPI_LOOKUP_RFC_.java:84: 'class' or 'interface' expected public static void main(String[] args) throws Exception{/!_$ClNRep_/_MM_BAPI_LOOKUP_RFC_ st = new /!_$ClNRep_/_MM_BAPI_LOOKUP_RFC_(); st.testExecute(); } ^

/usr/sap/XIT/DVEBMGS44/j2ee/cluster/server0/./temp/classpath_resolver/Map6c43119034e911dac59b000d60ec48ba/source/com/sap/xi/tf/_MM_BAPI_LOOKUP_RFC_.java:85: 'class' or 'interface' expected } ^

/usr/sap/XIT/DVEBMGS44/j2ee/cluster/server0/./temp/classpath_resolver/Map6c43119034e911dac59b000d60ec48ba/source/com/sap/xi/tf/_MM_BAPI_LOOKUP_RFC_.java:86: 'class' or 'interface' expected ^

3 errors

THX Matt

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Matt,

why don't you try new API for RFC lookups ?

take a look at my article on how to use it (and why you should use it):

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

Regards,

michal

Former Member
0 Kudos

Hallo Michael,

Thanks a lot, this was a very good hint - the only thing is now to get out of this nearly endless XML string the fields I need :-).

THX Matt

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi MATT

Please help me even i am getting same error when i use UDF to call RFC

/usr/sap/AXD/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map7395f740953b11dd9fc900145ec74b8a/source/com/sap/xi/tf/_MM_INF1009_Mfgroutings_to_IDOC_.java:2050: 'class' or 'interface' expected

public void get_UM$(String[] L_MATNR_EXT,ResultList result,Container container){

^

/usr/sap/AXD/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map7395f740953b11dd9fc900145ec74b8a/source/com/sap/xi/tf/_MM_INF1009_Mfgroutings_to_IDOC_.java:2368: 'class' or 'interface' expected

}

^

/usr/sap/AXD/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map7395f740953b11dd9fc900145ec74b8a/source/com/sap/xi/tf/_MM_INF1009_Mfgroutings_to_IDOC_.java:2369: 'class' or 'interface' expected

^