Anda di halaman 1dari 6

SAP Payment through DMEE

Follow the bellow steps: 1. Create your DMEE mapping in DMEE tcode: a. Usually payment is done under tree type PAYM and type the name of your format tree then click create:

b. You should provide proper node hierarchy and the basic should look like the one below:

c. For each node, you should provide a level number depending on how the level is printed in the file d. You should also determine the proper sorting per level:

e. You may also create the segment to group the element (field in the file). f. Each element can be mapped in variety of ways as shown in the mapping procedure:

d. Aggregation is usually used in summation e. Atom is used usually when you want to concatenate nodes. f. Exit module if there is a special procedure needed before showing the data such as this standard function modules g. The best exit module that can be used is the "DMEE_EXIT_TEMPLATE_EXTEND_ABA" In this module, you may filter the reference node, format tree and other filters you may want to add based on table FPAYH, FPAYHX, and FPAYP. h. You may also consider adding a parameter table for each field. In our example below we used country code, country key, reference field, and format tree as parameters: SELECT SINGLE SUBR FROM YFIDMESUBR INTO l_wa_subr-subr WHERE bland = wa_item-FPAYP-bland AND bukrs = wa_item-FPAYP-bukrs AND tree_id = wa_extension-node-tree_id AND ref_name = wa_extension-node-ref_name. SUBR field will contain your subroutine that you may use to filter specific logic inside the function module exit specific for each country, country key, etc. 2. Determine your enhancement in what category in order to locate the appropriate data in tcode FBZP. EX: a. Selecting Payment methods by country in FBZP:

b. Create an entry that should be look like this:

c. Enter the appropriate setup based on the requirements and don't forget to fill up the Payment Medium area:

Notes: Put "DMEE" as node reference for reference type element for type 4 and 5.

Function Exit in SAP DMEE


Introduction: Data Medium Exchange Engine (DMEE) is where you define the fields of your FTE or IDOC.

It is defined also by SAP AG as: The Data Medium Exchange Engine (DMEE) enables you to define file formats that meet the requirements of your financial institution. This is particularly important as there is no worldwide or regional standard. In some cases, no country standard exists and the file must comply with bank-specific standards. With no ABAP programming knowledge required, this tool enables you to flexibly define new formats and to efficiently modify existing ones. In addition, DMEE can be used by calling applications to generate a DME file. Objective:

In this topic, I will show you how to use the function exit in DMEE of a certain bank of a country. Background: We have a project before to change the default setup of one of our fields in our idoc fte. The current setup was being assigned to a constant value, but the business suggested to make it as dynamic or should follow a condition if when and where it will be getting its value. Thus, the best way to do this is by using the exit function available in dmee setup by SAP.

Ok, let's get started.

Steps:

1. In SPRO, follow the below path

SPRO->Financial Accounting->Accounts Receivable and Accounts Payable->Business Transactions>Outgoing Payments->Automatic Outgoing Payments->Payment Media->Make Settings for Payment Medium Formats from Payment Medium Workbench->Create Payment Medium Formats OR you may check in OBPM1 / OBPM2 / OBPM3 / OBPM4 - (In OBPM4 make sure you have given the secured folder path and file name for your variant) Suggest also to read the complete setup for DMEE payment instruction. 2. Choose your payment medium format and double click

3. Click DME ENGINE

4. Provide your Tree Type and Format Tree

5. Click Change button from the above screen then look for the field you want to change its setup.

6. Click for the Exit module. You may want to set the appropriate length of the field also by changing the

Length field below:

7. Click the SOURCE tab of the above screen then you may see the area wherein you can input your exit function.

8. In the exit function, you may use the standard function DMEE_EXIT_TEMPLATE_ABA as long as it is allowed by your organization or you may copy it into a new one. Remember to include all the parameters to avoid encountering a problem later on. Inside the function, you may create a new variable to hold DMEE_PAYM_IF_TYPE structure then you may use the values inside it during runtime. Tables that are associated within that structure are FPAYH, FPAYHX and FPAYP. You may find different available fields within that tables depending on the requirements you are working with.

Anda mungkin juga menyukai