cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC Source data not filled correctly

Former Member
0 Likes
2,002

Hi All,

I am facing a typical problem.

I have created a RFC to File scenario and I am running the ABAP program to call the RFC with the following values:

field1(type Char 14; value:'aaaaaa') --> Field1 (string)

filed2(type Char 15; value:'000000000000012') -->Field2 (string)

filed3(type Char 10; value: 'fgdf') -->Field3 (string)

field4(type Char 8; value: 'sgsdfg') -->Field4 (string)

However, the source structure in XI is getting filled with the following values:

Field1 - 'aaaaaa'

Field2 - '00000012fgdfsgsdfg'

Field3 - Empty

Field4 - Empty.

This is in the source structure (before the mapping is done). I am unable to make out if the problem is there in ABAP program or in XI.

I tried debugging ABAP program. But it looked perfectly fine. Is there something I need to change in XI for this scenario???

Please reply its urgent.

Reward points would be given.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi

First check if RFC is remotwe enabled.

I hope u have created TCP/IP RFC connection in Sender System with program id and this same program id is maintained in the ID Sender RFC Configuration.

Also check the program id should be same in both area --> Since it is case senstive.

Also --> import RFC in IR , if u have made changes in RFC re import that's better.

hope above is helpful

rwd points if useful

rgds

srini

Former Member
0 Likes

Hi Srini,

The RFC connection is fine, I am able to get values in the source structure.However, the values are not getting correctly populated.

Thanks,

Vishal.

Former Member
0 Likes

Hi,

Then have u checked the mapping and u r "Receiver File Adapter" Config ??

Have u given right conetent conversion

rdgs

srini

Answers (6)

Answers (6)

Former Member
0 Likes

I have answered this question myself, when I changed the table from table's tab of RFC to Import tab with a table type...it started working fine...

Former Member
0 Likes

Hello Saxena,

Kindly use CONVERSION_EXIT_MATN1_INPUT Function Module.. it seems you wrongly CONVERSION_EXIT_ALPHA_INPUT..

Please use FM i mentioned over here....

Regards,

R.Ragu

Former Member
0 Likes

kindly do Cache Connectivity Test in Component Monitoring Page of RWB

Former Member
0 Likes

check the RFC connection from the SAP ERP to SAP XI in order to be compatible with the encoding setting. For examplke if both systems are UNICODE then check on the appropriate tab of the RFC connection if the UNICODE checkbox is marked.

Former Member
0 Likes

Refresh.....Please Reply!! we are still facing the same problem....we have used Conversion_Exit_Alpha_Input function module too....however, it didn't resolve the problem.

Former Member
0 Likes

Hi Vishal,

I hope you are using MOVE Statement to assign the values to the respective fields.Try to use UNPACK Statement for each field to fix this issue.

MOVE Field1[Source to Field1[Target].

UNPACK Field1[Target] to Field1[Target].

Let me know what exact code you are using if you are still facing the same problem.

Thanks

Sudharshan

Former Member
0 Likes

Hi Vishal

Also check with Data type that you have declared try to use the same data type that RFC has declared.

Thanks

Sudharshan

Former Member
0 Likes

Hi ,

i hope you r using MATNR Field...

in ABAP MATNR Domain contains Conversion Routine CONVERSION_EXIT_MATN1_INPUT...

it will convert input into 18 characters Format... it works internally....

so u need to populate 18 chars for the same.... other wise ur problem will continue

ask them to use it....

check with ur ABAP Team...

Regards,

R.Ragu

Former Member
0 Likes

HI Vishal,

This is a problem only with the RFC at the sender side.

XI do not manupulate any data coming in from the adapters,

try to reimport the RFC in IR and check again. Also get the programm debugged by the ABAPers.

Regards,

Rookie.

Former Member
0 Likes

Hi All,

I am still unable to debug this problem....I got the program checked by an ABAPer and changed the structure of the tables in SE11 and Reimported the RFC too. However, this time the fields: Field 1; Field 3; and Field 5 got filled with random data and the field for Field2( Datum) and Field4 (Matnr) are still Empty.

I'll be glad if anyone could help me with this.

Thanks,

Vishal.

Former Member
0 Likes

Hi,

It seems that you have made some changes in the structure of RFC in R/3 (after importing it into XI). Just re-import the RFC again into your Repository and try.

Regards,

Sarvesh