I used the approach as suggested by Manish
""with Standard BAPI_GOODS_MVT_CREATE and GM_code 4 it is possible to make the change without creating any custom code in that case you need to enter the storage type and storage bin value in STGE_TYPE_PC / STGE_BIN_PC and in NO_PST_CHGNT enter the value as X""
Thanks for all your help.