Creating An IDoc File On SAP Application
Creating An IDoc File On SAP Application
Introduction:This document illustrates on how to create IDoc flat file on SAP application server.
Scenario: On change or Create of SAP delivery document, an automatic IDoc should trigger and an IDoc file to be
created on the SAP application server.
Perquisite: We can use Standard Delivery IDoc and Message Type i.e. (Basic Type: DELVRY03, Message Type:
DESADV) for our scenario
Step1
Step2
Create Output type for delivery i.e. ZAEB. For this configuration go to T-Code NACE.
Step3
Click on .
Step4
Step5
Step10: Assign output type to standard procedure and save it. For this select any standard procedure and click on
control from left navigation panel.Assign output type to standard procedure and save it. For this select any standard
procedure and click on control from left navigation panel.
Step12
Setup condition record for above created output type to trigger it automatically on the press of save of delivery. For this
Run T-Code NACR, Press enter
Step13
Now create logical path and assign it physical path where our IDoc file store.
Select logical path and click on from left navigation panel.
Click on New Entries.
Save it.
Select FILE port from left navigation panel and click on
Give port name, Description, Directory & Function module name for file naming convention and save it.
Step15
Now create partner profile. For this firstly create Partner (LOGICAL SYSTEM) via T-Code BD54
Save it.
Setup partner profile. Run T-Code WE20
Now select above created model view and click on . Another popup window will appear.
Fill entries and click on
Now it’s time for testing the IDoc. If all the things work fine then an IDoc file created into SAP Application directory which
mention above i.e. < D:\usr\sap\EH5\SYS\profile>.For this first open any one delivery whose sales organization will
be ‘3000’ and sold-to-party will be‘91300’ because we have only maintains the condition record for these entry. T-Code
VL02N Press enter.
Now check our output type will be trigger successfully or not. For this open
delivery click on output type.
Now Check IDoc files on application directory, for this run T-Code AL11
Double Click on it. See IDoc File which contains IDoc Number in file naming.
To Download this file from SAP application sever to Local Desktop run T-Code CG3Y,Popup window will appears
Give above created file name with path into Source File input filed and give path where you download your file into your
http://saptechnical.com/Tutorials/ALE/File/Page4.htm