I would suggest you make use of Function Module CHANGEDOCU_KEY_ANY2CHAR and other FM’s of function group SCD8. This function module performs the reverse function.
Function Module: CHANGEDOCU_KEY_ANY2CHAR
Function Group: SCD8
Program Name: SAPLSCD8
You can refer this SAP link to see all Function modules available and their description under this Function Group: