cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to interpret "M" as a number.

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

gk_final_ok-customerno+gk_final_ok-custcolor 问题应该出在这里

不知道你的 gk_final_ok-custcolor 是个什么东西,为什么要把颜色字段当作一个偏移量来使用?

Former Member
0 Kudos

你说的对,+ 的地方错了,

不知道你的 gk_final_ok-custcolor 是个什么东西,为什么要把颜色字段当作一个偏移量来使用?

我这里是客款+客色加错了,两个字段不能直接连接.中间有个#分隔,

thanks!

Answers (0)