cancel
Showing results for 
Search instead for 
Did you mean: 

XML to ABAP - where the ABAP mapping?

peter_wallner2
Active Contributor
0 Kudos

Dear experts,

I have to do an ABAP mapping which I have never done before.

I found blog:

/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach

which shows the ABAP code.

I use PI 7.1

Questions:

- But where in XI/PI do I implement this code?

- How can I test the code while I write it?

- Can I pick up the XML file to map from an FTP server?

Thank you very much for your help!

Best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

The blog you mentioned is not an ABAP mapping.

So you cannot use the code.

peter_wallner2
Active Contributor
0 Kudos

Hello Stefan,

I am confused. It is not JAVA either. What is the code in the blog then?

Thank you for clarifying!

Best regards,

Peter

stefan_grube
Active Contributor
0 Kudos

Not every ABAP code is an ABAP mapping.

But I see the point: You have given a wrong URL. In fact you meant this blog:

/people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping

But here you see:

"step 2

Login into XI client using the SAP Gui Logon

Start transaction SE24

Fill Object type: ZCL_XI_FLAT_TO_XML"

Everything is mentioned that you need to know.

Just follow the guide.

peter_wallner2
Active Contributor
0 Kudos

Hello Stefan,

I think I explained my problem not well enough and thought what I needed was an "ABAP mapping"...

A customer is going to send an XML file to our PI. I have to convert the file to ABAP data types and then forward it to our SAP system.

What do I need to do that? Are there different ways?

Sorry about my miscommunication! Could you please help again?

Thank you,

Peter

Shabarish_Nair
Active Contributor
0 Kudos

i think your is a typical file to abap proxy scenario.

Can you read thru these?

Client Proxy (Sender Proxy)- /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Server Proxy (Receiver Proxy)- /people/siva.maranani/blog/2005/04/03/abap-server-proxies

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

I dont think you really need to develop ABAP Mapping , you can achive this requirement using standard Graphical Mapping.

But let me know which IDoc/rfc or table you want to update information.

if it is bapi use RFC IDoc go with IDoc adapter.

elase try with proxies.

normally it is not a best practive to implement ABAP Mapping,sometimes you experience perfromace issues.

Regards,

Raj

stefan_grube
Active Contributor
0 Kudos

"I have to convert the file to ABAP data types and then forward it to our SAP system"

If this is the description of your task, I can fully understand that you do not have any clue what to do.

Sorry, I cannot help you here. Ask your client or your team members, what your task is exactly.

peter_wallner2
Active Contributor
0 Kudos

Hello Shabarish Vijayakumar,

Thank you for the 2 links you gave me. I will look at those blogs and try to understand how they work.

In the meantime things have changed and my colleague wrote an ABAP to transform the XML directly

in R3.

So now I will probably only need the PI to forward the message to R3 and maybe do an XSL mapping which is not a problem

for me. I am only not capable of ABAP...

Thank you and best regards,

Peter

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

To test ABAP mapping use report - XI_MAPPING_TEST

Also, you will find the required information on ABAP mapping in detail here - http://www.google.co.uk/search?hl=en&client=firefox-a&hs=Tg2&rls=org.mozilla%3Aen-US%3Aofficial&q=ab...mappingsap+technical&btnG=Search&cts=1278319742053&aq=f&aqi=&aql=&oq=&gs_rfai=&gs_upl=1278319742053%2C1278319742053%2C0%2C0%2CNaN%2C0%2C