‎2008 Mar 08 11:35 AM
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.
‎2008 Mar 08 11:42 AM
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.
‎2008 Mar 08 11:59 AM
‎2008 Mar 08 12:00 PM
try this
MOVE-CORRESPONDING ls_heur_setting TO ls_strategyparameter.
Regards,
Atish
‎2008 Mar 08 12:06 PM
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 ?
‎2008 Mar 08 12:37 PM
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
‎2011 Sep 05 10:28 AM