CS_WHERE_USED_MAT BOM反查

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CS_WHERE_USED_MAT BOM反查相关的知识,希望对你有一定的参考价值。

函数结构,详见附件
技术分享
调用代码:
  1. DATA: topmat TYPE mc29s.
  2. DATA: datub TYPE rc29l-datub.
  3. DATA: wultb TYPE TABLE OF stpov WITH HEADER LINE.
  4. DATA: matcat TYPE TABLE OF cscmat WITH HEADER LINE.
  5. DATA: tm_base TYPE TABLE OF ty_base WITH HEADER LINE.
  6. DATA: equicat TYPE TABLE OF cscequi WITH HEADER LINE.
  7. DATA: kndcat TYPE TABLE OF cscknd WITH HEADER LINE.
  8. DATA: stdcat TYPE TABLE OF cscstd WITH HEADER LINE.
  9. DATA: tplcat TYPE TABLE OF csctpl WITH HEADER LINE.
  10. DATA: prjcat TYPE TABLE OF cscprj WITH HEADER LINE.
  11. datub = ‘19000101‘.
  12. CALL FUNCTION ‘CS_WHERE_USED_MAT‘
  13. EXPORTING
  14. datub = datub
  15. datuv = sy-datum
  16. matnr = t_base-matnr
  17. * POSTP = ‘ ‘
  18. * RETCODE_ONLY = ‘ ‘
  19. stlan = t_base-stlan
  20. werks = t_base-werks
  21. * MCLMT = ‘ ‘
  22. * MNSTL = ‘ ‘
  23. * MXSTL = ‘ ‘
  24. * STLTP = ‘ ‘
  25. * NEWSI = ‘ ‘
  26. IMPORTING
  27. topmat = topmat
  28. TABLES
  29. wultb = wultb
  30. equicat = equicat
  31. kndcat = kndcat
  32. matcat = matcat
  33. stdcat = stdcat
  34. tplcat = tplcat
  35. prjcat = prjcat
  36. EXCEPTIONS
  37. call_invalid = 1
  38. material_not_found = 2
  39. no_where_used_rec_found = 3
  40. no_where_used_rec_selected = 4
  41. no_where_used_rec_valid = 5
  42. OTHERS = 6.






附件列表

     




    以上是关于CS_WHERE_USED_MAT BOM反查的主要内容,如果未能解决你的问题,请参考以下文章

    反查BOM, 找出它的上阶

    SAP中已知物料,如何察看包含该物料的BOM

    请教:SAP中的BOM是啥

    取消勾选MM基本视图材料是可配置的

    SAP翔子_ABAP_DEMO篇索引

    ip反查域名脚本