03-13-2007 6:10 PM
Hello all,
The code is:
"DATA: newvariable type NUMERIC 12 swc_get_element container 'REQUISITION_NUM' newvariable."
The error am getting when activated is:
Class ZCL_HRMSS_RECRUITING_WF,Method CREATENBOBJECT
"NUMERIC" is a generic type. A type reference is possible only for
field symbols and formal parameters. -
What could be the problem.
Thanks
Srinivas
03-13-2007 6:17 PM
03-13-2007 6:21 PM
Hi Srinivas,
Change your newvariable declaration of variable as follows.
<b>DATA: newvariable(12) type N.</b>
Thanks,
Vinay
03-13-2007 6:40 PM
I get one more error after making changes what you said.
Class ZCL_HRMSS_RECRUITING_WF,Method CREATENBOBJECT
",", "VALUE ...", "LENGTH ...", "DECIMALS ...", or "VALUE IS INITIAL"
expected after "N".
Regards.
Srinivas
03-13-2007 6:57 PM
03-13-2007 6:59 PM
Hi Rich,
Here it is:
METHOD CREATENBOBJECT .
DATA: newvariable(12) type N swc_get_element container 'REQUISITION_NUM' newvariable.
CALL FUNCTION 'HRWPC_EREC_CREATE_EREC_OBJECT'
PS: is being imported from the container which was bound to workflow container.
Regards.
Srinivas
03-13-2007 7:08 PM
03-13-2007 7:10 PM
Hi Rich,
I put the period, now I get a different error:
Class ZCL_HRMSS_RECRUITING_WF,Method CREATENBOBJECT
Statement "SWC_GET_ELEMENT" is not defined. Check your spelling.
spelling.
03-13-2007 7:13 PM
03-13-2007 8:19 PM
Hello,
I am getting an error on the statement
swc_get_element container 'REQUISITION_NUM' newvariable.
And the error is:
Class ZCL_HRMSS_RECRUITING_WF,Method CREATENBOBJECT
Statement "SWC_GET_ELEMENT" is not defined. Check your spelling.
spelling.
Anybody has an idea whats goin on here.
Regards.
03-13-2007 7:13 PM
Hi,
You have to add the following include to invoke the macros..
INCLUDE <cntain>. "Workflow data declarations and routines
Thanks,
Naren
03-13-2007 7:20 PM
Hi Narendran,
What is <cntain>. ?
Could u tell the syntax of include.
Regards.
Srinivas