cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Receiver Problem

Former Member
0 Kudos

I have a scenario File -> XI -> RFC (Async), XI call a FM to create a Material in R/3, the FM has one table for languages, after mapping the structure goes as follow:

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

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

<I_CATALOGUE>FAMILY</I_CATALOGUE>

<I_CODE>A75</I_CODE>

<ES_RETURN />

<IT_ZMM_VALUESCT04>

<item>

<LAISO>E</LAISO>

<TEXT>LUBRICANT</TEXT>

</item>

<item>

<LAISO>S</LAISO>

<TEXT>LUBRICANTES</TEXT>

</item>

<item>

<LAISO>D</LAISO>

<TEXT>LUBRICANT_GERMAN</TEXT>

</item>

<item>

<LAISO>L</LAISO>

<TEXT>LUBRICANT_POLISH</TEXT>

</item>

<item>

<LAISO>F</LAISO>

<TEXT>LUBRICANT_FRENCH</TEXT>

</item>

</IT_ZMM_VALUESCT04>

</ns0:Z_MM_EXTRACT_DATA_TO_MDM_2>

the field LAISO is defined as SPRAS type in the FM, despite XI tells me everything is OK (in RWB) the FM module does not create the languages for the Material but when I execute the FM in R/3 works fine.

Someone face this problem before?

Is there a way to debug the RFC call?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rub,

You <b>can</b> dynamically debug an RFC call.

The process is as follows:

In R/3, Goto SE37->Display your FM->Choose Menu 'Utilities'->Settings->ABAP Editor->Debugging->In users, set the user name that you are using for connecting to RFC and also tick session breakpoint active immediate. Now place an external breakpoint in the FM source code where you wish to debug.

Then drop a file with <b>a single record</b> in XI, and a debugger screen will pop-up when the RFC gets called in the R/3 system.

Hope this helps!

Regards,

Amitabha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In ur function module have u written COMMIT WORK statement.

Try out this.

Thanks.