Skip to Content
author's profile photo Former Member
Former Member

RV_CONDITION_COPY not updating valid from and valid to fields in VK12

Hey all,

I am using RV_CONDITION_COPY to update the pre-pack header material with the pricing values.

The amount is getting updated, but the fields Valid-from and Valid-to are not getting updated with the given values in the FM.

Could anyone please suggest what needs to be done?

CALL FUNCTION 'RV_CONDITION_COPY'

EXPORTING

application = 'V'

condition_table = '501'

condition_type = 'ZWSL'

date_from = sy-datum

date_to = '99991231'

enqueue = 'X'

i_komk = komk

i_komp = komp

key_fields = lwa_komg

maintain_mode = 'B'

no_authority_check = 'X'

keep_old_records = 'X'

overlap_confirmed = 'X'

no_db_update = space

IMPORTING

e_komk = komk

e_komp = komp

new_record = new_rec

e_datab = e_datab

e_datbi = e_datbi

e_prdat = e_prdat

TABLES

copy_records = lt_komv.

Any help would be appreciated!

Thanks in advance.

Veena

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2012 at 10:20 AM

    Hey all,

    The problem is solved.. I passed MAINTAIN_MODE = 'A' instead of 'B'.

    It updated the date fields.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.