cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of RFC function module

former_member565381
Participant
0 Kudos

Hi experts,

My requirement is, an XML file is coming from non sap to middleware in XML format. Middleware converts it into sap format and it will access the RFC, i.e., BAPI, which will be created by me and updates the same in CRM.

There is one mapping sheet given, ie., from source format to destination format.Now the point is, for creation of BAPI, what should be taken as parameters, ie import, export etc., Can I take the destination fields as importing and table parameters? Please suggest

Rgds,

Gsaasg.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If I understand your requirement correctly, you want how the mapping file will be used to decide the import and export parameters of your BAPI.

Though we should have a look at the mapping sheet, but it is more useful to the middleware person. The middleware person will use them to create a mapping on their side. Once teh data from legacy will be received by them, those data will be mapped to respective SAP format. This format will be shared to them by you.

Let them know of your import parameter details, and what data you expect in each field. This will help them map the data correctly.

We should create the standard ABAP structure as per the data coming in XML, and should be used as the import parameter.

For ex:

if the XML file is:

<ContactInfo>

<address>

<city>XYZ</city>

<postcode>ABCDEF</postcode>

</address>

<Number>

<type>Mobile</type>

<No>0123456789</No>

</Number>

</ContactInfo>

then we have to create a structure as ZCONTACTINFO, with two components ADDRESS and NUMBER.

ADDRESS will be of structure ZADDRESS with two components CITY and POSTALCODE.

NUMBER should be of a table type with line type containing TYPE and NO. (as Number node can contain multiple entries..one for mobile, one for home, one for office)

And this CONTACTINFO will be the IMPORT parameter in your RFC FM.

In your case, no export parameter is to be maintained. Only thing is that we should understand the XML well.

Hope this clarifies your case.

Regards,

Susanta

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I would suggest working with webservices and not trying to connect via rfc, look in to soa manager il think it will

make you life a little bit easyer.

Udi Dekel.