Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Why cant assign a string to a select-option

Hello friends,

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"

CODE:

Loop at lt_slpo into ls_slpo.

If ls_slpo-IOBJNM eq 'LOCNO'.

CALL FUNCTION '/SAPAPO/DM_LOCID_GET'

EXPORTING

I_LOCNO_RTAB = ls_slpo-LOW

IMPORTING

E_LOCID_TAB = lv_locid

EXCEPTIONS

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

Where

locid = lv_locid.

ENDIF.

Any input would be appreiciate.

Many thanks

Tags:
Not what you were looking for? View more on this topic or Ask a question