Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mapping lookup RFC-API

RFC mapping lookup.

Hi All,

I have to do mapping lookup to backend SAP using RFC API to translate SAP PLANT value to 3rd party plant value.

FM "Z_CA_SAP_TO_EXTERNAL" in SAP takes 2 import parameters and returns table.This is very generic FM used for all workstreams.

*" IMPORTING

*" VALUE(IM_WORKSTREAM) TYPE ZCA_WORKSTREAM

*" VALUE(IM_OBJ_TYPE) TYPE ZCA_OBJ_TYPE

*" TABLES

*" TB_SAP_TO_EXT STRUCTURE ZSCA_TRANSLATION

If I pass IM_WORKSTREAM = MM and IM_OBJ_TYPE = PLANT, it will return a table with all avilable plants in SAP(for workstream MM) with corresponding values for 3rd party.

In my mapping(Bet Idoc and I/B message for 3rd party) I am passing MM and PLANT as contants to User-Defined funtion.

Once I receive renponse from FM to my UDF, I have to parse the table,send the plant value to get corresponding value to target. How do I achieve this?

How can I check the response from FM in my UDF before parsing? Sample code/information would be very helpful.

Thank You

Indrasena

Former Member
Not what you were looking for? View more on this topic or Ask a question