overview on dmee tree with pmw config steps

33
Created on 8 th May 2008 Page 1 of 33 Overview on creation of DMEE tree in XML format with PMW configuration steps: The Screen shots are from ECC 6.0 (Enhancement Pack 2) T.Code DMEE / DMEE1 Click Create Click XML file

Upload: uday1969

Post on 03-Oct-2015

213 views

Category:

Documents


26 download

TRANSCRIPT

  • Created on 8th May 2008 Page 1 of 33

    Overview on creation of DMEE tree in XML format with PMW configuration steps: The Screen shots are from ECC 6.0 (Enhancement Pack 2)

    T.Code DMEE / DMEE1

    Click Create

    Click XML file

  • Created on 8th May 2008 Page 2 of 33

    Give the Documentation name

    and click and enter the text and Save.

  • Created on 8th May 2008 Page 3 of 33

    Go back to the DMEE Tree screen.

    Format Attributes Depending on the type of file format, you can specify other details: for flat files, you can enter delimiter information; for XML files, you can specify further processing (via exit module) for a file after its creation, by entering an XSLT program. For format trees of the tree type PAYM, you can additionally specify that an accompanying sheet is to be printed when the file is generated.

  • Created on 8th May 2008 Page 4 of 33

    Levels Here you specify the number of levels in the format. In addition, you can define a repetition limit for each level. This value specifies how often a certain level may be output. If this number is exceeded, the corresponding level cannot be output anymore. If the limit is reached for the uppermost level in the format tree and additional data is to be processed, a second file is generated. If the limit is reached for lower levels, the preceding level is repeated so that data can continue to be output for this level.

    Sort/Key Fields

    If a sort field is additionally marked as a key field, then a change to the value in this field causes the corresponding format level to end.

    It is essential that the key fields are defined correctly to ensure that during file generation, the sequence of the different levels are output as they are defined in the format.

    For example if payment run is executed for multiple company codes, then data is written to file in sequence of Company codes at every change of a company code. In other words, the payment data of the company codes is not mixed in the file.

    You can set the indicator No Sorting also for a key field of level 001 if all items have the same value in this field so that no sorting is necessary eg. If all items are for one company code.

    In case of Level , Help showed the following example:

  • Created on 8th May 2008 Page 5 of 33

    The following flat file has 3 levels (cf. format tree SAP_EXAMPLE for tree type PAYM) HD Company 1 BP Partner 1 123456 PY 2000 EUR PY 2000 EUR BP Partner 2 88888 PY 4000 EUR PY 5000 EUR PY 2000 EUR SU 15000 EUR

    For one header record, there are one or more business partner records. In turn, for one business partner record, there are one or more payment records. For each header record, there is exactly one total record at the end.

    The header record ('HD') and the total record ('SU') have level 1 , the business partner record ('BP') has level 2 and the payment document record ('PY') has level 3.

    There is standard Tree SAP_EXAMPLE which was created based on Flat File format. This demo would show identical (but not exactly the same) structure of Tree but with Xml format.

    The scenario in XML format would show a Element Group which will have two Elements viz. one for payment details (Header) and other for total amount (Total). The Header will have sub node for Element (Business Partner) to group payment line items for a single payee The Business Partner would have sub node for Element (Payment record) to group all the actual Payment records. The Total would have the total amount of all the payment line items of the file.

    In case of XML format file, ensure that the Name of the Node should NOT have spaces, otherwise the DMEE tree would show Errors and cannot be activated. If the names of the Nodes showed spaces (in case of XML format tree) and at the end when the Tree was checked by clicking the , it would show errors. The names need to be corrected and then the Tree can be activated.

    If the DMEE Tree is of format Flat File, then it would have Segment Group / Segment and can contain Elements.

    Right Click on and create one Element (Name it as XML_Root) as Constant and right click on it and create two Elements as sub nodes with Constant for Mapping procedure. These nodes are specified at Level 1.

  • Created on 8th May 2008 Page 6 of 33

    In the Source tab, give the Constant

    when you open an element by double clicking it would have blue arrow meaning that the data viewed is for this node.

    Right Click on the node Header Record and create Element as Sub node

    In case of Record ID it is constant.

    The Bank / Financial Institution gives the format showing the data, Type and Length they require and based on this, the constants can be as per the given lengh and incase of standard SAP fields, take the information (Type, Length) from the respective structures.

    In case of Sender Name If the structure and field names are known, then these can be directly entered in the Source tab after selecting it as Structure field in the Mapping procedure and entering the Length and name.

  • Created on 8th May 2008 Page 7 of 33

    Similarly other Nodes like AccountNumber is mapped to Structure field of FPAYHX-UBKNT.

    Another way of creating a node for Structure field is from Source (shown in the bottom right corner) - Select the required field from the required structure, then drag and drop in the node where it needs to be placed. In this case, the system would automatically create the Element with all the details and only name needs to be changed (it is noticed that all the fields in the Structure are not shown in this screen)

  • Created on 8th May 2008 Page 8 of 33

    Drag and drop the field UBNKL_EXT from the structure FAPAYHX into the node Header Record and it would show as follows

    Change the name as Bank ID

  • Created on 8th May 2008 Page 9 of 33

    Another way of selecting the structure & field from source is create an Element, set it as Structure field and double click on the and system would automatically take the Structure & Filed name

  • Created on 8th May 2008 Page 10 of 33

    In this Element of CreationDate, the Atrributes tab can be set to have the required format against

    by clicking on

    Right Click on node CreationDate and create Element at same level. Business Partner is created as Constant at Level 2.

  • Created on 8th May 2008 Page 11 of 33

    After creating the necessary Elements at Level 2 as Sub nodes, create an Element at sub node of Business Partner for the Payment Records at Level 3.

    This Element can be set as Reference ID for COUNT to show the number of Payment Records for all the Business Partners.

    Create subsequest elements as Sub node of PaymentRecord to take the data at Level 3.

    In case of the Element for Payment amount , ensure that Type is taken as Currency and give the required Structure & Field in the Source tab

  • Created on 8th May 2008 Page 12 of 33

    This Element is also set as Reference ID for AMOUNT as it needs to have the Total of all Payments (to be shown at Level 1) in the sub node of Total.

    And for attributes the following screen is shown in case the type is Currency for the Struture & Field.

  • Created on 8th May 2008 Page 13 of 33

    Element Euro Indicator is set as Own mapping (atoms) meaning that Atoms under this node can be created to have some conditions.

    Right Click on the Element Euro Indicator and create an Atom as Constant with value as Y in the Source Tab.

    Similarly create another Atom for the Element Euro Indicator as Constant with value as N in the Source Tab.

  • Created on 8th May 2008 Page 14 of 33

    In the conditions tab of each of the Atoms, specify the arguments as follows

    If the 1st Argument FAPAYH WAERS (Source is from Structure & field select 2 for this) is equal to (select Operator = ), then a constat as EUR (constant values should be in single quotes), then show the Constant (select 1 for this) which output result is Y (entered in the Source tab of this Atom)

  • Created on 8th May 2008 Page 15 of 33

    In case of Atom for EURO No, then Conditions tab should be

    Note to Payee In order to show Vendor Reference number (entered in the Reference field at the time of posting Vendor Invoice) and Document Date, then an Element with Own mapping along with Atom handling

  • Created on 8th May 2008 Page 16 of 33

    to set as 01 this would concetenate the Refernce field and Document Date (Structure and fields noted in T.code OBPM2 as Type 1) of multiple document numbers (the number as set in T.Code OBPM1).

    Right click on the NotetoPayee and create two Atoms.

    In the Source Tab, the Structure & Field would be DMEE_PAYD-TEXT and the Key field number needs to be set as per the Type set in T.Code OBPM2.

  • Created on 8th May 2008 Page 17 of 33

    Similarly for Ref2 node

  • Created on 8th May 2008 Page 18 of 33

    The T.code OBPM2 settings are as follows

    and OBPM1 settings are as follows

    If there are more than 2 Payment documents are included, then system would create Payment Advices as per the settings in FBZP (Payment Method at Company Code)

  • Created on 8th May 2008 Page 19 of 33

    Create Element as Sub Node for NumberofPayment Records as Aggregation (Count) for Type Numeric.

    In the tab of Aggregation, select the Reference ID with type 2 for Summation of Values

    Create Element as Sub Node for TotalofPayments as Aggregation for Type Currency.

  • Created on 8th May 2008 Page 20 of 33

    The Conv.function can also be selected from the drop down list

    In the tab of Aggregation, select the Reference ID with type 1 for Summation of Values

  • Created on 8th May 2008 Page 21 of 33

    Node types used in the Data Medium Exchange Engine (DMEE) for defining outgoing DME files in the format of XML files: Node Usage

    Element Represents one line of an XML file; can contain a value itself, or it can be used to group elements as subnodes

    Atom Used: 1) to output more than one value to a single element, or 2) to control which value is output to an element (based on conditions)

    Technical node Element that is not output to a target file; it stores values that are used in other tree nodes (elements, atoms) by a reference to this node.

    XML attribute Represents a subnode of an element;provides detailed information for an element;can contain atoms as subnodes (for example, to map conditions)

    In case of Flat File format the following nodes are also available

    Segment Group to group Segments

    Segment it may contain further Segments also.

    Data Mapping:

    In case of Tree Type PAYM, Source fields are in structures FPAYH, FPAYHX, FPAYP.

  • Created on 8th May 2008 Page 22 of 33

    Source Fields for Note to Payee are taken from structure DMEE_PAYD.

    After the DMEE tree is created and saved, check if it is error free and then Activate.

    Click to activate the Tree.

    Note showed as 1 as in Maintenance. If it is activated, it shows

    as in Display Mode.

  • Created on 8th May 2008 Page 23 of 33

    Scenario:

    Vendor Name Invoice doc # Invoice Ref # Amount Currency 100000000 - SEPA_CT Vendor 1

    1900000713 TEST DMEE XML3

    22.00 EUR

    100000006 - Test Vendor 9

    1900000710 TEST DMEE XML1

    20.00 EUR

    100000006 - Test Vendor 9

    1900000711 TEST DMEE XML2

    30.00 EUR

    100000006 - Test Vendor 9

    1900000712 TEST DMEE XML3

    15.00 USD

    The DMEE XML Format is assigned to Payment Method 9 and when Payment Run is executed for the above two vendors from T.Code F110,

  • Created on 8th May 2008 Page 24 of 33

    Check ON Create payment medium would generate the output file

    The following XML file is generated which can be viewed from T.Code F110 > Menu > Environment > Payment Medium > DME Administartion

  • Created on 8th May 2008 Page 25 of 33

  • Created on 8th May 2008 Page 26 of 33

    Same data (Vendor FI Documents) when changed for the Payment Method to 8 (for Flat File) it shows as follows: Payment Method 8 is assigned to DMEE File format and Payment Method 9 is assigned to DMEE XML format.

    File Format set in the DMEE is as follows (meaning as Fixed Format based on the field length)

  • Created on 8th May 2008 Page 27 of 33

    Note to Payee confguration done in T.Code OBPM2 is for XML format only. In case of File type, the fields need to be explicitly defined in the Tree.

  • Created on 8th May 2008 Page 28 of 33

  • Created on 8th May 2008 Page 29 of 33

    PMW Configuration steps in brief are as follows for XML format:

    T.Code OBPM1 select the Type as XML

    T.Code OBPM4 Create Variant for the Payment Medium format.

  • Created on 8th May 2008 Page 30 of 33

    T.Code FBZP Payment Methods in country

  • Created on 8th May 2008 Page 31 of 33

    IBAN International Bank Account Number (to be mainatained in Vendor Master) SWIFT Society for Worldwide Interbank Financial Telecommunication

    Assign the DMEE Payment Media Format -

  • Created on 8th May 2008 Page 32 of 33

    T.Code FBZP Assign the Payment method to Company Code

  • Created on 8th May 2008 Page 33 of 33

    T.Code FBZP Bank determination Assign the Payment Method to the Bank in the Company Code.