Skip to Content
author's profile photo Former Member
Former Member

RFC between different SAP Releases

Hi all,

I want to implement a RFC-Call from one SAP-System to another (ABAP to ABAP) with the SAP standard function module GET_BACKUP_HISTORY_ADA. This uses the internal table BACKUP_HISTORY, which in turn refers to the table SDBAADAHIS. Unfortunately the width of fields in this table varies between different SAP Releases. So if I do the call e.g. from 6.20 to 4.6C I only get a "data-mess" back in my internal table.

I assume this is a rather general problem and there should be solution. Does anybody know?

thanks in advance

Richard

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2005 at 01:45 PM

    Hello Richard,

    I don't know if there's a <i>standard</i> way to handle this kind of a situation, but I guess you can circumvent the problem by declaring an internal table with the structure as in the destination system and then use that internal table in the RFC.

    Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

    • I would suggest to use structured string fields. An example will do the trick.

      Let say you have a table from your FM. This table Z_SOME_TABLE contains the following fields

      - key type char3

      - some_struct type char 160

      In this field you put all your data.

      Then you read your FM and put the result in a work area. The you create a second wa which consists of the real structure od some_struct.

      wa type z_some_struct. (=structure of Z_SOME_TABLE)

      wb type realstructure (of some_struct).

      loop at Z_SOME_TABLE into wa.

      wb = wa-some_struct.

      write wb-field1.

      write wb-field2.

      ...

      endloop.

  • Posted on Feb 07, 2005 at 02:48 PM

    Check these weblogs:

    /people/thomas.jung3/blog/2004/06/23/bsp-150-a-developer146s-journal-part-iv-rfcs-and-the-bapi-browser

    /people/thomas.jung3/blog/2004/06/24/bsp-150-a-developer146s-journal-part-v-xml-for-rfcs

    Peter

    Add a comment
    10|10000 characters needed characters exceeded

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.