Hi,
No, the data declaration should be a bit up. You have to insert the coding into the global declaration area:
*$*$ begin of global - insert your declaration only below this line *-*
... "insert your code here
*$*$ end of global - insert your declaration only before this line *-*
The coding for Key Figure NETPR_VKM should be done in the respective field routine.
Best regards,
Sander