REPORT zhello.
DATA:outtab001 TYPE TABLE OF zsfms_getpctx WITH HEADER LINE,
it_matnr TYPE TABLE OF ccvx_matnr WITH HEADER LINE,
it_atnam TYPE TABLE OF tctrw WITH HEADER LINE.
it_matnr-matnr = 'E0201203832'.
APPEND it_matnr.
SORT it_matnr BY matnr.
REFRESH:outtab001,it_atnam.
PERFORM get001 TABLES it_matnr.
SORT outtab001 BY matnr atnam.
BREAK-POINT.
FORM get001 TABLES t_matnr STRUCTURE ccvx_matnr.
DATA:BEGIN OF it_objek OCCURS 0,
objek TYPE kssk-objek,
END OF it_objek.
CLEAR:it_objek[],outtab001[].
DELETE t_matnr WHERE matnr IS INITIAL.
CHECK t_matnr[] IS NOT INITIAL.
SORT t_matnr BY matnr.
LOOP AT t_matnr.
CLEAR:it_objek.
it_objek-objek = t_matnr-matnr.
COLLECT it_objek.
ENDLOOP.
*取001的特征
SELECT ksml~clint,
ksml~posnr,
ksml~adzhl,
ksml~klart,
ksml~imerk AS atinn,
cabn~atnam ,
cabn~atfor ,
cabn~anzst ,
cabn~anzdz ,
kssk~objek AS matnr
INTO TABLE @DATA(it_ksml)
FROM ksml INNER JOIN cabn ON ksml~imerk = cabn~atinn
INNER JOIN kssk ON ksml~clint = kssk~clint
AND kssk~klart = '001'
FOR ALL ENTRIES IN @it_objek
WHERE kssk~objek = @it_objek-objek.
IF sy-subrc EQ 0.
SORT it_ksml BY klart matnr atinn.
SELECT *
INTO TABLE @DATA(lt_ausp)
FROM ausp
FOR ALL ENTRIES IN @it_ksml
WHERE klart = @it_ksml-klart
AND objek = @it_ksml-matnr
AND atinn = @it_ksml-atinn.
SORT it_ksml BY matnr atinn.
LOOP AT lt_ausp INTO DATA(lw_ausp).
CLEAR:outtab001,it_atnam.
IF lw_ausp-atwrt IS INITIAL.
CONTINUE.
ENDIF.
outtab001-matnr = lw_ausp-objek.
READ TABLE it_ksml INTO DATA(wa_ksml) WITH KEY matnr = lw_ausp-objek
atinn = lw_ausp-atinn
BINARY SEARCH.
IF sy-subrc EQ 0.
outtab001-atnam = wa_ksml-atnam.
outtab001-atwrt = lw_ausp-atwrt.
APPEND outtab001.
it_atnam-atnam = outtab001-atnam."汇总,后续取描述
COLLECT it_atnam.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM.
取001的特征
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 一、特征提取概要: 1、定义:将任意数据(如文本或图像)转换为可用于机器学习的数字特征。 注:特征值化是为了计算机...
- 来源:ApacheCN《面向机器学习的特征工程》翻译项目 译者:friedhelm739 校对:(虚位以待) 视觉...
- 写在前面 开心练字的每日一字第二季的内容今天正是上线,计划用一年的时间,通过对《集字圣教序》的逐字,逐句,逐列的分...
- 这一篇是张泽民老师团队发在cell上的文章,包括了196个新冠病人,284个样本,1462702个细胞的单细胞测序...
- 培养孩子健全的人格--这才是儿童教育的首要目的。其他诸如如何积累书本知识、提高智力的问题则是儿童教育的枝节和皮毛。...