Skip to Content
0
Nov 30, 2015 at 01:15 PM

Create conditions with RV_CONDITION_COPY - Delete Flag is set

572 Views

Hi,

when I create conditions (in contracts) with the FM RV_CONDITION_COPY the new condition hast autmatically the delete flag set.

How should I call the FM, so the flag is not set?

CALL FUNCTION 'RV_CONDITION_COPY'
EXPORTING
application = 'M'
condition_table = '016'
condition_type = gt_komv-kschl
date_from = gv_datfr
date_to = gv_datto
enqueue = 'X'
key_fields = ls_key
maintain_mode = 'A'
selection_date = gv_datfr
used_by_idoc = 'X'
overlap_confirmed = 'X'
TABLES
copy_records = lt_komv[]
copy_staffel = lt_scale[]
EXCEPTIONS
enqueue_on_record = 1
invalid_application = 2
invalid_condition_number = 3
invalid_condition_type = 4
no_authority_ekorg = 5
no_authority_kschl = 6
no_authority_vkorg = 7
no_selection = 8
table_not_valid = 9
no_material_for_settlement = 10
no_unit_for_period_cond = 11
no_unit_reference_magnitude = 12
invalid_condition_table = 13
OTHERS = 14.



regards Patrick