Hi Vitaliy,
Try looking at the MII projects, specifically the SAPModuleLibraries. If I understand your question correctly, the MM transactions should give you good examples of how to set it up. If that does not provide your solutions, please provide more information on your needs.
I went back to see if the SAP_12.0_ModuleLibraries project contents were still accessible and could not get to them. I also looked around to see if they had been updated for 12.X or 14.0, but also did not find them.
Anybody know where they went to? I have a personal copy, but it is from October, 2008, so I hope there is a later version available from somewhere. The links in SCN appear to be broken, probably as a result of the new SCN release a couple of years ago.
Regards, Mike
SAP Customer Experience Group - CEG