Skip to Content
0
Jun 22, 2011 at 10:56 AM

ALV report getting dump in Production server

107 Views

Hi All,

My ALV report runs perfectly in development server. But gets dump in Production server. I am taking data from tables S120 and S003 and so on. But not getting why this report getting dump in production server. If I remove the data taken from table S003, then the report runs well. Here is a piece of code of my program. Please help me.

SELECT sptag
         werks
         matnr
         vrkme
         vkmng
         umsgvp
         umsgvo
        umsgeo_01
    INTO CORRESPONDING FIELDS OF TABLE t_s120
    FROM s120 
    WHERE werks IN s_werks
    AND   matnr IN s_matnr
    AND   sptag IN s_sptag.

  IF t_s120[] IS NOT INITIAL.
    SELECT matnr
         umkzwi1
         INTO CORRESPONDING FIELDS OF TABLE t_s003
        FROM s003
        FOR ALL ENTRIES IN t_s120
        WHERE matnr = t_s120-matnr.
       ENDIF.
     DELETE ADJACENT DUPLICATES FROM t_s003.
LOOP AT t_s120 INTO w_s120.
    MOVE-CORRESPONDING w_s120 TO w_final.
    READ TABLE t_s003 INTO w_s003 WITH KEY matnr = w_s120-matnr.
    IF sy-subrc EQ 0.
    w_final-umkzwi1 = w_s003-umkzwi1.
    ENDIF.

endloop.

With regards,

Tripod.