Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Configuring A Payment Medium Format For A DME File Using Payment Medium Workbench

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 34

Configuring A Payment Medium

Format For A DME File Using Payment


Medium Workbench.

Prepared By: CA. Rajesh Porwal


01/19/23 1
What is Payment Medium Workbench & DME And When
to Use ……
The Payment Medium Workbench (PMW) is a tool used to configure and
create payment media in particular formats which are not available
in standard payment medium programs (RFFO*) or delivered
payment medium formats.

A PMW defines PM format either using DME Engine or function module.

DME Stands for ‘ Data Medium Exchange’. The function of DME


Administration is to create documents in file form. For This it uses
DME Engine to define the Structure of file. DME Engine enables you
to define your particular local format yourself – without any ABAP
programming knowledge or coding.

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

 Create a new payment medium


format
 Create a function tree for the PM
format
 Test the function tree
 Assign PM format to payment method
 Execute APP
 Download DME file ( TCode :FBPM)
01/19/23 4
Creating a new
Payment medium
Format……….

01/19/23 5
Creating a new Payment Medium Format ….
……………………….Brief Steps

 Copy an existing PM format.


 Enter field related to format output.
 Enter field related to format information.
 Enter field related to program
information.
 Enter field related to Grouping in DME
file.

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

Check PM with Doc , if payments advice are to generated


Check PM without Docs, if file is to be generated
Check if an additional list to be output alongside the payment
summary.
Set this indicator if a payment medium accompanying sheet to be
created. This causes additional parameters (including SAPscript form)
to be displayed on the selection screen for generation of DME file

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

Check the relevant check boxes at which level payments are to


be grouped.

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

 Create function tree


 Enter DME properties
 Create Segment Group and Segments
 Add Data field to segments and enter
their properties
 Enter Conditions
 Check and Activate the function tree

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

In the Admin Data enter Name & Short Description of function


tree.
If required you can enter documentation also by clicking on
information button and choosing proceed.

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.

In Field type , you can enter delimiter information.

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

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.
The level of a format tree node describes the position of the node in the file hierarchy
Levels must be assigned to all nodes that represent the hierarchy structure, for example segments and segment
groups in flat files.

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

Node Use Enter Name & Short


Segment group Used to group segments description.
Segment Represents a record in the target file For reference you can
Composite Used to group elements enter ID for this in
Element Represents a target field of the DME file reference id field.
Atom Used: 1) to output more than one value to a We can use value in the
single element, or 2) to control which value is
output to an element (based on conditions) field as a reference to
this nod while creating
Technical node Element that is not output to a target file; it
stores values that are used in other tree other other nodes , if
nodes (elements, atoms) by a reference to required
this node

01/19/23 19
Creating a new Function
Tree ............................Create Segments

Enter Name, Description and level of the segment.


Choose output immediately unless output is to be delayed.
In the End of the Segment choose copy settings from format header.

01/19/23 20
Creating a new Function Tree.......... Add
Data Fields……………..Constants

Select mapping procedure If


Constant The value is to be set to a constant
Structure field A value is to be retrieved from a specific source field in the system
Reference to tree node An attribute (current value, length, or counter reading) of another DMEE format
object that was already defined is to be used
Aggregation A value related to a reference node is to be totaled and made available to this
node
Exit module The standard mapping and conversion rules do not meet your requirements and
you wish to specify an exit module
Own mapping (atoms) – only possible for elements Your mapping rules are dependent on conditions or if different parts of the
element are to be filled from different sources

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

To Add a sum. .create element using.. right mouse button on the


segment. In the Mapping procedure… Aggregation
In the reference id enter reference id of the nod which is to be
totalled.
In Conv. Function…… there are different calculation rules.. For date,
time, currency, character string.
01/19/23 23
Creating a new Function Tree.............Conditions
This function enables you to define conditions that control whether a certain format tree node is
processed during file generation or conversion.
Field Name Required Entry

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

Operator Comparing Strings.

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.

Once format tree is completed. Activate it. Then only


can it can be used. Once Activated following messege
appears.

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

Once format tree is completed , it can be assigned to


payment method for Country.

01/19/23 28
Execute APP……..

Execute Payment Run for the selected payment method.

01/19/23 29
Download DME File ……Creating Variant……TCode:
OBPM4

You can create a variant to be used on the selection screen of the


transaction (FBPM) for generation of DME File.
In Tcode OBPM4, enter variant name against your company code and
house bank and press enter and choose create then enter parameters
and save.
01/19/23 30
Download DME File …………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

After Execution following.. screen


appears. Double click on
identification and then choose edit
and download file.

You can display file also using


display option.

01/19/23 33
o u
k Y
h an
T

You might also like