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 program

Former Member
0 Likes
857

Hi ,

I am getting syntax error in the following line -

MOVE-CORRESPONDING ls_heur_setting-heur_set

TO ls_strategyparameter

and the error is -

"HEUR_SET is not a structure or internal table with header line "

ls_heur_settings defined as -

ls_heur_settings TYPE /sapapo/heur_settings,

/sapapo/heur_settings is a structure and HEUR_SET is one the component whose data type is table type.

Please suggest how to correct above problem.

6 REPLIES 6
Read only

Former Member
0 Likes
826

hi ,

define the table ls_heur_settings with occurs 0 of header line like this,

data : ls_heur_settings type /sapapo/heur_settings occurs 0 .

regards,

venkat.

Read only

0 Likes
826

Hi Venkat ,

I tried your solution, it is not working.

Narayan

Read only

0 Likes
826

try this

MOVE-CORRESPONDING ls_heur_setting TO ls_strategyparameter.

Regards,

Atish

Read only

0 Likes
826

Hi Atish ,

It seems solution given by you will work. Please confirm one thing -

ls_heur_setting is pointing to the table type Heur_set will it consider all the components of Heur_set ?

Read only

Former Member
0 Likes
826

hi,

MOVE-CORRESPONDING ls_heur_setting-heur_set

TO ls_strategyparameter

is wrong coz u r trying to move value in a field ls_heur_setting-heur_set into a entire structure ls_strategyparameter

the right way shd be always moving values from structure to sturcture

that is

MOVE-CORRESPONDING ls_heur_setting

TO ls_strategyparameter

reward points if its useful

Read only

Former Member
0 Likes
826

closed