Hi Arun,
You have to copy the sample FM,FKK_FM_SAMPLE_0032 and then based conditions you can pass the details to any standard FM like, FKK_COMPLETE_CHARGE_DOCUMENT to post the offset entry.
Try to debug and see, may be its something to do with the sign of the offsetting entry.
Thanks,
Amlan