2007 Apr 11 6:50 PM
hi
when cancelling a material document in MBST, i get this following error:
CHECK TABLE XMDVW : ENTRY 100890 1000 DOES NOT EXIST...no clue as to what this is and there is no table or structure with the name xmdvw, but there is a structure mdvw...any light on this would be highly appreciated...thanks
Sathish. R
2007 Apr 11 6:55 PM
Hi,
Check if you have any custom code written here. XMDVW is an internal table. It is defined like this.
DATA: BEGIN OF XMDVW OCCURS 0.
INCLUDE STRUCTURE MDVW.
DATA: END OF XMDVW.
Might be in some custom code, it is creating a entry in this internal table XMDVW and down the line you are getting this error.
Check for any custom code.
Regards,
RS
2007 Apr 11 6:55 PM
Hi,
Check if you have any custom code written here. XMDVW is an internal table. It is defined like this.
DATA: BEGIN OF XMDVW OCCURS 0.
INCLUDE STRUCTURE MDVW.
DATA: END OF XMDVW.
Might be in some custom code, it is creating a entry in this internal table XMDVW and down the line you are getting this error.
Check for any custom code.
Regards,
RS
2007 Apr 11 6:56 PM
Hi,
The error is happaned after calling FM ME_READ_COMP_GOODS_RECEIPT
in include program MM07MFB1_BELEG_ERGAENZEN.
...
CALL FUNCTION 'ME_READ_COMP_GOODS_RECEIPT'
EXPORTING
aktwe = mseg-erfmg
ebeln = mseg-ebeln
ebelp = mseg-ebelp
lfbnr = mseg-lfbnr
lfgja = mseg-lfbja
lfpos = mseg-lfpos
shkzg = l_shkzg "376724
sumwe = wemng
kzbew = t158-kzbew "514954
TABLES
t_bbefu = xmdvw
EXCEPTIONS
not_found_any = 01
not_found_one = 02
not_valid_any = 03
not_valid_one = 04.
IF NOT sy-subrc IS INITIAL.
MESSAGE e001 WITH 'MDVW' sy-subrc.
ENDIF.
LOOP AT xmdvw WHERE matnr = mseg-matnr
AND werks = mseg-werks.
dm07m-bdmng = xmdvw-bdmng.
dm07m-wamng = xmdvw-wamng.
dm07m-wawrt = xmdvw-wawrt.
EXIT.
ENDLOOP.
IF NOT sy-subrc IS INITIAL.
MESSAGE e001 WITH 'XMDVW' mseg-matnr mseg-werks. " < ---- Here is the error
ENDIF.
...
Please place break point at above FM and step through it to find out the root cause.
Regards,
Ferry Lianto
2007 Apr 11 7:23 PM
hi
it was not triggering from any custom code, checked in all exits....and ferry,
not able to read much into that fm..the condition gets satisfied and the error triggers..anyway thanks for the efforts
Sathish. R