04-10-2009 7:10 PM
I created a FM with import parameter MATNR, Remote Enable is set.
When I attach this FM to a business object by using SWO1, it says:
"Data type MATNR cannot be used for methods"
The reason is:
"You tried to create a method in the BOR with a data type that is not supported. Only data elements and structures are allowed as reference types for parameters in the BOR."
But when I change the parameter in the FM, not passing by value, It says:
"Reference parameters are not allowed with RFC"
If I set the FM to not remote call enable, I cannot attach to the business object type.
How can I solve this problem? Thanks!
04-10-2009 7:24 PM
Hi Anthony,
Define your import parameter type as: BAPIMATALL-MATERIAL not MATNR.
When faced with a doubt like this, check existing BAPIs - e.g. BAPI_MATERIAL_EDIT.
Cheers,
Aditya
Edited by: Aditya Laud on Apr 10, 2009 2:25 PM
04-10-2009 7:24 PM
Hi Anthony,
Define your import parameter type as: BAPIMATALL-MATERIAL not MATNR.
When faced with a doubt like this, check existing BAPIs - e.g. BAPI_MATERIAL_EDIT.
Cheers,
Aditya
Edited by: Aditya Laud on Apr 10, 2009 2:25 PM
04-10-2009 8:47 PM
04-10-2009 7:45 PM
Hi,
Make sure all parameters of Rfc are "pass by value" and this Rfc is in realeased status.
Thanks,
Asit Purbey.