Hello Manojkumar,
You can use the function module IDOC_INPUT_INFREC for processing the inbound idocs.
For creating Outbound Idocs:
MASTERIDOC_CREATE_INFREC
MASTERIDOC_CREATE_REQ_INFREC Generation of master IDoc INFREC from req.
MASTERIDOC_CREATE_SMD_INFREC
Regards,
Thanga