I have written a PL-SQL block
DECLARE SchemaName VARCHAR2(50) :=\'REQ_SUNIL_5750\'; userpassword VARCHAR2(50) :=\'XYZ\'; stmt VARCHAR2(5000); BEG
You have to quote your string values properly:
stmt :='INSERT INTO ' || SchemaName || '.USER_CREDS VALUES ('''|| SchemaName ||''', '''|| userpassword ||''' )';