The below idoc types has inbound and outbound function module.
QALITY01
QALITY02
to find the same just goto SE37 and do a F4 with *QALITY01* , you will get a inbound and outbound function module for it. Same way do it for *QALITY02*.
For configuration steps check in SCN community, there are many documents which explains you on how to establish a conection between SAP and legacy system.
Regards,
Tp