Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

fetching data from mseg select * and select field_list problem

when i executing the below select statement the sy-dbcnd = 502.

SELECT *  FROM mseg INTO CORRESPONDING FIELDS OF TABLE imseg
         FOR ALL ENTRIES IN itab
           WHERE bwart IN ('309', '311', '315', '413', '411', '412')
             AND xauto EQ 'X'
             AND matnr EQ itab-matnr
             AND mat_kdauf EQ itab-vbeln
             AND mat_kdpos EQ itab-posnr.

and when i change field list in place of * the sy-dbcnd = 369.

SELECT mat_kdauf mat_kdpos matnr kdauf kdpos menge  
          FROM mseg INTO CORRESPONDING FIELDS OF TABLE imseg
         FOR ALL ENTRIES IN itab
           WHERE bwart IN ('309', '311', '315', '413', '411', '412')
             AND xauto EQ 'X'
             AND matnr EQ itab-matnr
             AND mat_kdauf EQ itab-vbeln
             AND mat_kdpos EQ itab-posnr.

is anyone know what is the reason of fatched record difference.

Former Member
Not what you were looking for? View more on this topic or Ask a question