Skip to Content
0
Former Member
Jul 03, 2006 at 08:01 AM

select ERR

22 Views

i made this select and get err

23 when acsesing table<b> mardh</b>

LOOP AT imard ASSIGNING <ls_mard>.

*

IF <ls_mard>-lfgja < year.

<ls_mard>-s_stock = <ls_mard>-labst.

<ls_mard>-e_stock = <ls_mard>-labst.

ELSE.

CONCATENATE <ls_mard>-lfmon <ls_mard>-lfgja INTO zmon_year.

  • current period in mard is smaller then s.screen period

IF zmon_year < z_period.

<ls_mard>-s_stock = <ls_mard>-labst.

<ls_mard>-e_stock = <ls_mard>-labst.

ELSE.

SELECT lgort

matnr

lfgja

lfmon

labst

FROM mardh

INTO TABLE imardh

WHERE matnr = <ls_mard>-matnr

AND werks = <ls_mard>-werks

AND lgort = <ls_mard>-lgort.