Scenario: Simpl
Scenario: Simpl
e
e
File to IDOC
File to IDOC
The requirement is for an Inbound Interface (Legacy to ECC) using IDOC.
The requirement is for an Inbound Interface (Legacy to ECC) using IDOC.
Find below the following steps:Find below the following steps: System: RPI
System: RPI – – 100; Transaction100; Transaction – –SXMB_IFRSXMB_IFR 1.
1. Login to Enterprise Services BuilderLogin to Enterprise Services Builder
Note: It might take some time for the application to get downloaded. Note: It might take some time for the application to get downloaded.
Once the application gets downloaded, we need to enter our credentials and finally the Once the application gets downloaded, we need to enter our credentials and finally the ESR (Enterprise Services Builder) will be open.
ESR (Enterprise Services Builder) will be open.
1.
1. Need to import the SWCV from the SLD I to ESR before creating the designNeed to import the SWCV from the SLD I to ESR before creating the design objects.
objects. C
Click on ‘Object’lick on ‘Object’ & choose ‘New’ to create a & choose ‘New’ to create a SWCV for your design objects.SWCV for your design objects.
Click
Click on on the the icon icon to to choose choose from from the the SWCV SWCV that that are are present present in in thethe SLD. Select the appropriate SWCV that you have created .
SLD. Select the appropriate SWCV that you have created .
This step is done once only , for each new interface/exercise we only create the This step is done once only , for each new interface/exercise we only create the namespace under that SWCV.
2. Look for the appropriate Software Component – ‘-DELOITTE_USI_PI_LEARNING of
Deloitte’.
3. Expand the Software Component and find the Software Component Version –
5. Lets enter the following Namespace - https://rcholleti/Ex4/File_to_IDoc
7. Once we activate the Namespace (for any other object), the same would be visible on the Left Side.
9. Enter the Data Type Name – ‘Cust_DT’ with appropriate Description.
10. Click on Create.
11. Assign the corresponding fields to the Cust_DT Data Type.
12. Save and Activate. So the Source Data Type ‘Cust_DT’ is created. 13. Now we need to create the Message Types – ‘MT_Cust’
15.Once we drag and drop the source Data Type on the ‘Hand’ sign, we find a
message as shown below – ‘Loading structure for Message Type ‘Cust_DT’.
16. After few seconds we find all the fields for the Source Data Type as shown below.
18. Now we need to create the Service Interfaces – ‘SI_Cust’ under the same Namespace.
19. Once we click on Create, we find the Source Operation with identical name as compared to the
interface:-20. In the Operation, we assign the Message Typ e; rather we drag and drop it to the Name column as shown below.
21. Save and Activate. So the Source Service Interface is created.
22. So now we have created Namespace, Data Types, Message Types, and Service Interfaces.
23. For the Target Structure, in the Imported Objects, we need to Import the IDOC. In
our scenario, it is ‘ DEBMAS.DEBMAS03‘ as shown below.
24. Now we need to create the Message Mapping.
25.Alike other object creation, select the Namespace, right click and say ‘New’. Look
26. Click on Create and then find the below shown screen.
So here we need to assign the Source Message Type and Target Message Type and finally map all the fields.
Look for your own Message Types for source and target within your own Namespace.
Once we double click on the source message type, we find all the fields of the source structure as shown below. Similarly we do the same steps for the Target Structure.
27.Now one of the most important steps, Mapping.
28. Follow similar steps for the other fields.
29. Save and Activate it. So Now Message Mapping is done.
30. Now we create Operation Mapping under the same Namespace.
33. We find that the Source and Target Messages are Blank. To fill them, click on Read Operations.
34. Save and Activate it. The Operation Mapping is done.
Integration Directory (ID)
System: RPI – 100; Transaction –SXMB_IFRNote: It might take some time for the application to get downloaded.
Once the application gets downloaded, we need to enter our credentials and finally the ID (Integration Directory) will be open.
Follow the below mentioned steps:
1. Creation of Configuration Scenario.
Select ‘Configuration Scenario’, right click and say ‘New’ as shown below.
Click on create then Save and Activate.
2. Create the Receiver and Sender Communication Channels under the respective Communication Components.
Communication Components are as follows:
-a. Business Component b. Business System
In Business System, we will find ECC and in Business Component we will find File which is coming from any other system
3. Create the Sender Communication Channel under the Business Component – ‘BC_File’ as shown below:
-4. Click on create and specify the following details:-a. Adapter Type: File
b. Transport Protocol: NFS c. Message Protocol: File
d. Adapter Engine: Central Adapter Engine e. Select the ‘Sender’ Radio Button
a. Quality Service b. Poll Interval
c. Processing Mode d. File Type
5. Similarly create the Receiver Communication Channel under the Business System
– “RE6CLNT950”with the details as shown below.
a. Adapter Type: IDOC
e. Select the ‘Receiver’ Radio Button
f. Specify the RFC Destination, Interface Version, Port and SAP Release.
6. Assign the Business System and Business Component to the above create scenario.
Expand the Business ComponentSelect BC_Fileright click and Assign Configuration Scenarios – ‘CS_sudiroy_File_To_IDoc’ as shown below:
8. Sender Agreement
Provide the following details as shown
below:-We pass the following field
values:- Communication Component . Service Interface
Sender Communication Channel.
9. Receiver Determination
We pass the following value:
Sender Communication Component Sender Service Interface
10.
Interface Determination.
Here we pass:
Sender Communication Component. Sender Service Interface
Receiver Communication Component. Operation Mapping.
11.
Receiver Agreement.
Here we pass:
Sender Communication Component. Receiver Communication Component. Receiver Communication channel.
12.Once all the components are created and activated, assign each one of them to the Configuration Scenario – “
CS_sudiroy_File_To_IDOC
”.Finally Save and Activate the Configuration Scenario.
Testing :- For Testing we need to put the file in a folder from which the file adapter will pick up the file.
1. Log on to PI7 system and go to transaction sxda_tools.
By using the transaction SXDA _TOOLS on the system one can transfer files from his client machine to the server.
Click Copy button.
Select file in presentation server and target file in application server. Note that the file you selected would be copied to the server with this new name given at server.
3. Now, go to AL11, to look all the /usr/sap folders on the server. Click on the folder you uploaded the file to.
Sample File