Skip to Content
0
Former Member
Mar 24, 2010 at 07:30 AM

Unable to interpret "M" as a number.

25 Views

data: l_period(6) type n.

data: g_cols type i , " number of columns

g_rows type i, " Number of Lines

g_dc(5) type c, " Date format

g_count type n, "Period Value Count

g_sta_col(6) type i. "Start Column

move g_sta_col to l_period.

move g_sta_col to wa_colno.

  • move wa_colno to wa_flname.

concatenate g_dc wa_colno into wa_flname.

  • Set up fieldvalue

read table it_total

with key matnr = gk_final_ok-plantno customerno = gk_final_ok-customerno+gk_final_ok-custcolor spmon = l_period.

if sy-subrc eq 0.

fieldvalue = it_total-kwmeng.

else.

fieldvalue = ''.

endif.

当我调试时此行报错,哪位大哥知道是什么原因呀?

read table it_total

with key matnr = gk_final_ok-plantno customerno = gk_final_ok-customerno+gk_final_ok-custcolor spmon = l_period.