Hi Sasidhar,
you can use the /SCWM/CL_WM_PACKING class to create and repack stock. There is a get instance method to get the singleton object If you are not in the Packing standard transaction, you have to initialize your environment first!
Cheers
Tobi