Fixed assumed variables in SDMAPI* (REF-89)