05-25-2006 7:41 AM
i have created method for a object.in that object i tried to implement the function module.In that function module i used to send the parameters of the type DATEELEMENT which i have created in table.while assigning the function module to the method it is displaying the error as the dataelement cannot be used for this method...
ii)when i declare a stucture also it is taking only the first component of the structure and not the others..
can anyone please resolve it????
05-25-2006 7:57 AM
Hi,
While creating an object in SWO1 there are some restrictions that are followed.
Method creation in the BOR supports only data elements and structures as reference types for parameters.Make sure that you are specifying the data elements correctly.Also system fields cannot be used as IMPORT/EXPORT parameters.
Nake sure that the table that you have created is active and without errors.
Cheers
Nishanth
05-25-2006 7:44 AM
Hi,
How hae you declared the variables in the method?
Can you post the code here?
Regards,
Ravi
05-25-2006 7:46 AM
i created the method in the swo1 transcation for enabling the workflow..while creating the method it has asked for the function module name i has given it directly there.
05-25-2006 7:50 AM
Is the function module active and has been released?
If the FM is active you should not get any error.
Regards,
Ravi
05-25-2006 8:07 AM
i have declared the dataelement zdatatype1 and passed this as the parameter to the function module.and the function module works fine.but when i create the method in the BOR it is showing the error "datatype zdatatype1 cannot be used for the methods"
05-25-2006 9:02 AM
i have declared the dataelement zdatatype1 and passed this as the parameter to the function module.and the function module works fine.but when i create the method in the BOR it is showing the error "datatype zdatatype1 cannot be used for the methods"
05-25-2006 9:14 AM
I tried creating a Z method and I also got the same error.Seems that some specific datatypes are not allowed to be used to create the method.
But the funny thing is as soon as the error message displays press ENTER.The message disappears.Presss ENTER again.This time there will be no error message.
Cheers
Nishanth
05-25-2006 9:50 AM
but when u check make the syntax check it will be showing the errors..and also u will not be able to implement those objects to the container..kindly check that
05-25-2006 7:57 AM
Hi,
While creating an object in SWO1 there are some restrictions that are followed.
Method creation in the BOR supports only data elements and structures as reference types for parameters.Make sure that you are specifying the data elements correctly.Also system fields cannot be used as IMPORT/EXPORT parameters.
Nake sure that the table that you have created is active and without errors.
Cheers
Nishanth