Why cant assign a string to a select-option
I have the following code, but when I run it gives me the following error msg ""LV_LOCID" cannot be a table, a reference, a string, or contain any of these objects"
Loop at lt_slpo into ls_slpo.
If ls_slpo-IOBJNM eq 'LOCNO'.
CALL FUNCTION '/SAPAPO/DM_LOCID_GET'
I_LOCNO_RTAB = ls_slpo-LOW
E_LOCID_TAB = lv_locid
NO_LOCATION = 1
NOT_QUALIFIED = 2
OTHERS = 3.
IF SY-SUBRC eq 0.
Select MATID LOCID from /SAPAPO/MATLOC
into corresponding fields of table lt_matloc
locid = lv_locid.
Any input would be appreiciate.