Skip to Content
avatar image
Former Member

Field "SY_TABIX" is unknown. It is neither in one of the specified

Hello Folks,

I am getting an error while writing a code for datasource enhancement using cmod functionality. Error called as Field "sy_tabix" is unknown. following is my code can anybody please help me out.

TABLES : MBEWH.

DATA : L_S_str LIKE str,

I_TABIX LIKE SY_TABIX.

CASE I_DATASOURCE.

WHEN ' DS_NAME'.

LOOP AT C_T_DATA INTO STR.

L_TABIX = SY_TABIX.

SELECT SINGLE * VERPR STPRS PEINH FROM MBEWH

INTO (L_S_MASTSTKO-ZZVERPR,

L_S_MASTSTKO-ZZSTPRS,

L_S_MASTSTKO-ZZPEINH)

WHERE MATNR = L_S_STR.

IF SY-SUBRC = 0.

MODIFY C_T_DATA FROM L_S_STR INDEX I_TABIX.

ENDIF.

ENDLOOP.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 24, 2016 at 08:50 AM

    Error has resolved. there is syntax error, i have to define sy-tabix and i defined it as sy_tabix becuase of this i am getting an error.

    Thanks & Regards,

    Nupur Dubey

    Add comment
    10|10000 characters needed characters exceeded