Skip to Content
0
Mar 20, 2010 at 12:10 PM

RV_CONDITION_COPY - How to change validity end date

1111 Views

Hello,

I am creating/updating condition record in condition table using FM: RV_CONDITION_COPY. I can able to update price etc. but not able to change 'validity end date'. What are the parameters need to pass to change the validity end date.

Here is my sample code. Please help me to solve my issue.

xkomv-kappl = 'V'.

xkomv-kbetr = '101.11'.

xkomv-kschl = 'ZKOO'.

xkomv-waers = 'INR'.

xkomv-krech = 'B'.

xkomv-knumh = '0000012113'.

xkomv-kposn = '01'.

APPEND xkomv.

xkomg-matnr = '0000221001921'.

xkomg-meins = 'LB'.

CALL FUNCTION 'RV_CONDITION_COPY'

EXPORTING

application = 'V'

condition_table = '112'

condition_type = 'ZKOO'

DATE_FROM = '20100328'

DATE_TO = '20100428'

ENQUEUE = 'X'

key_fields = xkomg

MAINTAIN_MODE = 'B' "A to create, B to change

NO_AUTHORITY_CHECK = 'X'

NO_FIELD_CHECK = 'X'

  • OVERLAP_CONFIRMED = 'X'

SELECTION_DATE = '20100428'

tables

copy_records = xkomv

EXCEPTIONS

ENQUEUE_ON_RECORD = 1

OTHERS = 14

.

CALL FUNCTION 'RV_CONDITION_SAVE'.

commit work.

CALL FUNCTION 'RV_CONDITION_RESET'.

commit work.

Thanks,

Shreekant