Hi Naren,
Thanks for your reply. I have already check this link and it gives me idea. But here I need two type of entries i.e. for few customer it should hit COGS and for few customer it should hit Stock in transit.
If I go this the mention threat it will apply to all the customer.