Configuring A Payment Medium Format For A DME File Using Payment Medium Workbench
Configuring A Payment Medium Format For A DME File Using Payment Medium Workbench
Configuring A Payment Medium Format For A DME File Using Payment Medium Workbench
When you execute a payment run, the system triggers the generic
payment medium program of the PMW for creating payment media.
The PMW format uses the DME format tree to create the file.
01/19/23 2
What is Payment Medium Workbench & DME And When
to Use ……
While configuring Payment Method for Country, One has following
option to generate payment media for that Payment Method:
Use Classic Payment Medium Program (RFFO*) to generate
payment media.
Use PMW and use standard delivered PM format.
Use PMW and create your own format using DME Engine.
So One can use PMW and DME Engine, when SAP delivered
payment medium programs or format does not meet
requirements. Using DME Engine one can define own file
format.
01/19/23 3
Overview of Steps
01/19/23 5
Creating a new Payment Medium Format ….
……………………….Brief Steps
01/19/23 6
Creating a new Payment Medium Format
………………..............Copy an existing PM format.
TCode: OBPM3
Copy an existing PM format.it will copy all setting. Do not make any changes in Event module setting,
and make setting related format parameter for required field, supplement for PM format and text fields
for reference information blank, Unless there is requirement to use these settings.
01/19/23 7
Creating a new Payment Medium Format
………………........Enter data related to format
output
01/19/23 8
Creating a new Payment Medium Format
…………….......Enter data related to format
Information
Enter Country ID
Enter Name by which a format is known externally , in External format
Information.
In the Documentation Module You can write documentation for your PMW
format by choosing the field help for the Documentation module field. From
there, choose Proceed, and a document maintenance screen appears. Select
document class General text, enter a name for the text, and create the
documentation.
01/19/23 9
Creating a new Payment Medium Format
………………......Enter data related to Program
Control
In the Structure for format parameter you can enter the name of structure
containing the fields that are to be offered as format-specific parameters on the
selection screen of the transaction for generation of DME files. Generally this is
not required unless specific requirement is there. In that case ABAPer’s needed to
create the structure.
In No. of digit you define how many digits are taken into consideration for a
payment with this format. The number of digits includes both those before and
after the decimal point. If, for example, you limit the number of digits to "8", only
those payments with a value of up to 999999.99 Euro are paid. The +/- sign is of
no relevance here.
Check Mapping using DME Engine and click on DME engine.
01/19/23 10
Creating a new Payment Medium Format
………………..............Enter data related to
Grouping
01/19/23 11
Creating a function tree
for the PM format and
Map data fields in DME
Engine
01/19/23 12
Creating A Function Tree ………….Brief Steps
01/19/23 13
Creating a New Function tree
Click on the DME Engine Button near to check box mapping using DME engine , which
will lead to above screen.
Select Tree type PAYM.
Enter Format Tree name. Ensure that format Tree name corresponds exactly to name
of PM format as this is the only way system link format tree and corresponding PM
format.
When you press create button System asks to choose file type Flat or XML. Choose
flat.
01/19/23 14
Creating a new Function Tree ........Enter DME
Properties………………Admin Data
01/19/23 15
Creating a new Function Tree ..........Enter DME
Properties………………Format Attributes
In Format specific structure you enter the same structure if you have entered in while
defining PM format.
you can additionally specify that an accompanying sheet is to be printed when the file is
generated. The system supports the printing of both simplified sheets and sheets with
subtotals. If you specify an accompanying sheet with subtotals, you must maintain the key
fields on the Sort/key fields tab.
01/19/23 16
Creating a new Function Tree .........Enter DME
Properties………………Levels
If the file format contains a 1:N relation between records A and B (i.e., for one record A there could be several
records B in the file), the segments for A and B must have the levels X and X+1, respectively.
Level 1 represents the top hierarchy level. It is usually assigned to a segment representing the header record of
a file.
01/19/23 17
Creating a new Function Tree ........Enter DME
Properties………………Sort
Here you can specify how certain fields are to be sorted. For the payment program, for
example, you can sort according to currency or account by specifying the appropriate source
field.
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. By activating both Key Field and No Sorting, you
specify that data does not need to be sorted by this criterion (if, for example, it is already
presorted in the Payment Medium Workbench); this results in additional space in the sort
fields, which allows you to use additional fields as sort fields.
If you indicate on the Format attributes tab that an accompanying sheet is to be printed, you
maintain the key fields here, which define how the subtotals are calculated.
01/19/23 18
Creating a new Function Tree ..Creating
Nodes………………….Segment Group
01/19/23 19
Creating a new Function
Tree ............................Create Segments
01/19/23 20
Creating a new Function Tree.......... Add
Data Fields……………..Constants
No mapping – only possible for XML format trees The element is not to contain a source value itself, but is used to group other
elements or other permissible subnodes below it.
01/19/23 21
Creating a new Function Tree...............Add Data
Fields……………..Structure field
To Add a structure field u can drag fields from bottom of the screen and
drop under a segment.
01/19/23 22
Creating a new Function Tree.............Add Data
Fields……………..Aggregations
Arg1-1 Here you specify field 1 of the first part of the condition argument. This can be a constant, a source structure, or a reference ID (of another
node already defined in the format tree).
If a comparison value is a constant other than a numeric value, then you must enter it enclosed in single quotation marks, like 'EURO' in the
example below.
Arg1-2 Here you specify field 2 of the first part of the condition argument. If, in Arg1-1, you entered a:
1.- Constant, then leave this field blank.
2.- Structure field, then enter the field name (which you can take from the source field inventory).
3.- Reference ID, then enter the node attribute of the referenced node that you want to check.
Type Enter the type of argument for the first part of the condition argument:
1 = constant
2 = field in source structure
3 = reference ID
Arg2-1 Here you specify field 1 of the second part of the condition argument. Like the first part, it can be a constant, a field in a source structure, or a
reference ID.
Arg2-2 Here you specify field 2 of the second part of the condition argument. The same dependencies apply as for Arg1-2 above.
Type Enter the type of argument for the second part of the condition argument. The same values apply as for the first part of the argument.
Operator Here you enter the linking operator to establish the logical operation (AND or OR) between two condition lines (only necessary if you have two
condition lines).
01/19/23 24
Creating a new Function Tree.............Conditions
01/19/23 25
Creating a new Function Tree.....................
Check & Activate
Click check button to check the format tree.
If there is no errors……….No
error message will occur.
01/19/23 26
Test the Function Tree ……….Before assigning to
Payment Method……….
After activating Exit from the screen and from format tree menu choose
test active version.
01/19/23 27
Assign PM format to Payment method
01/19/23 28
Execute APP……..
01/19/23 29
Download DME File ……Creating Variant……TCode:
OBPM4
Enter variant parameter on this screen and then save & exit
01/19/23 31
Download DME File …………TCode: FBPM
Enter Tcode FBPM and select variant and enter payment run
details and then execute.
01/19/23 32
Download DME File …………TCode: FBPM
01/19/23 33
o u
k Y
h an
T