有時侯 SAP 在使用 'BAPI_GOODSMVT_CREATE' 產生的 batch 在 Table MCH1 中,其 CUOBJ_BM 值為空值
[Why the field MCH1-CUOBJ_BM is empty]
當提出上敘的解法後,又有問題來了,為何只有這種物料會發生,其他均不會發生,後來才想到這類物料是不會預設 Class Type 023 Batch Level 的 Class
REPORT Z_REPORT.
RANGES: so_matnr FOR mch1-matnr,
so_charg FOR mch1-charg.
START-OF-SELECTION.
CLEAR: so_matnr, so_matnr[],
so_charg, so_charg[].
so_matnr-sign = 'I'.
so_matnr-option = 'EQ'.
so_matnr-low = ''.
APPEND so_matnr. CLEAR so_matnr.
so_charg-sign = 'I'.
so_charg-option = 'EQ'.
so_charg-low = ''.
APPEND so_charg. CLEAR so_charg.
SUBMIT RVBCUOBJ
WITH so_matnr IN so_matnr
WITH so_charg IN so_charg
WITH test_run = '' "X:Test Run
WITH show_all = '' "X:會停在 ALV
WITH hide_cuo = '' "X:ALV 不顯示 cuobj_bm 的值
AND RETURN.
reference : https://answers.sap.com/questions/6612471/-inconsistency-in-classification-data--transaction.html
沒有留言:
張貼留言