cancel
Showing results for 
Search instead for 
Did you mean: 

RV_CONDITION_COPY for deletion

Former Member
0 Kudos

Hi ,

How to use RV_CONDITION_COPY for deleting a condition price in SD.

I am passing the LOEVM_KO = 'X' in create mode 'A'. But it is not working.

Any samples /suggestions.

Thanks & Regards,

Karthikeyan

Accepted Solutions (0)

Answers (2)

Answers (2)

valentin_catalin2
Active Participant
0 Kudos

Hi Karthi,

I suppose you solved somehow this issue until now. But still if you still need the info I have debugged a little bit the standard program (fm RV_CONDITION_COPY) and reached to the conclusion that standard program doesn't care about LOEVM_KO from KOMV, it's omitted.

I have made a small implicit enhancement in include MV13AF0X form XKONP_VERAENDERN to use send data with fm RV_CONDITION_COPY in field LOEVM_KO. This is the code (I'm also doing an additional check for safety reason to be in the correct processing sequence):

   data : lt_call_stack type cl_abap_get_call_stack=>formatted_stack,

          ls_call_stack type string.

   lt_call_stack = cl_abap_get_call_stack=>format_call_stack( cl_abap_get_call_stack=>get_call_stack( ) ).

   if lines( lt_call_stack ) gt 2.

     read table lt_call_stack into ls_call_stack index 2.

     if ls_call_stack cp '*COPY_FROM_TKOMV*'.

       konp-loevm_ko = copy_tkomv-loevm_ko.

     endif.

   endif.

I hope it helps ...

BR,

valentin

Sijin_Chandran
Active Contributor
0 Kudos

Hi Karthi ,

Are you talking about Deleting Condition Records ( maintained using VK11 ) or Deleting any Condition type values for particular set of  Sale Documents ?

Former Member
0 Kudos

Hi Sijin,

I want to delete condition record as like VK11/VK12.

Karthi

Sijin_Chandran
Active Contributor
0 Kudos

Hi Karthi ,

Did you try with BAPI BAPI_PRICES_CONDITIONS

http://scn.sap.com/message/1502424#1502424

You can set deletion indicator for Condtions using this FM.

Former Member
0 Kudos

Hi Sijin,

I cannot use this BAPI. For me everything is dynamic even the condition type. Mapping is not possible with the BAPI fields.

Tell some option using this FM RV_CONDITION_COPY

Karthi

Sijin_Chandran
Active Contributor
0 Kudos

Hi Karthi ,

In the below thread ,

http://scn.sap.com/message/8887484

Set MAINTAIN_MODE = Change.

And set deletion indicator for Conditions.

Try to code by referring the above.