Header image  
COMPLETE SAP NETWEAVER TUTORIALSSITE  
  
 
 
 
 

 
 

Welcome to SAPAG.CO.IN

 

 

 

SAP AG.co in Will Give information of SAP related meterials Like SAP Platform and Operation,,SAP Security , SAP Enterprise Portal (EP), ,SAP Knowledge Management (KW), SAP Business Intelligence (BI), Exchange Infrastructure (XI),Application Server, Mobile (MI), Master Data Management MDM, Composit Appications Frame work,Web Dynpros,OOPABAP,Blog,Intergration Bulder, Integration Repository (IB),Integration Directory (ID).System Landscape Directory (SLD), And Adopter Configuration like File to File,File to JDBC, File to IDoc, File Content Convertion, RFC, HTTP,SOAP,XI Interview Questions,Xi Sertification Questions, and many more about SAP Netweaver Platform XI Training And Tutorial and XI interview Questions ..

 

SAP Exchange Infrastructure Tutorials

SAP XI Exercises File to IDoc

Exercise 1: File sender to IDoc

•  Processing mode: delete (the file will be deleted after being processed).

•  The sender file adapter is now configured. Save your communication channel.

•  The next step is to create a “Sender Agreement” object. This defines a binding between the communication channel you just created, and the outbound interface.

•  In the left frame, right-click on “Sender Agreement” à New.

•  Select your service (no party).

•  Select your interface (Vendor_out). Make sure that the correct namespace is utilized.

•  In the screen “Edit Sender Agreement”, use F4 help for the Sender Communication Channel field. Select your communication channel (File_sender). Save and close.

•  From the left frame, create a new “Receiver Determination” object. This is the main part of the routing process, where you assign a receiver for your message.

•  Select your sender service and interface

•  In the “Configured Receivers” area, choose the existing service for the target R/3 system (M13_800). Save your receiver determination.

•  In the following steps, you will create an “Interface Determination” object. Now that we have defined a receiver for the message, we need to assign an inbound interface, and an interface mapping (if necessary).

•  In the area “Configuration Overview for Receiver Determination” at the bottom of your screen, hit refresh.

•  In the column “Receiver (Partner/Service)” right-click and select “New Specific”, in order to create a new interface determination object.

•  You are now in the screen “Edit Interface Determination”. In the section “Configured inbound interfaces” select the following using F4 help. When you are done, please save the Interface Determination object.

•  Inbound interface: CREMAS.CREMAS03

•  Interface mapping: Vendor_out_CREMAS03

 

 

•  Finally you will create a “Receiver Agreement” object. This will allow you to assign a receiver communication channel to the receiver service/interface you have chosen.

•  Go back to the main screen for your receiver determination. In the area “Configuration Overview for Receiver Determination” at the bottom of the screen, hit “Refresh”.

•  In the column “Receiver Determination (Communication Channel)” right click and select “New Specific”.

•  In the screen “Edit Receiver Agreement”, for the field “Receiver Communication Channel” use the input help (F4), and select the communication channel “XIWS_IDoc_receiver”. This is a predefined channel which is used for all inbound IDocs into the R/3 system. Save the Receiver Agreement.

•  Go back to the main receiver determination screen and refresh. Now your configuration is complete. Before activating the objects we need to set up the input file in the next step (indeed, as soon as your sender communication channel is activated, the polling sequence of the file adapter will start immediately).

Step 4 – Testing

•  Find the file Vendor[XX].xml which you had previously saved, and copy it to your shared folder under \\<hostname>\workshop\group[XX]. Please note, the name of the file should match exactly what you have specified in your sender communication channel.

•  Now you can go back to the Integration Directory, open your change list and activate your objects.

•  It will take a few seconds for the cache refresh to take place, and for your changes to be propagated to the Adapter Engine. Please ignore any message box that you may receive subsequently. This has to do with the propagation of configuration changes to some decentral adapter engines which are not in use.

•  Monitor your directory. After a few seconds your file VendorXX.xml should disappear. This means that the file adapter has successfully processed it and the file was deleted.

•  In SAPGui, choose monitoring à Integration Engine monitoring (transaction SXMB_MONI).

•  Choose “monitor for processed XML messages”. You can filter using different criteria, for example by date and also by sender service (find your own business service name in the drop-down list). In the monitor, your message should appear with a checkered flag (message processed successfully). From there you can also navigate to the IDoc adapter.

•  In the backend R/3 system, go to transaction WE05 and search for IDocs according to the logical system name used by your sender. Verify that your IDoc was posted. If everything goes well, the IDoc should have status 53 (application document posted). If you expand the status record you will see the vendor number that was created. Write down the vendor number for future reference.

•  Check in transaction MK03 that your vendor was created.

Appendix: naming conventions and terminology

Exercise 1

 

Area

Obj. type

Object name

Description

SLD

TS

XIWS_legacy_TS_XX[00..30]

Technical system for legacy app

 

BS

XIWS_legacy_BS_XX[00.30]

Business system for legacy app

 

Log.Sys.

XIWS_XX

Logical system name for BS

 

SWC

XI RIG US workshop [00..30]

Individual SWC for exercises

Int. Rep.

NS

urn:xiworkshop:groupXX[00..30]:legacy

Namespace for legacy objects

 

Data type

Vendor_DT

Vendor data type

 

 

Address_DT

Nested DT

 

Msg.type

Vendor

Vendor message type

 

Msg.int.

Vendor_out

Message interface

 

Msg.map

Vendor_CREMAS03

Message mapping

 

Int.map

Vendor_out_CREMAS03

Interface mapping

Int. Dir

scenario

xiworkshop_groupXX[00..30]

Common for all exercises

 

service

XIWS_legacy_BS_XX[00..30]

Derived from BS (no party)

 

Send c.c.

File_sender

Sender comm. channel

 

Rec. c.c.

XIWS_IDoc_receiver

Receiver c.c. used for workshop

R/3

IDoc

CREMAS.CREMAS03

Vendor master data

 

Log.Sys.

WSXX[00..30]

Same as above

File sys

folder

\\hostname\workshop\groupXX[00..30 ]

D:\workshop\groupXX[00..30]

Transformation rules for Vendor à CREMAS03 mapping (constants are highlighted).

 

Source field in Vendor

Target field in CREMAS03

 

 

1

CREMAS03 à IDOC à BEGIN

1

E1LFA1M à SEGMENT

009

E1LFA1M à MSGFN

VendorNumber

E1LFA1M à LIFNR

COMPANY

E1LFA1M à ANRED

LIEF

E1LFA1M à KTOKK

Address à Country

E1LFA1M à LAND1

LastName

E1LFA1M à NAME1

Address à City

E1LFA1M à ORT01

Address à Zip

E1LFA1M à PSTLZ

SearchTerm

E1LFA1M à SORTL

Address à Street

E1LFA1M à STRAS

 

 

1

E1LFA1M à E1LFB1M à SEGMENT

009

E1LFA1M à E1LFB1M à MSGFN

VendorNumber

E1LFA1M à E1LFB1M à LIFNR

3000

E1LFA1M à E1LFB1M à BUKRS

31000

E1LFA1M à E1LFB1M à AKONT

A1

E1LFA1M à E1LFB1M à FDGRV

 

 

1

E1LFA1M à E1LFM1M à SEGMENT

009

E1LFA1M à E1LFM1M à MSGFN

VendorNumber

E1LFA1M à E1LFM1M à LIFNR

3000

E1LFA1M à E1LFM1M à EKORG

Currency

E1LFA1M à E1LFM1M à WAERS

 

 

 

Previous

 

 

 

 Back to SAP XI Tutorials


 
Latest SAP Netweaveer Books