状态栏及屏幕设置见图
*&---------------------------------------------------------------------*
*& Report ZPPR106
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZPPR106.
TABLES: afko,afpo,aufk.
TYPES: BEGIN OF tp_output,
box TYPE xfeld,
aufnr TYPE afko-aufnr, " 生产订单
werks TYPE afru-werks, " 工厂
plnbez TYPE afko-plnbez, " 物料编码
maktx TYPE makt-maktx, " 物料描述
wrkst TYPE mara-wrkst, " 基本物料
zcpgg TYPE mara-zcpgg, " 规格型号
gamng TYPE afko-gamng, " 生产订单数量
gmein TYPE afko-gmein, " 单位
lmnga TYPE afru-lmnga, " 确认数量
xmnga TYPE afru-xmnga, " 确认废品数量
rmnga TYPE afru-rmnga, " 确认返工数量
* meinh TYPE afru-meinh, " 单位
isdd TYPE afru-isdd, " 执行开始日期
iedd TYPE afru-iedd, " 执行完成日期
budat TYPE afru-budat, " 过账日期
lmngv TYPE afvv-lmnga, " 已确认数量
xmngv TYPE afvv-xmnga, " 已确认废品数量
rmngv TYPE afvv-rmnga, " 已确认返工数量
ltxa1 TYPE afru-ltxa1, " 确认文本
statu TYPE char50,
msg TYPE bapi_msg, " 消息
fstyle TYPE lvc_t_styl,
aufpl TYPE afko-aufpl,
objnr TYPE aufk-objnr,
ablad TYPE afpo-ablad,
rcol TYPE char4, "颜色
END OF tp_output.
DATA: gt_output TYPE STANDARD TABLE OF tp_output.
TYPES: BEGIN OF tp_afvv,
aufpl TYPE afvv-aufpl,
aplzl TYPE afvv-aplzl,
gmnga TYPE afvv-gmnga,
objnr TYPE afvc-objnr,
lmnga TYPE afvv-lmnga,
xmnga TYPE afvv-xmnga,
rmnga TYPE afvv-rmnga,
END OF tp_afvv.
TYPES: BEGIN OF tp_statu,
objnr TYPE afvc-objnr,
stat TYPE jest-stat,
txt04 TYPE tj02t-txt04,
txt30 TYPE tj02t-txt30,
END OF tp_statu.
DATA: gt_fcat TYPE lvc_t_fcat,
gs_layo TYPE lvc_s_layo.
CONSTANTS: yx VALUE 'X'.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE TEXT-001.
PARAMETERS: p_werks TYPE afru-werks OBLIGATORY DEFAULT '3100'.
SELECT-OPTIONS:s_aufnr FOR afko-aufnr,
s_fevor FOR afko-fevor,
s_gstrp FOR afko-gstrp, "订单开始日期
s_gltrp FOR afko-gltrp,"完成日期
s_auart FOR aufk-auart. "订单类型
* s_ablad FOR afpo-ablad.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN:
COMMENT 1(20) TEXT-sys FOR FIELD p_syst1 MODIF ID fnr,
POSITION 33.
PARAMETERS: