Skip to Content
0

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

Nov 24, 2016 at 07:47 AM

188

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

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

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

Share
10 |10000 characters needed characters left characters exceeded