abap - E:The key specification is incomplete. Generic specification is only completed -


when clicking on check (ctrl + f2) error:

e:the key specification incomplete. generic specification completed

unfortunately there not see indicator line wrong. thx sap :/

therefore here relevant code:

      select /bic/customer /bic/pcustomer table i_pcustomer         objvers = c_a.   select /bic/material /bic/sdcsnum /bic/pmaterial table i_pmaterial_s         objvers = c_a.    sort i_pmaterial_s /bic/material.   i_pmaterial = i_pmaterial_s.   delete i_pmaterial_s /bic/sdcsnum initial.  *write log in infopackage - check double entries material   sort i_pmaterial_s /bic/sdcsnum.    loop @ i_pmaterial_s i_pmaterial_s_line.     if sy-tabix = 1.       clear flg_dup.     else.       if i_pmaterial_dcs_line-/bic/sdcsnum = i_pmaterial_s_line-/bic/sdcsnum.         "clear p_t_errorlog.         l_cnt = l_cnt + 1.         p_t_errorlog_line-msgid = 'vrs'.         p_t_errorlog_line-msgty = 'i'.         p_t_errorlog_line-msgno = 0.         p_t_errorlog_line-msgv1 = 'duplic. rec:'.         p_t_errorlog_line-msgv2 = '/bic/pmaterial dcs'.         p_t_errorlog_line-msgv3 = i_pmaterial_dcs_line-/bic/sdcsnum.         p_t_errorlog_line-msgv4 = i_pmaterial_dcs_line-/bic/material.         insert p_t_errorlog_line table p_t_errorlog.         flg_dup = 'x'.       else.         if flg_dup initial.           insert i_pmaterial_dcs_line i_pmaterial_dcs.         else.           "clear p_t_errorlog.           l_cnt = l_cnt + 1.           p_t_errorlog_line-msgid = 'vrs'.           p_t_errorlog_line-msgty = 'i'.           p_t_errorlog_line-msgno = 0.           p_t_errorlog_line-msgv1 = 'duplic. rec:'.           p_t_errorlog_line-msgv2 = '/bic/pmaterial dcs'.           p_t_errorlog_line-msgv3 = i_pmaterial_dcs_line-/bic/sdcsnum.           p_t_errorlog_line-msgv4 = i_pmaterial_dcs_line-/bic/material.           insert p_t_errorlog_line table p_t_errorlog.           clear flg_dup.         endif.       endif.     endif.     i_pmaterial_dcs_line = i_pmaterial_s_line.   endloop. 

the code triggered error message was:

data: p_t_errorlog type sorted table of rsmonitor 

changing code

data: p_t_errorlog type standard table of rsmonitor 

fixed issue.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -