Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create conditions with RV_CONDITION_COPY - Delete Flag is set

0 Kudos

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

1 ACCEPTED SOLUTION

0 Kudos

Solution found - I have to export KEEP_OLD_RECORDS = 'X' to the FM.

1 REPLY 1

0 Kudos

Solution found - I have to export KEEP_OLD_RECORDS = 'X' to the FM.