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

ABAP: very basic syntax question

Former Member
0 Likes
725

Hi,

Why doesn't this compile? skwfc_prop_relative_url a constant in type group SKWFC.

data: LS_PROP type SDOKPROPTY.
LS_PROP-NAME  = skwfc_prop_relative_url.

Compile error:

"LS_PROP-" expected, not "SKWFC_PROP_".

Thanks!

Jeroen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
692

Hi jeroen,

1. just include the type pool, ten it will work.

<b>TYPE-POOLS : SKWFC.</b>

data: LS_PROP type SDOKPROPTY.

LS_PROP-NAME = skwfc_prop_relative_url.

regards,

amit m.

6 REPLIES 6
Read only

Former Member
0 Likes
692

at the first line you have declared variable "LS_PROP",

and in the second line you are giving "skwfc_prop_relative_url",that is not any filed.

give "skwfc_prop-relative_url" .

Read only

Former Member
0 Likes
692

Hi Jeroen,

Include the type group in your report.

type-groups : SKWFC.

data: LS_PROP type SDOKPROPTY.

LS_PROP-NAME = skwfc_prop_relative_url.

Should work.

Regards,

Laxman Nayak

Read only

Former Member
0 Likes
692

hi,

have u defined this <b>skwfc_prop_relative_url</b>.

Read only

Former Member
0 Likes
693

Hi jeroen,

1. just include the type pool, ten it will work.

<b>TYPE-POOLS : SKWFC.</b>

data: LS_PROP type SDOKPROPTY.

LS_PROP-NAME = skwfc_prop_relative_url.

regards,

amit m.

Read only

abdul_hakim
Active Contributor
0 Likes
692

hi

include the statement <b>type-pools SKWFC.</b>

Read only

Former Member
0 Likes
692

For me it is working fine. Whatever Amit has posted just copy that. It should work.