Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: SD Pricing condition VA00 with Custom Routine.

$
0
0

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.


VARCONF.png

 

VARCONF2.png

 

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.


Viewing all articles
Browse latest Browse all 3273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>