*在DRAD中查找图纸号
SELECT SINGLE doknr
INTO it_rpt-doknr
FROM drad
WHERE dokar = 'DRW' AND
dokob = 'MARA' AND
objky = it_rpt-baugr. “物料号
*在DRAT中查找图纸描述
SELECT SINGLE dktxt
INTO it_rpt-dktxt
FROM drat
WHERE dokar = 'DRW' AND
doknr = it_rpt-baugr AND ”物料号
SELECT SINGLE doknr
INTO it_rpt-doknr
FROM drad
WHERE dokar = 'DRW' AND
dokob = 'MARA' AND
objky = it_rpt-baugr. “物料号
*在DRAT中查找图纸描述
SELECT SINGLE dktxt
INTO it_rpt-dktxt
FROM drat
WHERE dokar = 'DRW' AND
doknr = it_rpt-baugr AND ”物料号
langu = ‘1’.
前台查看:MM03->附加数据->凭证数据->双击凭证