‎2009 Jul 30 1:18 PM
Hi,
When i am trying to implement event 1 in Table Maintenance Generator, there are some junk values disaplyed in TOTAL table instead of actual values. Can some one help me to understand why the junk values are displayed instead of the actual ones and help me in getting rid of this problem?
Thanks,
Phani
‎2009 Jul 30 2:29 PM
‎2009 Jul 31 11:45 AM
‎2009 Aug 01 2:39 PM
Hi
I have Written a code you should take a look at it might help you
DATA wa_makt TYPE makt .
DATA: f_index LIKE sy-tabix. "Index to note the lines found
LOOP AT total.
IF <action> = 'N'.
READ TABLE extract WITH KEY <vim_xtotal_key>.
IF sy-subrc EQ 0.
f_index = sy-tabix.
ELSE.
CLEAR f_index.
ENDIF.
SELECT SINGLE * INTO wa_makt FROM makt WHERE matnr = total+3(18).
total+21(40) = wa_makt-maktx.
IF sy-subrc = 0.
MODIFY total.
CHECK f_index GT 0.
extract = total.
MODIFY extract INDEX f_index.
ENDIF.
ENDIF.
ENDLOOP.
Thanks