For sending out IDocs via a file, you simply define a file port with WE21. The rest works just like an RFC fort.
For inbound traffic, you also have to define the file port with WE21 first. The IDocs are the read with ABAP RSEINB00 which in turn calls FUNCTION IDOC_INBOUND_FROM_FILE.
Dig Deeper on SAP ABAP
Related Q&A from Axel Angeli
An SAP user wants to know how to upload data into SAP R/3 when SAP Scripting is not enabled.continue reading
An SAP user is receiving an error message while integrating SAP iDoc PORDCR1 for a purchase order.continue reading
An SAP user is having difficulty with PERNR iDoc while transporting data from SAP to an external system.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.