Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.