2007 Apr 10 1:16 PM
hai
can any one explain
what this report will do.. how the o/p will be,..
"<b>Input of material and plant as select-options and material type as parameter. Output list will have quantity by material group and plant.</b>
what r the tables used ?
thanks in advance..
2007 Apr 10 1:20 PM
2007 Apr 10 1:21 PM
MARC - plant specific material master data
regards,
Hans
Please reward all helpful answers !!!!!
2007 Apr 10 1:22 PM
Hi,
tables mara&marc has all these fields.
tables:mara,marc.
select-options:i_matnr for mara-matnr,
i_WERKS for marc-WERKS.
parameters:mtart like mara-mtart.
data:plant like marc-werks,mat_grp like mara-matkl.
select bwerks amatkl into( plant,mat_grp ) from mara as a inner join marc as b on amatnr = bmatnr where amatnr in i_matnr and bwerks in i_werks and a~mtart = i_mtart.
write:/ plant,mat_grp.
endselect.
rgds,
bharat.
2007 Apr 10 1:22 PM
2007 Apr 10 1:23 PM
Hi,
This is code structure:
report z_mmdetail.
"This are tables used.
tables: mara, "Material master
makt "Materiald description.
"select-options and parameters
select-options: s_matnr ffor mseg-matnr,
s_werks for mseg-werks.
parameters: p_mtart type mara-mtart.
"Now fetch data from mara
2007 Apr 10 2:58 PM