Skip to Content
author's profile photo
Former Member

How to exchange data between ABAP and external program

Hi all,

I want to call an external program out of an ABAP program. I want to pass an internal table or a string (ABAP type STRING) to the external program and I want to get back an internal table or a string that the external program has modified or converted.

I don't know at the moment what kind of external program it is, not to mention in which programming language it is written. I hope this doesn't matter.

What solutions are there? It should be a very flexible solution (i.e. platform independant)?



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Apr 01, 2004 at 01:44 PM


    Depending what you want to do with this external program and the language it is written, i think you must to read information in this links:

    It's not easy to say "i'll make an external SAP program and call it from my abap program exporting this data and importing this other". You must to follow some technical steps and standars rules.

    hope it'll help you.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you for the SDN link. I found there the XDC (external document converter) interface. There is function module RSPO_CONVERT_PCDOC described which should convert a PC document via DCI interface.

      I don't know what a DCI interface is. Does anybody knows it? Is there some documentation?

      In function module RSPO_CONVERT_PCDOC a external RFC is called:


      • do RFC call


      destination doccnv_rfcdest1


      CNVPARAMS = cnvparams

      DOCSDATA = printdata

      CNVRESULT = cnvresult


      system_failure = 1 message statusmessage

      communication_failure = 2 message statusmessage.


      I think this is the call of the DCI interface. But how has the called program to look like? And how have the needed RFC destinations to look like?

      I know a lot of questions. But I need detail information at this level.