首页 > 代码库 > CS_WHERE_USED_MAT BOM反查
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.
来自为知笔记(Wiz)
附件列表
CS_WHERE_USED_MAT BOM反查
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。