Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

RFC TO File Scenerio Issue

Hi,

In a RFC to file scenerio, I hav done a proper sm59 tcp/ip connection, and given correct server details and program id. My RFC adapter is ok in CC in XI. File is getting created. But file is blank.it is carrying no data at all.

Pls dont send URLs. ask me as many as questions u want but tell me where I am doing the mistake.

See the R/3 zprogram code and the RFC code tell me what all corrections I need to do!!

**************************************

report zrfc_adapter.

data: it_final1 type standard table of zrfc_str.

REPORT ZRFC_ADAPTER.

Data: it_final1 type standard table of zrfc_str.

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.

Refresh : it_final1

**************************************

function zrfc_xi.

Local Interface:

TABLES

IT_FINAL STRUCTURE ZRFC_STR OPTIONAL

it_final-name = 'XXXXX'.

it_final-telephone = '123XXXXX'.

it_final-address = 'XXXXX'.

append it_final.

break-point.

endfunction.

**************************************

The sxmb_moni load is as follows:

**************************************

<?xml version="1.0" encoding="UTF-8"?><rfc:ZRFC_XI xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><USERNAME>RETAILDEV</USERNAME><IT_FINAL></IT_FINAL></rfc:ZRFC_XI>

**************************************

But the Existing url of the Sender system...i.e. RFC in messege mapping when i click on -- TEST -- SOURCE TEXT VIEW is

**************************************

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

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

<USERNAME>

RETAILDEV

</USERNAME>

<IT_FINAL>

</IT_FINAL>

</ns0:ZRFC_XI>

**************************************

1. Tell me why is data from Tablles parameter of the RFC not getting reflected in the SXMB_MONI load.

2. Why is the moni load and the messege mapping -


TEST -- SOURCE TEXT VIEW is

so different. There is some mistake here, which I cannot understand.

Pls comment !!

I hav checked several SDN Urls, so no Urls !!

Points will be rewarded !!

Regards,

Arnab

Edited by: Arnab Mondal on Sep 18, 2008 1:55 PM

replied

Hi,

Try appending the value to the table in the program itself and pass the table with values to the RFC call.

If it doesn't work, try passing the table as a exporting parameter using Table Type.

-Dava

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question