cancel
Showing results for 
Search instead for 
Did you mean: 

Call Abap FM from XI mapping to insert lines to abap table

Former Member
0 Kudos

Hi All,

I'm trying to insert data from an XML file into a Z table during mapping in XI. I have an ABAP function module that takes in parameters and inserts into the corresponding fileds of the Z-table.

How do I make use of this ABAP Function module in a user defined function in XI mapping.

Any tips would be really helpful.

Thanks

Karthik

Accepted Solutions (1)

Accepted Solutions (1)

gajendra_bhakuni
Active Participant
0 Kudos

Hi Karthik,

Is it really required to go via user defined function in XI mapping.

You can make your FM RFC enabled, import it into Integration Repository and then do a direct mapping from the file to the parameters of the FM.

Regards,

Gajendra.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Karthik,

I do have the same requirement, So can you please let me know how you overcome the problem you are faceing about..

I have the requirement where i have to pass the data from the file to a table.

Your help will be vey useful to me.

thanks,

Former Member
0 Kudos

Hi Karthik,

have a look in this document:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4fbe7b8e-0a01-0010-b69b-b7e...

In the document look at: "Step 3 – Coding User-Defined Java Function in Message Mapping".

This should solve your problem.

Regards Mario

Former Member
0 Kudos

Hi,

I solved it on my own. Yup..used a user defined function to call the abap FM. Worked fine.

Thanks everybody.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Would be possible using the RFC look up API available from SP14 on,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples... – LOOK UP API

Regards,

Bhavesh