Hi Josep,
Check event R515.
In this event you can pre-select open items that you want to take into account when a payment scheme
is created or changed.
Table TY_R515_FKKCL contains all open items (credit items and receivables) that can be transferred to
the payment scheme. If you want to exclude one of these items, reset parameter XMARK_415 in this table to its initial value. The remaining items are available for selection.
If the payment scheme is created in the background, the preselection is valid and all open items, for which parameter XMARK_415 is not reset to its initial value, are taken into account in the payment scheme.
You can also call this event if you subsequently want to include open items in the payment scheme or
remove items from the payment scheme. The event is run via a method in dialog mode as well as if
changes are made in the background.
Indicator X_ROLLIN determines whether to add the open items that were transferred to the function
module to the payment scheme, or whether items need to be removed from the payment scheme. In the
latter case, the indicator is set to SPACE.
Hope it helps..
Thanks,
Amlan