Search code examples
abapopensqlsap-data-dictionary

'N' type variable is not saving into 'NUMC' type table field


My variable is of type N ie.,

COMP_ID(8) TYPE n

I have created a Transparent Table. In my table, COMPLAINT_ID field is of type 'NUMC'.

while I'm saving COMP_ID into my table's COMPLAINT_ID, it is not fetching the value.


Solution

  • If you use numc as domain of a data element, it will take 5 characters. You should give predefined type and define the length of the data element that you use in the table.I believe this is the problem. enter image description here