0

I want to convert an IDOC flat file to XML. Then after making changes I have to convert that again to Flat file. Is there any function module or class in ABAP using which I can do this.

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
AKS
  • 39
  • 1
  • 8
  • Take a look at transaction XSLT_TOOL. You will have to create the XSLT transformations yourself, and then call them using the statement "CALL TRANSFORMATION" – Esti Dec 21 '15 at 02:00

1 Answers1

0

Use FM IDOC_XML_TRANSFORM for this simple task. Another approach can be used if you have not yet processed IDoc but want to process them directly in XML. Then you can use ALE Interface convertion like this:

  1. Send an outbound IDOC data to a flat file (XML). You should do corresponding customizing on Sender for this: port, distribution model, partner profile.
  2. Process the IDoc on the Receiver system.

If you want to do further changes with this XML, then use XML transformations as Esti kindly recommended to you.

Community
  • 1
  • 1
Suncatcher
  • 10,355
  • 10
  • 52
  • 90