Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in declaration.

Former Member
0 Likes
957

Hello All,

Here is my statement

" DATA: newvariable(12) type N swc_get_element container 'REQUISITION_NUM' newvariable. "

The error I am getting :

Class ZCL_HRMSS_RECRUITING_WF,Method CREATENBOBJECT

",", "VALUE ...", "LENGTH ...", "DECIMALS ...", or "VALUE IS INITIAL"

expected after "N".

What maybe wrong

Regards.

Srinivas

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
633

What exactly you want to do with this statement, making multiple declarations for single variable in on line.

Regards,

Amit

2 REPLIES 2
Read only

amit_khare
Active Contributor
0 Likes
634

What exactly you want to do with this statement, making multiple declarations for single variable in on line.

Regards,

Amit

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
633

First. remove this entire part. " swc_get_element container 'REQUISITION_NUM' newvariable."

Just leave this .... and put a period on the end. The rest I believe should be on its own line and if you don't know what it does, then you should not put it in your code, so remove it.

DATA: newvariable(12) type N.

Regards,

Rich Heilman