I have tried fetching data from SAP into Flex for simple BAPIs. For Ex; there would be 2 to 3 fields and we enter some values in it and these values are wrapped into an object and sent to SAP to fetch the details. This works fine.
But now, my problem is, I want to pass a list of data, as the one of the table parameter in the BAPI is mandatory to be passed. For this I created a arraycollection with same field names as in SAP:
<mx:Object FIELD_NAME="RENTAL_OBJECT" SIGN="I" OPTION="EQ" FIELD_VALUE_LOW="1" FIELD_VALUE_HIGH="9999999"/>
var inp:Object = new Object();
inp.SELOPTION = sel.source; //parameter name in SAP is SELOPTION
operation.arguments = inp;
I get the result back with this. But it will have only the table\structure names. It is not fetching any records, as it does in SAP when BAPI is executed.
You can have a look at the screen shot of it here:
This is the result that I'm getting in Flex:
This is the result I get in SAP when I execute the BAPI directly:
Can someone who have come across this please help me out?