Thank you very much for your answer!
We have that, when I meant finish codes I meant the Variant Configuration of the materials.I'am attaching some images of the 57 table and the pricing condition that is pulling 2 VA00 conditions that match this table, but I want to exclude one of them.
How can I achieve this? if every time I validate this in the custome code as follows, it is excluding it all.
This is the code in the custom routine in the pricing procedure for VA00. According to this if I exclude
We use this FM to pull the VC Config of the material and then we just see if the finish is in our Z table and we exclude it.
CALL FUNCTION 'VC_I_GET_CONFIGURATION_IBASE'
EXPORTING
instance = komp-cuobj
language = sy-langu
TABLES
configuration = tkomcon
EXCEPTIONS
OTHERS = 4.
IF tkomcon[] IS NOT INITIAL.
CLEAR retcd_f. " Var to check if we should charge for any other Finish.
LOOP AT tkomcon WHERE atnam = 'FINISH_1' OR
atnam = 'FINISH_2' OR
atnam = 'FINISH_3' OR
atnam = 'FINISH_4' OR
atnam = 'FINISH_5' OR
atnam = 'FINISH_6'.
* Do not proceed further if the customer is in exception.
READ TABLE it_zvc_soldto_fin INTO wa_zvc_soldto_fin WITH KEY soldto = komk-kunnr
material_group = komp-matkl
finish_code = wa_finish-zfcod. "@JKL042516
IF sy-subrc = 0.
retcd = 4. " AVOID METAL
ENDIF.
CHECK RETCD = 0.