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

Remote Function Module problem

Hi Experts,

I have written a Se38 progarm to execute a remote function module, so as to send some data out of the system. The receiving system is an XI system. Pls see below the code and the load at the XI end, I donno why and what mistake am I doing in the se38 program part, as a result of which, only part of the data is getting send to XI.

REPORT ZRFC_ADAPTER.

Data: it_final1 type standard table of zrfc_str with header line .

it_final1-NAME = 'ARNAB'.

it_final1-ADDRESS = 'ADDRESS'.

it_final1-EMAIL = 'EMAIL'.

it_final1-ID = 'ID'.

CALL FUNCTION 'ZRFC_XI'

IN BACKGROUND TASK DESTINATION

'R32XIRFC'

EXPORTING

username = sy-uname

tables

it_final = it_final1 .

break-point.

COMMIT WORK.

Clear it_final1.

I have seen in debugging mode, after removing the "

IN BACKGROUND TASK DESTINATION

'R32XIRFC'", that the internal table " it_final1 " is working fine......

The structure used in remote Function Module is

IT_FINAL LIKE ZRFC_STR -- in tables parameter. and the structure of ZRFC_STR is as follows!

NAME ZNAME CHAR 14

ADDRESS ZADDRESS CHAR 40

TELEPHONE ZTEL CHAR 20

EMAIL ZEMAIL CHAR 40

ID ZID CHAR 10

Note that , apart from a COMMIT WORK statement, there is no other coding done in the SOURCE CODE part of the remote Function Module.

The load in XI is showing as

<?xml version="1.0" encoding="UTF-8" ?>

- <rfc:ZRFC_XI xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

<USERNAME>RETAILDEV</USERNAME>

- <IT_FINAL>

- <item>

<NAME>ARNAB</NAME>

<ADDRESS>EMAIL</ADDRESS>

<EMAIL />

<ID />

</item>

</IT_FINAL>

</rfc:ZRFC_XI>

Note that EMAIL is actually a content of field EMAIL and not ADDRESS. But I donno why, it is behaving like this,,

Pls note, this RFC has been imported completely in integration repository of XI, so we dont have to worry about any settings change or activities, left pending in XI.

I am very sure, something is missing in the se38 code, pls suggest!!

Regards,

Arnab .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Sep 22, 2008 at 11:55 AM

    you should do an APPEND to your internal table

    like it is written now, you only fill the header of the table

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Francois, I am so sorry, I missed out the part of the code, I did do the append part, but missed out at the time of copy pasting the same in SDN . Gud observation, but unfortunately, that was not at all the issue, ....still did nt make it!!!

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 11:58 AM

    Pls check the mapping in SAP XI

    Regards

    MD

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Madhan, there is nothin to do wid the mapping as the loiad that I have displayed is the status of the load, before enteriing the mapping logic!!!!!

      Edited by: Arnab Mondal on Sep 22, 2008 4:54 PM

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 06:03 AM

    Wrong forum to ask I suppose !

    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.