cancel
Showing results for 
Search instead for 
Did you mean: 

Sender RFC with only Tables as export

former_member181959
Contributor
0 Kudos

Hi all,

Currently i am working on RFC to PORXY scenario.

In R3 side i am using sender RFC to push a table of data. So my sender RFC contains only one table parameter. At the moment i am able to push the data to XI. But the problem is i have two fileds in the table Emp_No and Emp_Name. But when i see that in SXMB_MONI i can see the values for two fileds coming in one file like below,

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

<EMPLOYEE2>

<item>

<ENO>100NAME1</ENO>

<ENAME />

</item>

<item>

<ENO>100NAME2</ENO>

<ENAME />

</item>

</EMPLOYEE2>

</rfc:ZSEND_DATA_TO_PI2>

Can any one help what could be the problem here.

I have created a stub RFC to push the data to XI. And i am using request message of RFC (ZSEND_DATA_TO_PI) in the message mapping.

Please advise me what could be the problem here.

Thanks in advance.

Prasad Babu.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Maybe your RFC stub does not match the RFC structure, or you have changed the RFC later. In this case, you have to deactivate and reactivate the RFC channel to make the RFC adapter load the meta data again.

Former Member
0 Kudos

Hi,

Your RFC Structure is wrong. just check the parameters and types used.

Regards,

Mahakrishnan T.

former_member181959
Contributor
0 Kudos

Hi Stefan,

I just now noticed in Sm58 and the RFC transaction contains the real and actual data as below,

Line-No: 00000001 binary 313030505241534144202020202020202020202020202020202020202020202020

text 1 0 0 P R A S A D

Line-No: 00000002 binary 323939424142552020202020202020202020202020202020202020202020202020

text 2 9 9 B A B U

Line-No: 00000003 binary 363030505241534144424142552020202020202020202020202020202020202020

text 6 0 0 P R A S A D B A B U

But the Actual XML in SXMB_MONI , (first inbound step) contains below XML,

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

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

<EMPLOYEE>

<item>

<ENO>100</ENO>

<ENAME>SAD</ENAME>

</item>

<item>

<ENO>299</ENO>

<ENAME>U</ENAME>

</item>

<item>

<ENO>600</ENO>

<ENAME>SADBABU</ENAME>

</item>

</EMPLOYEE>

</rfc:ZSEND_DATA_TO_PI2>

I dont know why its trimming first 3 characters in ENAME filed.

Do you have any idea what could be wrong here.

Currently i am developing this scenarion in SAP Discovery System.

Thanks in advance.

Prasad.

Former Member
0 Kudos

did u make any changes in the structure after importing the RFM into XI??

if yes, i would suggest you to reimport it

Answers (2)

Answers (2)

madhusudana_reddy2
Contributor
0 Kudos

Hi Prasad,

Could you please tell me how you closed this problem. We are also facing the same situation, but not understanding how to resolve this issue.

Thanks,

Madhu

siddhesh_pathak4
Contributor
0 Kudos

Hello Prasad,

Can you provide your RFC and file structure seperatly.

former_member181959
Contributor
0 Kudos

Hi,

My RFC structure:

FUNCTION ztest_emp_sender.

*"----


""Local Interface:

*" TABLES

*" EMPLOYEE STRUCTURE ZEMPLOYEE

*"----


ENDFUNCTION.

My Stub structure:

FUNCTION zsend_data_to_pi.

*"----


""Local Interface:

*" TABLES

*" EMPLOYEE2 STRUCTURE ZEMPLOYEE

*"----


ENDFUNCTION.

Let me know if you need any information,

Regards,

Prasad.