on 05-06-2010 11:25 PM
Hi,
I am trying to add new functionality to Ecommerce 5.0 by providing my own custom actions and calling a custom RFC. I followed the procedure given in "Development and Extension Guide u2013 SAP E-Commerce 5.0" i.e., "Extension Demo 6: Copy-Template for Customer Extensions"...
I am passing 2 parameters company code and customer number to the RFC via JCO.Function.getImportParameterList().setValue(String) one of which is a value "BP01"..I am getting back an error saying
Guest#0##n/a##8a55139c594311df8f0a000000000000#SAPEngine_Application_Thread[impl:3]_17##0#0#Error##Plain###Field BP01 not a member of INPUT#
I checked with the SAP guys at my work, the function module works well with those parameters from the GUI.. NOt sure what the problem could be..
Any kind of input could be of help
Thanks
S
Looks like you are sending the BP01 as a parameter instead of the value of a parameter.
String cCode = "BP01"; //Company code - Input PARAMETER = say "CCODE"
String custName = "Stephen Graef"; //Customer name - Input PARAMETER = say "CUSTNAME"
//Set input parameters like this
JCO.Function.getImportParameterList().getField("CCODE").setValuecCode );
JCO.Function.getImportParameterList().getField("CUSTNAME").setValue(custName );
If you still feel that your code is correct, then check the IMPORT parameter list of the RFC you are calling.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help guys, Your answers were accurate for Ecommerce 6.0 and higher, I just learn t that E Commerce 5.0 uses Sapjco 2.X and there is a slight difference in the way we set the import parameter list..
In SAPJCO 2.x, we need to set
<b>myFunction.getImportParameterList.setValue<u>("Value", "FieldName")</u>;</b>
where as in new SAPJCO3.x, we need to change the order i.e.,
<b>myFunction.getImportParameterList.setValue<u>("FieldName", "Value")</u>;</b>
I am glad that my problem got solved
Cheers..
Hi Stephen,
Please check the name of the RFC parameter to which you want to pass this string "BP01". Ask your ABAP guys for this.
Say if your rfc is ZTEST and it has one import parameter "CUSTNAME" and you want to send "BP01" as the value for this import parameter.
Than write the code as below
JCO.Function.getImportParameterList().getField("CUSTNAME").setValue("BP01");
Hope this helps you.
Regards,
Arshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.