Hi Friends,
I'm using the following FM.
CALL FUNCTION 'RV_CONDITION_COPY'
EXPORTING
application = const_m " M-Purchasing
condition_table = const_018 " cond. table
condition_type = const_ctyp2 "'PB00' " cond. type
date_from = vake-datab " valid on
date_to = vake-datbi " valid to
enqueue = const_X "'X' "k_x " lock entry
i_komk = ls_komk
i_komp = ls_komp
key_fields = ls_komg " key fields
maintain_mode = const_a " A= create
selection_date = vake-datab
no_authority_check = const_X "'X' "k_x
keep_old_records = const_X"'X' "k_x
overlap_confirmed = const_X"'X' "k_x
no_db_update = space
IMPORTING
e_komk = ls_komk
e_komp = ls_komp
new_record = lv_new_record
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_selection = 5
table_not_valid = 6
no_authority_ekorg = 7
no_authority_kschl = 8
no_authority_vkorg = 9
error_message = 10
no_material_for_settlement = 20 "WD-IDOC
no_unit_for_period_cond = 21 "WD-IDOC
no_unit_reference_magnitude = 22 "WD_IDOC
OTHERS = 11.
*
IF sy-subrc EQ 0.
lwa_prcond-statxt = k_cp.
ELSE.
lwa_prcond-statxt = k_tp.
ENDIF.
The following function module gives 2 KNUMH values.
CALL FUNCTION 'RV_CONDITION_SAVE'
TABLES
knumh_map = lt_knumh_comp.
CALL FUNCTION 'RV_CONDITION_RESET'.
Now my problem is , Only one value is updated in KONM Table, But I need both KNUMH Values
Thanks in advance,
Vallamuthu.M