on 12-05-2006 9:15 AM
Hello all,
How do u declare the required ref value in RFC fucntion when they require "[]" in .NET environment?
When I tested "BAPI_SALESORDER_GETSTATUSService", the second input requries a ref value w/ "WS_2_RFC_Test.Salesorder.BAPISDSTAT[]" type. But I just only see close to that under the web service is WS_2_RFC_Test.Salesorder.BAPISDSTAT, there is no such '[]'. Please tell me how do I declare that parameter.
Regards,
Steve
Hi Steve,
How are you doing ?
WS_2_RFC_Test.Salesorder.BAPISDSTAT[] sdStatArray;
sdStatArray = new WS_2_RFC_Test.Salesorder.BAPISDSTAT[5];
will create a new array of 5 elements with the type BAPISDSTAT,
in the function call use :
myFunctuinCall( ref parameterX, out paraY, ref sdStatArray);
please ensure that you instantiate all objects passed by ref.
with respect,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
WS_2_RFC_Test.Salesorder.BAPISDSTAT[] is an array of type BAPISDSTAT.
You may define a structre type as input/output parameter in RFC.
Corresponding proxy classes will be generated in .NET. You declare an array of that type, populate it with values and pass it.
Hope I understood your question?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.