Hi all:
I have one rfc in my r/3 backend system.
YHR_TEST_FUNCTION_JSP
It has one parameter in changing : S_STRUCTION , which type is ZTEST_STRUCTION_TAB type.
I use NWDS to generate java proxy class for this bapi. The enterprise connector wizard helps me to generate the java proxy class, Yhr_Test_Function_Jsp_Input , Yhr_Test_Function_Jsp_Output .
I write the jsp code to use this java proxy class to call YHR_TEST_FUNCTION_JSP , my code looks like following:
-
Yhr_Test_Function_Jsp_Input input = new com.xinao.test.Yhr_Test_Function_Jsp_Input();
Ztest_StructionType ztype = new Ztest_StructionType();
ztype.setF_Parameter_1("ken2");
ztype.setF_Parameter_2("1");
ztype.setF_Parameter_3("1");
Ztest_StructionType_List ztypelist = new Ztest_StructionType_List();
ztypelist.addZtest_StructionType(ztype);
input.setS_Struction(ztypelist);
Test_PortType myproxy = new Test_PortType();
myproxy.messageSpecifier.setJcoClient(jcoclient);
Yhr_Test_Function_Jsp_Output output = myproxy.yhrTest_Function_Jsp(input);
-
After I run this code, it returns me the error message :
False parameter type during an Rfc call, error key: RFC_ERROR_SYSTEM_FAILURE
I cannot find out the reason of this error message
I check the old webdynpro code, I find that in webdynpro, if I import the same RFC, the java proxy input class will generate some method like " add " .
Why the pure java proxy class doesnot have the add method ? It only has setS_Struction