on 02-05-2013 5:20 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthi ,
Are you talking about Deleting Condition Records ( maintained using VK11 ) or Deleting any Condition type values for particular set of Sale Documents ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.