Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

check table XMDVW

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

ferry_lianto
Active Contributor
0 Kudos

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

0 Kudos

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