Skip to Content
0
Former Member
Sep 07, 2007 at 10:04 PM

RFC missing some output fields

311 Views

Hello developers, I have encountered a very strange problem... I have a table in an iview which displays the output from an RFC. Simple. Problem is, the RFC is only returning certain fields correctly...

for example, the following is text from the table that I am displaying on the iview:

(the table consists of 3 fields: DATE | TEXT DESCRIPTION | MONEY AMOUNT)

29/May/2007 | COLEGIATURA MAESTRIA | $ 335.55

31/May/2007 | COLEGIATURA MAESTRIA | -$ 335.55

06/Sep/2007 | <---- -Missing field --


> | $ 100.00

The < -missing fields -> are the texts that are not being displayed properly in my iview (it is supposed to display the word "INTERESES"). The really weird thing is that if I execute the same RFC directly in R3, I get the entire fields correctly, like this:

29/May/2007 | COLEGIATURA MAESTRIA | $ 335.55

31/May/2007 | COLEGIATURA MAESTRIA | -$ 335.55

06/Sep/2007 | INTERESES | $ 100.00

WHY IS THE RFC NOT RETURNING THOSE FIELDS WHEN IT IS EXECUTED FROM THE PORTAL!!!!!!????

A few things I want to add:

- The data type of the Context node to which i am binding the output data from the RFC is a String. The RFC output node field's data type is Text50 (which is basically a SAP String).

- I changed the data type of the context node from String to Text50 and nothing happened.

- I print the entire data from the RFC output node directly on screen (using a for loop and the IMessageManager's reportSuccess method) before doing anything and it returns the same thing (i.e. nothing happened).

- Yes, the Node that I am binding to the output node of the RFC is correctly binded.

- Yes, I have restarted the server.

- Yes, I have reimported the RFC model.

- Yes, I am sending the right input parameters to the RFC (it has only one input parameter, and I am sending the correct one, otherwise it would not return anything).

- I have tried getting the lenght of the missing field's, and they return "0" (meaning it is empty).

The ABAP team has told me that the problem is on the portal side, not on theirs, so they assume the RFC is working correctly.

I was a little sceptical about that and I did a little research on the RFC (i don't know ABAP at all). The RFC reads texts from different tables and it turns out that all of the fields that are missing are read from one table. This table has 19 entries, and none of the 19 texts that belong to that specific table are being properly displayed in the portal.

So I checked a little further and those texts are of the same type (Text) as the rest of the texts that are being properly displayed so the ABAP team assures me that is not the problem.I find it a little suspicious that the only data that is giving me trouble belongs to that one table.

Maybe the problem is neither on the Java code or on the ABAP code, maybe it is somewhere in the middle (maybe on the JCO connections, the parsing of the data or something)... Can somebody please help me out?? I have been with this problem since monday and I am nowhere near the solution...