Hi Arun
There is no such FM, which would create a transformation from scratch or which would do the mapping from code.
An alternative approach would be to use expert routine in the created transformations where you can code the mapping yourself.
br
Roland