ABAP 订单转交货单
Posted 衣斜川
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ABAP 订单转交货单相关的知识,希望对你有一定的参考价值。
*& Report ZSDR025
*&
*&---------------------------------------------------------------------*
*&程序名称
*&事物代码:
*&导入模板:无
*&作者
*&时间:
*&更新时间
REPORT zsdr025.
TYPE-POOLS: slis.
TABLES : vbak,vbap,vbep,ztsd024,t171t.
SELECTION-SCREEN BEGIN OF BLOCK sc3 WITH FRAME TITLE text-003.
SELECT-OPTIONS : vkorg FOR vbak-vkorg MEMORY ID vko,
werks FOR vbap-werks,
*PARAMETERS : "vkorg LIKE vbak-vkorg OBLIGATORY MEMORY ID vko,
vtweg FOR vbak-vtweg MEMORY ID vtw,
"spart FOR vbak-spart MEMORY ID spa,
"spart2 FOR vbap-spart MEMORY ID spa1,
bzrik FOR t171t-bzirk,
vkbur FOR vbak-vkbur ,
vkgrp FOR vbak-vkgrp
.
SELECTION-SCREEN END OF BLOCK sc3.
SELECTION-SCREEN BEGIN OF BLOCK sc1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : auart FOR vbak-auart.
*kunnr_y LIKE vbpa-kunnr,
SELECT-OPTIONS :
kunnr FOR vbak-kunnr,
*werks FOR vbap-werks,
lgort FOR vbap-lgort,
vstel FOR vbap-vstel,
ernam FOR vbak-ernam,
vbeln FOR vbak-vbeln,
erdat FOR vbak-erdat.
SELECT-OPTIONS :
edatu FOR vbep-edatu,
ezeit FOR vbep-ezeit.
*PARAMETERS : ck_audit AS CHECKBOX. "已审核
SELECTION-SCREEN END OF BLOCK sc1.
SELECTION-SCREEN BEGIN OF BLOCK sc2 WITH FRAME TITLE text-002.
*SKIP 2.
PARAMETERS : ck_audit AS CHECKBOX. "已审核
*SKIP 2.
SELECT-OPTIONS:
p_vl_s FOR ztsd024-vbeln_vl,
p_vbn_s FOR ztsd024-vbeln,
p_erdat FOR ztsd024-erdat,
p_ernam FOR ztsd024-ernam .
SELECTION-SCREEN END OF BLOCK sc2.
DATA : gs_layout TYPE slis_layout_alv.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE. "抬头
DATA: gt_fieldcat_d TYPE slis_t_fieldcat_alv WITH HEADER LINE. "明细
DATA: gt_fieldcat_s TYPE slis_t_fieldcat_alv WITH HEADER LINE. "审核取消
DATA : is_keyinfo TYPE slis_keyinfo_alv.
TYPES: BEGIN OF ty_vbap ,
ck,
auart LIKE vbak-auart,
vbeln LIKE vbak-vbeln,
vstel LIKE vbap-vstel,
spart1 LIKE vbak-spart,
spart2 LIKE vbap-spart,
bezei LIKE v_tvak-bezei,
kunnr LIKE vbak-kunnr,
name4 TYPE ad_name1,
kunnr_s LIKE vbpa-kunnr,
name5 TYPE ad_name1,
kunnr_j LIKE vbpa-kunnr,
name6 TYPE ad_name1,
bzirk LIKE t171t-bzirk,
adrnr LIKE vbpa-adrnr,
vkbur LIKE vbak-vkbur,
vkgrp LIKE vbak-vkgrp, "办事处
name7 TYPE ad_name1,
bzirk_txt LIKE t171t-bztxt,
telf1 LIKE kna1-telf1,
erdat LIKE vbak-erdat,