I got my mistake:
/* Set Server Context Object via DeployedComponents Association for the SAS Library Object */
rc11=metadata_getnobj("omsobj:ServerContext?@Name='SASApp'",1,muri);
rc12=metadata_setassn(luri,"DeployedComponents","Append",muri);
/* Set Directory Object via UsingPackages Association for the SAS Library Object */
rc8=metadata_newobj("DatabaseSchema",uri,"&MetaLibName","Foundation",muri,"DataPackages");
rc9=metadata_setassn(luri,"UsingPackages","Replace",uri);
rc10=metadata_setattr(uri,"SchemaName","&DatabaseSchema.");
I forgot the Link from the DatabaseSchema to the Server Context.
... View more