Vous êtes sur la page 1sur 25

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

Steps in the SAP R/3 Backend System

Step1

Run T-Code WE82 link IDoc type and message type.

Step2

Create Output type for delivery i.e. ZAEB. For this configuration go to T-Code NACE.
Step3

Click on .
Step4

Give output Type, Description, Access Sequence then press .

Step5

Click on from left navigation panel.


Step6

Click on and give necessary program name, subroutine and save entry.
Step7

Click on from left navigation panel.

Step8

Select medium, input partner function and save entry.


Step9

Now again back to T-Code NACE screen and click on

Step10

Assign output type to standard procedure and save it. For this select any standard procedure and click on
control from left navigation panel.
Step11

Enter step, counter, output type and save it.


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.

Run T-Code FILE


Select logical path and click on from left navigation panel.

Click on New Entries.


Save it.

Step14

Now create file port. For this Run T-Code WE21

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


And Save it.

Now add Message Type into outbound parameters:


Now enter below mention parameters and save it.

Now click on Message Control Tab.


Save it.

Step16

Now Create Distribution Model View. For this Run T-Code BD64
Click on then click on a popup window will appear.

Fill entry and click on .


Now select above created model view and click on . Another popup window will
appear.
Fill entries and click on

Where SENDER = <System ID>CLNT<Client Number>

And RECEIVER = <Above created Partner (Logical System)>

AND MESSAGE TYPE = <Above use Message Type>

Now save the entry.

Step17

Now its 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
be91300 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 select this record and click on button.

Open this IDoc into T-Code WE02


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 local desktop then press .

After this check your local directory.

Vous aimerez peut-être aussi