CS_WHERE_USED_MAT BOM反查
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CS_WHERE_USED_MAT BOM反查相关的知识,希望对你有一定的参考价值。
函数结构,详见附件
调用代码:
DATA: topmat TYPE mc29s.
DATA: datub TYPE rc29l-datub.
DATA: wultb TYPE TABLE OF stpov WITH HEADER LINE.
DATA: matcat TYPE TABLE OF cscmat WITH HEADER LINE.
DATA: tm_base TYPE TABLE OF ty_base WITH HEADER LINE.
DATA: equicat TYPE TABLE OF cscequi WITH HEADER LINE.
DATA: kndcat TYPE TABLE OF cscknd WITH HEADER LINE.
DATA: stdcat TYPE TABLE OF cscstd WITH HEADER LINE.
DATA: tplcat TYPE TABLE OF csctpl WITH HEADER LINE.
DATA: prjcat TYPE TABLE OF cscprj WITH HEADER LINE.
datub = ‘19000101‘.
CALL FUNCTION ‘CS_WHERE_USED_MAT‘
EXPORTING
datub = datub
datuv = sy-datum
matnr = t_base-matnr
* POSTP = ‘ ‘
* RETCODE_ONLY = ‘ ‘
stlan = t_base-stlan
werks = t_base-werks
* MCLMT = ‘ ‘
* MNSTL = ‘ ‘
* MXSTL = ‘ ‘
* STLTP = ‘ ‘
* NEWSI = ‘ ‘
IMPORTING
topmat = topmat
TABLES
wultb = wultb
equicat = equicat
kndcat = kndcat
matcat = matcat
stdcat = stdcat
tplcat = tplcat
prjcat = prjcat
EXCEPTIONS
call_invalid = 1
material_not_found = 2
no_where_used_rec_found = 3
no_where_used_rec_selected = 4
no_where_used_rec_valid = 5
OTHERS = 6.
附件列表
以上是关于CS_WHERE_USED_MAT BOM反查的主要内容,如果未能解决你的问题,请参考以下文章