Hi All,
I am using NCO 3.0 with VS2010 to create a service.
The following line in a service gives a blank when executed.
String Emp_Position = (String)irfc_func_obj.GetValue("O_POSITION_TEXT");
There are other similar statements as above which return the correct String from the function's export.
Can anyone tell me if there is a limitation when using GetValue() or if if I can cast to a different object to get the result?
Any suggestions are appreciated.
Thanks.
Why not use .GetString instead of .GetValue? I know you said it worked for you with other statements, but I've always used .GetString. Why don't you give that a try.
If it doesn't work, let me know what the SAP data type for O_POSITION_TEXT is.
Thanks for your reply Case.
I have used .GetString but the result is the same as using .GetValue with typecasting. I still cannot the value. I can see that the values are available in SAP as they are displayed in the SAP client. Also, some fields having similar datatype are seen but some are not.
The datatype for O_POSITION_TEXT is HRP1000-STEXT
i.e it O_POSITION_TEXT uses the elementary data type CHAR length 40
Thanks for your time Case Ahr. The problem was because of a wrong input param being passed. My issue has been resolved.