ABAP 鍐呰〃鐨勮鍒楄浆鎹?鍙戣揣閫氱煡鍗?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ABAP 鍐呰〃鐨勮鍒楄浆鎹?鍙戣揣閫氱煡鍗?相关的知识,希望对你有一定的参考价值。
鏍囩锛?/p>
*&---------------------------------------------------------------------*
*& Report Z_TEST_COL_TO_ROW_02
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT Z_TEST_COL_TO_ROW_02.
TABLES: VTTP,LIPS,LIKP,KNA1 ,VTTK.
DATA: gs_fcat TYPE lvc_s_fcat,
gt_fcat TYPE lvc_t_fcat,
gs_layo TYPE lvc_s_layo,
gs_grid TYPE lvc_s_glay.
DATA: gt_event TYPE slis_t_event WITH HEADER LINE,
gt_event_exit TYPE slis_t_event_exit WITH HEADER LINE.
DATA: ref_grid TYPE REF TO cl_gui_alv_grid .
TYPES: BEGIN OF TY_ALL,
TKNUM LIKE VTTK-TKNUM,"杩愬崟鍙?br />
VBELN LIKE LIPS-VBELN,"浜よ揣鍗曞彿
TPLST LIKE VTTK-TPLST ,"瑁呰繍鐐?br />
NAME1 LIKE KNA1-NAME1 ,"瀹㈡埛
ERDAT LIKE VTTK-ERDAT ,"鍒涘缓鏃ユ湡
TDLNR LIKE VTTK-TDLNR ,"鐗╂祦鍏徃
ROUTE LIKE VTTK-ROUTE ,"绾胯矾
DISTZ LIKE VTTK-DISTZ ,"閲岀▼
ADD01 LIKE VTTK-ADD01 ,"杞︿富
EXTI1 LIKE VTTK-EXTI1 ,"鍗歌揣鐐?br />
ADD02 LIKE VTTK-ADD02 ,"鍙告満
BFART LIKE VTTK-BFART ,"杞﹀帰绫诲瀷
MATNR LIKE LIPS-MATNR,"鐗╂枡缂栫爜
ARKTX LIKE LIPS-ARKTX,"鐗╂枡鎻忚堪
BRGEW LIKE LIPS-BRGEW,"璐х墿鍗曢」鐩瘺閲?br />
LFIMG LIKE LIPS-LFIMG,"鍗曢」鐩暟閲?br />
VRKME LIKE LIPS-VRKME ,"鍗曚綅
GEWEI LIKE LIPS-GEWEI,"閲嶉噺鍗曚綅
LGORT LIKE LIPS-LGORT,"搴撳瓨鍦扮偣
BEIZHU(30) TYPE C,"澶囨敞
END OF TY_ALL.
TYPES:BEGIN OF TY_HEADER,
TKNUM LIKE VTTK-TKNUM,"杩愬崟鍙?br />
VBELN LIKE LIPS-VBELN,"浜よ揣鍗曞彿
NAME1 LIKE KNA1-NAME1 ,"瀹㈡埛
TPLST LIKE VTTK-TPLST ,"瑁呰繍鐐?br />
ERDAT LIKE VTTK-ERDAT ,"瑁呰繍鏃ユ湡
TDLNR LIKE VTTK-TDLNR ,"鐗╂祦鍏徃
ROUTE LIKE VTTK-ROUTE ,"绾胯矾
DISTZ LIKE VTTK-DISTZ ,"閲岀▼
ADD01 LIKE VTTK-ADD01 ,"杞︿富
EXTI1 LIKE VTTK-EXTI1 ,"鍗歌揣鐐?br />
ADD02 LIKE VTTK-ADD02 ,"鍙告満
BFART LIKE VTTK-BFART ,"杞﹀帰绫诲瀷
TOTAL_BRGEW LIKE LIPS-BRGEW,"涓€涓氦璐у崟鐨勬€婚噸閲?br />
END OF TY_HEADER.
*鍗曟嵁鎶ご缁撴潫
*鍗曟嵁鏄庣粏寮€濮?br />
TYPES:BEGIN OF TY_ITEMS,
TKNUM LIKE VTTK-TKNUM,"杩愬崟鍙?br />
VBELN LIKE LIPS-VBELN,"浜よ揣鍗曞彿
NAME1 LIKE KNA1-NAME1 ,"瀹㈡埛
MATNR LIKE LIPS-MATNR,"鐗╂枡缂栫爜
ARKTX LIKE LIPS-ARKTX,"鐗╂枡鎻忚堪
BRGEW LIKE LIPS-BRGEW,"鍗曢」鐩瘺閲?br />
GEWEI LIKE LIPS-GEWEI,"閲嶉噺鍗曚綅
LFIMG LIKE LIPS-LFIMG,"鍗曢」鐩暟閲?br />
VRKME LIKE LIPS-VRKME ,"鍗曚綅
LGORT LIKE LIPS-LGORT,"搴撳瓨鍦扮偣
BEIZHU(30) TYPE C,"澶囨敞