首页 > 代码库 > CS_WHERE_USED_MAT BOM反查

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.




来自为知笔记(Wiz)


附件列表

     

    CS_WHERE_USED_MAT BOM反查