Getting list of Sales condition types based on matnr , vkorg,vtweg

Hi ,
           I would like to know if there are any FM that retrieve condition values similar to transaction:VK13 based on access sequence.What I mean by access sequence is if there are no records maintained for the first key combination then it should search for the next key combination until a condition value exist.
I have all the mandatory information like VKORG,VTWEG,MATNR,VKGRP..etc similar to VK13
for all the key combinations of VK13.
i tried using FM's
   WV_KOMK_FILL_V
   WV_KOMP_FILL_V
   CONDITION_RECORD_READ
   SALES_PRICE_COND_TYPE_GET
   PRICING_GET_CONDITIONS
   PRICING_LOAD_CONDITION_TYPS
  SD_COND_TYPES_OF_PRICING_PROC
  WB2_SD_MAUNAL_PRICING_COND_GET
CONDITION_TYPS_FOR_PRICING
SALES_PRICE_CALCULATE_01
SD_COND_AUTH_CHECK
SD_GET_ALL_CONDTYPE_FROM_KOTAB
  But i couldn't get the solution . Plz guide me in using these FM's  in which order.
  My input will be MATNR(Article Number),Sales Organisation(VKORG),Division(VTWEG),Customer(kunnr) .
I want to list all the condition types . 
Thanks in advance .
Regards,
S.Sivakumar
Edited by: sivakumar subramaniam on Oct 31, 2009 4:29 PM

You can try the function : SD_CONDITION_TIME_INTERVAL_GET
This func reture condition records and types:
      KOMG-VKORG = P_VKORG.
      KOMG-VTWEG = P_VTWEG.
      KOMG-MATNR = P_MATNR.
      KOMG-VKGRP = P_VKGRP.
      CALL FUNCTION 'SD_CONDITION_TIME_INTERVAL_GET'
        EXPORTING
          KOMG_I      = KOMG
          DATVO_I     = S_DATAB-LOW
          DATBI_I     = S_DATAB-HIGH
        TABLES
          PERIODS_TAB = GT_PREDATE
          KSCHL_TAB   = GT_TKSCH
        EXCEPTIONS
          OTHERS      = 1.
      READ TABLE GT_PREDATE INDEX 1.
      CHECK SY-SUBRC = 0.
      LOOP AT GT_PREDATE.
        SELECT SINGLE H~ERNAM H~ERDAT P~KBETR
            INTO (GT_ITAB-ERNAM, GT_ITAB-ERDAT,GT_ITAB-KBETR)
            FROM KONH AS H
            JOIN KONP AS P
              ON P~KNUMH = H~KNUMH
           WHERE H~KNUMH = GT_PREDATE-KNUMH.
        APPEND GT_ITAB.
      ENDLOOP.
Edited by: Song Huang on Jan 20, 2010 11:46 AM

Similar Messages

  • List of sales condition types for a material

    Hi,
    I have a material and maintained pricing and discount condition types for that material. I guess VK33 helps to view what condition types maintained for that material.
    However when I tried VK33 and selected the material from the conditions from the node on the left hand side and entered the sales org, dist. channel and material and executed after I clicked on the display icon on the condition type, Sales org, Dchl material no conditions are displayed.
    Please let me know how I can view the list of sales condition maintained for a specific material.
    Thanks.

    Hi Giri,
    Thanks for the response.
    In VK13 I should enter the condition type then I can hit condition information so that the details of all records maintained for a specific condition type will only be displayed but not for other condition types.
    In V/LD, I am getting the list only for individual prices. If I insert 17 u2013 Discounts and surcharges by customer or 18 u2013 Discounts and surcharges by material, I am unable to get the list. Is it anything because of the u2018release statusu2019?  We had not checked the u2018release statusu2019 field for the tables assigned to access sequence for the condition types.
    As per the requirement business wants to view the list of u201CDiscounts and surcharges by customer/materialu201D. I think this is possible if I run the report provided by inserting values 17 or 18 but the unable to view the list. Any config settings required to activate?
    Please let me know how to view the list of condition types.
    Thanks

  • Function module to get WM storage bin,storage type based on Matnr

    Logic to pick the storage bn (LQUA-LGPLA)based on MATNR and CHARG(batch).
    The TO qaunt table LQUA is populated when a TO is created.So we need the same logic to get to be implemented .
    Please provide the Function module or logic for the same

    Hello Vikram,
    What you want to do? When you need to use this functional module.
    The following are the user exit available for WM.
    o   MWMTO001 Update own data after TO creation
    o   MWMTO002 Update own data after TO confirmation
    o   MWMTO003 Own stock removal strategy
    o   MWMTO007 Palletization and storage type search for stock placements
    o   MWMTO004 Own stock removal strategy
    o   MWMTO008 Storage type search for stock removals
    o   MWMTO005 TO-related underdelivery
    o   MWMTO006 Bin-related overdelivery and underdelivery
    o   MWMTO009 Prevents deletion of TO items
    o   MWMTO010 Determines total planned TO processing time
    o   MWMTO011 Correction of processing time for TO item
    o   MWMTO012 Transfer order split
    o   MWMTO013 Enhancements of stock removal strategy "Stringent FIFO"
    o   MWMPP001 WM/PP interface: Automatic TR creation
    o   MWMRP001 Replenishment control: Selection of delivery items
    o   MWMRP002 Replenishment control: TR quantity allocation
    o   MWM2S001 Redetermining 2-step picking
    o   MWMD0001 TO printing using print program RLVSDR40
    o   MWMD0002 TO printing (multiple processing) through print program RLKOMM40
    Hope this helps.
    Please explain more about your business process to have accurate response.
    Regards
    Arif Mansuri

  • Updating Condition Type based on pricing type in Sales order

    Hi ,
           I've created a sales order using BAPI. Now I want to update the condition type using pricing type 'Z' customer reserve . I'm using BAPI_SALESORDER_CHANGE.
    I'm passing the values as:
      condition-itm_number = '000000'.
          condition-CONDTYPE = 'Z'.
          condition-cond_count = '01'.
          condition-currency = w_temp_itab_so-currency.
         condition-CALCTYPCON = 'Z'.
          APPEND condition.
          conditionx-itm_number = '000000'.
          conditionx-cond_count = '01'.
          conditionx-updateflag = 'I'
          APPEND conditionx.
    But its not getting updated.
    Thanks and regards,
    Jyoti Shankar

    Hi G's
    Iam trying to get my fields hidden based on the conditon type i give, and not in a position make that hidden so, how can be that done,,
    The actual instance is:
    I am having different plants for the company and two plants have different taxation procedure and rest differemt and if i select plant with different taxation procedure the condition type should be supresses only for the particular plant...
    All your Support is Appreciated

  • Change the condition type based on sales document type

    Dear ALL,
    I have created a condition Zxxx which is a fixed calculation type for the documents created by the upload from external tool to SAP.  I created this condition because external tool is using a 15 place decimal which SAP doesn't allow and if the normal condition type Zyyy is used SAP calculates once in SAP and there are rounding issues.  What the Zxxx condition type does is accept whatever value is sent up from external tool to SAP, regardless of the quantity.  The problem is that whenever they create a credit with reference, in SAP and they want to do a partial credit, the Zxxx doesn't take the partial quantity into consideration and doesn't change the value. 
    Is there a way to force SAP to change the condition type from Zxxx to Zyyy based on sales document type without recalculating the whole document because that would again, cause rounding issues.  We would need to have the calculation done only on quantities changed in the credit memo request .
    please advice me. your inputs are highly appreciated.
    TIA
    KOGI

    Dear ALL,
    someone please help me with this issue. your inputs are higly helpful.
    TIA
    KOGI

  • MWST condition type based on Sold-To-Party country

    Hello,
    I need MWST condition type to be determined with Country,Sold-To-Party country,Tax Classification1 from Customer master and Tax classification from Material master. But in condition table I could not find filed for Sold-to-party Country.
    Also as per standard SAP tax gets determined on ship-to-party country, which we want on sold-to-party country.
    Regards,
    Suresh

    Hello
    You can find solution to your requirement through program MV45AFZZ with routine USEREXIT_PRICING_PREPARE_TKOMK
    Refer SAP Note 21734 - Determining sales tax (VAT) from any partner for complete solution.
    Thanks & Regards
    JP

  • Condition type based on minimum order qty

    hi all,
    can anyone help me solved this problem.
    i have maintain min order qty in material master (MVKE-AUMNG) . let say 10PCS ($5/PCS). then i create Sales Order (Tcode VA01) with qty = 5, the system propose warning (we can still continue create order).
    i want to have condition type (let say ZZPR) that have value = Price * min qty --> $5 * 10 PCS.
    i think we need routine in calculation base value. can anyone know the code for this routine?
    thx
    Best Regard,
    Hendry

    hi raj,
    put routine in condition based value.
    data : zaumng type mvke-aumng.
      select single aumng into zaumng
        from mvke
        where matnr = komp-matnr and
              vkorg = komk-vkorg and
              vtweg = komk-vtweg.
    move zaumng to xkwert.
    hopefully it helps..
    Best Regard,
    Hendry

  • Getting error while creating condition type in SPRO

    Hi ,
    can somebdy tell me why i am getting the following error while creating condition type in SPRO
    No valid change license available for message /sapcnd/
    and also while rule determination using condition type we are getting the following error.
    system error:system cannot read the structure for table
    reg
    venkat

    Hi Venkat,
    Do you have the error number code!?
    Regards,
    Michel  Bohn

  • How can I download a list of import condition types used in POs (STP)

    Hi Experts,
    Do any of you know how can I download such a list from SAP? I'm enclosing images of what I need, it'd be great if I could have for instance an excel report of what condition types I have per material for all purchase orders in a determinated period of time.
    Thanks,
    Dersu

    In addition to ticking stuff off as you go along have a play with edit > find. I've not looked at this in any great depth, but it seems you can search for used/unused media. Might be worth a look at.

  • Rebate Condition Type based on Calculation

    I am trying to create a rebate condition that is based on the calculation of Average Invoice Price of group of products.  However, I am not able to select the Calculation type based on Formula.  Please let me know if someone has come across the same issue.

    For example, Rebate of $2/unit of Product A is given to a customer only if
    Averrage Invoice Price of Product A, Product B and Product C is greater than $135

  • Condition type based on P.O document type

    Hi SAP Gurus,
    We are maintaining a condition type vendor discount in the pricing procedure. It is based on access sequence Vendor condition group, Vendor subrange and vendor.
    Can we control this condition based on P.O document type. The requirement is not to have this condition for Return P.O's.
    Any inputs are appreciated.
    Thanks
    Edited by: sspven on Oct 27, 2010 7:45 PM

    Hi
    In Spro follow the following steps:
    1.MM>>condition>>Define price determination>>maintain condition table.
    2.Add BSART feild in the condition catlouge
    3.Include the same in the acces sequence table
    4.Maintain the condition record.
    Hope this helps you.
    Regards
    MK
    Edited by: Manish Kumar on Oct 28, 2010 8:34 AM

  • KONV not getting updated with new condition type value

    Hi,
    I have created a new condition type for a pricing procedure. But table KONV-KAWRT is not getting updated with any value. Can anyone help me this.
    Thanks
    Shweta

    Hi Vasu,
    It was created in the same way then I have assigned calculation formula . For invoice it is comming fine but for the intercompany billing it is not showing any value in Contition tab for this particular condition type. For this when I checked in KNOV table it is showing condition type but the value (KONV_KAWART) is comming out zero and due to this reason it is not showing value in intercompany billing ->condition. Do I need to write code for this?
    Thanks,
    Shweta

  • SD Sales Condition Types

    We are maintaining one tax condition ZADD for Additional Tax in Kanpur Region.
    As the % of Tax has been changed from 0.5% to 1 we have maintained the same in VK11 condition records.
    For the new orders it is picking up the present tax % and invoice and accounting doucments are getting generated correctly.
    For the old orders, even if we update the price update in sales orders, the condition records changes to 1%. But accounting documents are not getting generated.
    Please find attached the error message. Also note for old orders raised last Nov'09 and partshipments we are unable to update the tax condition (ZADD) from 0.5% to 1%.
    For few Orders we have already made DCs and only invoice is pending.
    Regards,
    Sudha

    hiiii
    I think u can do like this ,
    When ever u'll post the old document with 0.5% , tthat time uhave to change condition value 1% to 0.5% .
    Then u have do the posting transaction , then as usyual change  it to 0.5% to 1 %.
    Revert any clarification
    Thanks
    SAP-MM

  • Condition type value updation using characteristic value in sales order

    Hi Experts,
    We are implementing SAP for one of our Spain client. In that one of the Legal requirements is, whenever they are selling the finished products to domestic customers who contain OIL as one of the component then, some additional cost needs to be calculated and collected from customer and which needs to be paid back to Spain Government every month on Region basis.
           If OIL is not a component to produce the finished product then, not required to charge the customer additionally.
    The OIL content used to produce every finished product will vary based on product characteristic value. Meaning, for some finished product the OIL used will be 2.2 KG and for some products it will be 3.5, 4.3 KG and etc.
    Since various combinations of products are available for the client, during sales order creation we are planning to update some special characteristic which the data flow from u201CVariant Tableu201D. In the variant table we are going to maintain the OIL Quantity required making finished product.
    But we are not sure how to activate a new condition type with the value fetched in the special characteristic. This new condition type needs to be activated based on this characteristic value and multiplied with total order quantity and price to charge from customer.
    Example, the special characteristic fetched the value of 2.2 KG based on variant table. Total Order quantity is 10 PC and charge is 0.06 EURO per KG. in this case, (2.2 x 10 ) x 0.06 EURO = 1.32 EURO
    I need the expert opinion how to activate the new condition type based on characteristic value and achieve the above requirement.
    Thanks in advance.
    Warm Regards,
    VEL

    Hello,
    I have replicated the whole requirememt in IDES and getting the price calculation as needed but the only issue with the Conversion factor for the condition type. Either you need to maintian the conv factor in material master or need to enter manually for the condition type in SO. Some how you have to maintain the conversion factor to calculate the price for the condition type in different unit.
    For easy of understanding Lets make the whole requirement in 2 parts
    Part - 1
    Oil qty calculation. For convenience sake I have taken oil qty also in TO
    1) Created a num char OIL_QTY1 with length 9 and decimal places 5 and UOM as TO
    2) Created Variant table to infer the OIL qty in TO per piece of finished prod ( This oil qty data may be depends on various factors). For certain Finished products the oil qty may be 0 or blank
    3) Created a REF char SO_QTY  to pull the SO qty to configuration and add this char in class 300(Table:VBAP,Field :KWMENG)
    4) Created another char SO_OIL_QTY  (Num with length 9 and decimal places 5 and UOM as TO)
    5) Created a PROCEDURE say PROC_SO_OIL_QTY with code
    *$self.SO_OIL_QTY = $self.OIL_QTY1 * $self.SO_QTY*
    6) Create another PROCEDURE as mentioned earlier with modified code
    $SELF.A_VARCOND = 'TEST_001' if OIL_QTY1 specified,
    $SET_PRICING_FACTOR ($SELF,A_VARCOND,'TEST_001', SO_OIL_QTY)
    Note: Maintain proper seq of the procedures in profile. The Qty cal proc should be before the price related procedures.
    PART-2
    1) For the condition type maintained 60 EUR per TO (0.06 EUR per KG)
    Now if you create SO for the Finished product of 10 PC
    the Char values will be
    OIL_QTY1  = 0.00022 TO (inferred from Variant table th proc)
    SO_QTY    = 10
    SO_OIL_QTY = 0.0022 TO
    Get into conditions tab
    Here Condition type ZSIG will be displayed as error with Amount 60 EUR per TO and condition value will be blank. Just enter value 1 in the col NumC and CCon fields.
    Now the Condition value will appear as 1.32 EUR.
    Hope this gives some more clarity
    Regards
    Brahmaji D

  • Condition types for Import Vendor not getting in Contract

    Hi,
    In Contract Document if Import Vendor selected, for the Line items we are not getting the Import Pricing Condition types. Instead, we are getting the Local pricing condition types even if Import vendor schema maintained in Vendor Master.
    We have found that Gross Price PB00 and PBXX are maintained for both Local and Import Pricing Procedures. In PB00 condition type configuration, Local Pricing Procedure is assigned in the field Pricing Procedure (V_T685A-KALSM).
    But while creating the Purchase Order we are not facing this problem & we are getting respective Pricing Condition types based on the Vendor schema assigned in Vendor Master. And already till now more than 4 Lakhs of Purchase Order created.
    Please let me know the solution to get Import Pricing Condition types in Contract for the line items.
    Thanks & regards,
    Datta

    In Contract only basic price will be shown, other conditions and pricing procedure do not appear, becayse eventually the contract has to be released, which is nothing but creating a PO.
    SAP Standard practice, Outline agreements (Contract and Scheduling areement) will not have pricing procedures, they will have only basic price and discounts conditons.
    Hope this anwers your question.
    Thanks & regards
    Hameed Parvez.

Maybe you are looking for

  • Date and Time Issue for Mult Org...

    Hello, How can I manage the date time, if my organizations have different plant and location? I.e. The database server located in Pacific Time zone and the application may access from new plant German time zone. Whenever the German business center en

  • Syncing iphone with icloud and outlook pc

    having trouble syncnching all contacts in iphone to icloud and have them all push to outlook 2010 on a pc

  • MD player for Mac - to use with  Garageband

    Hi, could someone suggest a good MD player that is compatible with Mac. I´ve heard that the Sony MZ-RH10 that can transfer data through USB doesn´t work so well. So I´m thinking of buying a cheeper MD player (without the USB transfer possibility) and

  • Please help me with my iPod

    Hi there, I have a Problem, when I connected my iPod mini with my computer It said I have to update it to the lastest software, I downloaded the iPod udater 2005-11-17, when I did so, the computer perfectly read my ipod, it showed exactly it's name a

  • Loading of DRM export file into HFM

    Hi iam new to DRM. I have installed DRM 11.1.2.2. And i have created an export text file now how to load this text file in to my HFM classic application I have loaded the EPMA templet to drm application, how to use this templet to export my data into