Skip to Content
Former Member
Jun 17, 2006 at 04:04 PM

debug read....also please explain wat ty_mara , itab and itab1 are


tables: mara, marc, makt.

TYPES : begin of ty_mara,

matnr type mara-matnr,

werks type marc-werks,

maktx type makt-maktx,

end of ty_mara.

DATA : itab type table of ty_mara, i,

itab1 type ty_mara.

select-options : s_matnr for mara-matnr,

s_werks for marc-werks,

s_maktx for makt-maktx.

select amatnr bwerks c~maktx into table itab

from mara as a

inner join marc as b on amatnr = bmatnr

inner join makt as c on amatnr = cmatnr

where a~matnr in s_matnr and

b~werks in s_werks and

c~maktx in s_maktx.

if sy-subrc ne 0.

message 'not right' type 'I'.


read table itab into itab1 index i.

if sy-subrc eq 0.

message 'success' type 'S'.


message 'fail' type 'S'.