Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

22

PI INTERFACE 7.0 - FI

If you already have done the SD PI Interface configuration, please just follow steps: 2. Import IDocs (FIDCC02 ) 3. Import Interface (from TPZ file) 10. Create Receiver Determination 11. Create Interface Determination

Step by step solution:


1. Import Software Component Versions from SLD 2. Import IDoc ( FIDCC02 ) 3. Import Repository configuration (from Tpz file) 4. Create Data Types (already done in Step 3) 5. Create Message Type (already done in Step 3) 6. Create Message Interface (already done in Step 3) 7. Import Java Mapping (already done in Step 3) 8. Create Interface Mapping (already done in Step 3) 9. Assign Business System 10. Create Communication Channel 11. Create Receiver Determination 12. Create Interface Determination 13. Create Receiver Agreement 1. Import Software Component Versions Start XI and type/access SXMB_IFR to launch your integration builder, or type "http://<server>:<port>/rep in your browser's address bar, then hit enter. This will launch Integration Builder.

1.1. Click on Integration Repository and import all your definition from SLD (system landscape directory) from the TOOLS Transfer from System Landscape Directory menu option.

_______________________________________________________________________________ 1

1.2. When you do this, the system will prompt you with all the available SWCVs from SLD and have the chosen one imported into the Integration Repository

So, we have our SWC and corresponding version available for us to begin with. Double-click on SWCV then bring it to the edit mode. Enter the required info after switching to the "IMPORT RFC/IDOC............" radio button displayed in the work area. This is essential, as this will then be used for importing IDocs from the source system. Make sure the IDoc has already the extension definition (OSS Note 1321680). 1.3. Click on the "+ " icon at the bottom part of work area appearing just below the server info. This will give you the option to enter the NAME SPACE. Enter "http://www.sat.gob.mx/cfd/2".

_______________________________________________________________________________ 2

1.4. Save the work, and then activate it. 2. Import IDoc (FIDCC2.FIDCCP02.ZDM_FI1*):
*In this guide, the IDoc extensions name is ZDM_FI1. You shall replace this name with the one you defined in your system. 2.1. Right-click on Imported Objects and Import of SAP Objects.

2.2. Enter the Application Server and the System Number from your R/3 System.

_______________________________________________________________________________ 3

2.3. Select the object FIDCC2.FIDCCP02.ZDM_FI1

2.4. Click on Finish to Import:

3. Import Interface (from TPZ file): In the Integration Repository , click on Tools >> Import Design Objects. _______________________________________________________________________________ 4

Select import Source Client for looking your file tpz in your PC.

Save and activate all objects. File: XI3_0_FACTURA_ELECTRONICA_0.1_of_sap.com.mx.tpz 4. Create Data Types (already done in step 3): Create the Data Type and build the structure into which the data from R/3 IDoc shall be received. After expanding the NAME SPACE, expand the INTERFACE OBJECTS. Then right click on DATA TYPES to start creating.

For this purpose we define followings Data types

_______________________________________________________________________________ 5

4.1. Data type: Comprobante

4.2. Data type: C_Emisor

4.3. Data type: t_UbicacionFiscal

_______________________________________________________________________________ 6

4.4. Data type: t_Ubicacion

4.5. Data type: C_Receptor

4.6. Data type: C_Conceptos

_______________________________________________________________________________ 7

4.7. Data type: t_importe

4.8. Data type: t_InformacionAduanera

4.9. Data type: I_CuentaPredial _______________________________________________________________________________ 8

4.10.

Data type: C_Impuestos

4.11.

Data type: C_Addenda

You can see in the Law: Anexo_20 the complete format about target structure (XML Structure).

5. Create Message Type (already done in step 3): _______________________________________________________________________________ 9

5.1. Message Type: Comprobante_MT

6. Create Message Interface (already done in step 3) :

6.1 To do this, right-click on the MESSAGE INTERFACE title and create the new object. Here we will make sure that the attributes are set to ASYNCHRONOUS (will see this later) and INBOUND (into XI from R/3).

6.2 Drag and drop the INVOIC.INVOIC02 from Imported Objects IDOC on to the hand icon on the right-hand side next to name space field. Or drop down the list then select the message type from the resulting window. Or simply type the details.

Message Interfaces: MT Comprobante

_______________________________________________________________________________ 10

At this stage we are done with definitions and now its time to map the messages and interface created thus far. 7. Import Java Mapping (already done in Step 3): At this step you need to have a Java Class who is going to do the Mapping between IDOC INVOIC02 and the target message MT_Comprobante created as stated above.

7.1 To begin with, click on the triangle pointing rightwards on MAPPING OBJECTS. Right-click on Imported Archives and create a new.

7.2 Put a Name to import

_______________________________________________________________________________ 11

7.3 Use Import Button to import the Zip file that contains the Java Class

Java Mapping is needed to map the SOURCE to the TARGET. In our case the source is the R/3 IDoc coming into XI from SAP R/3 and the target is a XML FILE stored at root directory that will then be accessed by any script to load in to the destination system. In Java Class we are creating a 1-1 kind of relationship between the source and target.

8. Create Interface Mapping Now, the last step in the Integration Repository is to create the INTERFACE MAPPING. In this step map the source (FIDCC02.FIDCCP02.ZMD_FI1) to the target interface (MI_Comprobante). Once the objects are identified and filled into respective fields, click on the Read Interfaces push button on the right-hand side in the bottom portion of the work area. This replicates the source and targets into the Request Tab Window. Identify the message mapping program created in the above step and assign it here. Interface Mapping: OM_CFD_FI

_______________________________________________________________________________ 12

We are done with SOURCE, TARGET, and LINK for data handling. Save the work. This is time to check the object consistency. Make sure to hit F7 at this stage just before activating. At the end activate the change list. 9. Assign Business System:

Create a new Scenario.

_______________________________________________________________________________ 13

Click on Integration Directory Service without Party Business System. Business System, right-click on Business System and Assign

Select the business system to define as the business system service.

_______________________________________________________________________________ 14

10 Create Communication Channel To create communication channel, right-click on Communication Channel and New.

And create de object where CC represent (Communication Channel)

_______________________________________________________________________________ 15

Choose Adapter Type: File; Receiver and the Target directory on the server for XMLs

_______________________________________________________________________________ 16

11 Create Receiver Determination To create, right-click on Receiver Determination and New.

Create this Object using Interface FIDCC02.FIDCCP02.ZMD_FI1 _______________________________________________________________________________ 17

_______________________________________________________________________________ 18

And select the Communication Component.

12 Create Interface Determination To create, right-click on Interface Determination and New.

Now create the Interface Determination.

_______________________________________________________________________________ 19

Select the Message interface and the Interface Mapping

_______________________________________________________________________________ 20

13 Create Receiver Agreement To create, right-click on Receiver Agreement and New.

Create the Receiver Agreement using Message Interface MI_Comprobante.

_______________________________________________________________________________ 21

Select the communication channel that has been created before.

_______________________________________________________________________________ 22

You might also like