OBJECTS NOT NUMLIKE Runtime Error in ABAP

OBJECTS NOT NUMLIKE Runtime Error in ABAP


OBJECTS NOT NUMLIKE error generally occurs when you try to delete a line from internal table using delete statement like below. 

DELETE it_tab FROM wa_tab.

This is error. As per the syntax in SAP the delete statement of above form is applicable to the below scenario. 

DELETE it_tab FROM tabindex.

Here the tabindex must be an integer value to delete the lines. 

So when you put workarea in place of tabindex the compiler tries to convert workarea to an integer value which leads to dump. 

To avoid the dump we have to follow below syntax. 

DELETE TABLE it_tab from wa_tab. 

This will delete the entry from internal table it_tab based on fields in work area wa_tab. 

So, always remember to put DELETE TABLE when you want to delete entries from internal table using work area. 


Post a Comment

Previous Post Next Post