Hi Khusboo
As suggested by sathish you need to write a logic so that COO can be taken from respective document and find a bin as you are expecting, There are standard badi available and you can enhance them as you are expecting.
while determination of bin system will check COO and find the allocated bin for same. you can create z table for mapping so that user can update now and then if req.
Regards
Suraj