Header Pricing Condition (SD)

Hello,
We have a header pricing condition type both applicable to header and line items. When manually putting an amount on the header, it automatically distributes the amount on the line items proportionally.
When running in batch or IDoc via requirement routines (or any VOFM routines), how can I populate the header amount so that it will distribute the amount automatically also on the line items?
I normally do this on the line item level by modifying XKWERT on a requirement routine but I cannot get it to to work when the target is a header pricing condition.
Please help me if you have any ideas.
Thanks in advance,
John

which include? i think you forgot to include the name of the include

Similar Messages

  • Change header pricing condition in sales order

    Hi,
    I have an requirement in VA01 and VA02 to automatically edit one header pricing condition. The user can able to change the value of that condition type in header not in items . Does anyone know what user exit I can use for this requirement.
    Thanks

    Hi Sunil,
    Plealse find below 2 methods to change header pricing conditions in sales order.
    1.Goto SE38, give prog name as MV45AFZZ and in that write logic under USEREXIT_PRICING_PREPARE_TKOMK . (OR)
    2) The same can be done by creating a Alt Calculation type routine through VOFM and writng the logic in the routine, which will then be assigned to the pricing procedure in the condition type which will automatically calculate the condition.
    Try with the options mentioned above..
    Regards,
    KK

  • Sales Order Header Pricing Conditions

    Hi All,
    I am using BAPISDORDER_GETDETAILEDLIST function module to get the pricing conditions. I am able to see Item Pricing Conditions in the ORDER_CONDITIONS_OUT  table but not able to find the Header Pricing Conditions.
    Please let me know how to fetch header pricing conditions. Is there any other FM which can do it?
    Thanks
    Jit

    Hello,
    Try these FM's.
    SD_SALES_HEADER_READ
    SD_SALES_ITEM_TABLES_READ
    SD_SALES_PRICING_INFORMATION
    MRM_DBTAB_KONV_READ
    RV_KONV_SELECT
    Please check out the Function module RV_INVOICE_DOCUMENT_READ.
    Here you need to pass on the invoice no. In the output it shall give you details in invoice header and item levels, price, document status. You will get the net amount as well as the tax. Then you need to add the net amount and the tax to get the total amount
    Regards,
    Vasanth

  • Header Pricing conditions in BAPI function module

    I am using BAPI function module BAPI_SALESDOCU_CREATEFROMDATA1 to create sales orders through program.
    It is working fine with item level pricing conditions.
    But my requirement is ... I need to update few pricing conditon types in item level and one in header level.
    Could you please help me where I need to pass header pricing conditions. Please help me.
            CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
              EXPORTING
                SALESDOCUMENT             = SALESDOCUMENT
                SALES_HEADER_IN           = SALES_HEADER_IN
              SALES_HEADER_INX          =
              SENDER                    =
                BINARY_RELATIONSHIPTYPE   = 'VORL'
              INT_NUMBER_ASSIGNMENT     = ' '
              IMPORTING
                SALESDOCUMENT_EX          = SALESDOCUMENT_EX
              TABLES
                RETURN                    = RETURN
                SALES_ITEMS_IN            = SALES_ITEMS_IN
              SALES_ITEMS_INX           =
                SALES_PARTNERS            = SALES_PARTNERS
                SALES_SCHEDULES_IN        = SALES_SCHEDULES_IN
              SALES_SCHEDULES_INX       =
                SALES_CONDITIONS_IN       = SALES_CONDITIONS_IN.
              SALES_CFGS_REF            =
              SALES_CFGS_INST           =
              SALES_CFGS_PART_OF        =
              SALES_CFGS_VALUE          =
              SALES_CFGS_BLOB           =
              SALES_CCARD               =
              KEY_TABLE                 =
    Thanks in advance.
    Raghu

    If the correct configuration allows for manual entry of the condition type you want to populate, You can map your value using
    ' ORDER_CONDITIONS_IN'  . If item level map line number, cond step number of the condition type in your pricing procedure, your condition type you are using,  condition value you are sending into the system,  currency, and cond unit. If it is a header condition, then send in 000000 as the item number.   You can also consider using BAPI_SALESORDER_CREATEFROMDAT2

  • Header pricing condition types

    Hi,
    In a purchase order header pricing condition types are appearing twice .
    Ex: JCDB    254
          JCDB     20
          JCV1    345
          JCV1     30.
    first condition type (ex: JCDB 254) is calculated on net price
    second cond type (ex: JCDB 20) is calculated on handling charge.
    Only for this particular PO we face this problem.
    How the pricing condition types are calculating twice?
    regards,
    sathya

    If I am not mistaken, this is a Purchasing question.
    Please post to correct forum.
    Regards

  • Billing header pricing condition value

    Hi,
    I have requirment to display billing header pricing condition value. I have check using  first go to Vbrk then find Knumv field,go to KONV and find all condition record value.
    But in KONV there are only Items condition record SO how to find header. please reply

    Hi ,
    Instead of KONV, get the header condition value from KONH
    regards,
    santosh

  • Header Pricing Condition -- Can I attach rotuine..

    Hi,
    I want to attach routine for the header pricing condition (instead of manual) to fetch the price from ztable then the price
    has to be equally distribute to item level/
    Is this possible? can i attach a rotuine to Header condition?
    Laxman

    Hi,
    The price for this Header condition is stored in classification field of material master.
    Example..
    We created charactersitc called deductables,and
    attached this characterstic to the class of material. finally we given value of 100 usd in the material master classification tab.
    So when I attach a routine (say 602) to ZDED (header discount condition), it has to go to the material master and find this 100 usd and equally distribute to all line item.
    My direct questions is
    Is SAP header condition will work if I attach a routine (altenative calcualtion type)?
    If yes, once i identify the value of 100 USD how to pass to header level condition rate?
    Need advice

  • Unable to update the header Pricing Condition of Customer Quotation

    Hi Friends,
    I am trying to change the Customer Quotaion using the 'BAPI_CUSTOMERQUOTATION_CHANGE'.
    I am able to update the Header details and item details,but When it comes to pricing Conditions the Following errors I am getting
    000000: Operations with Conditions of type F not allowed(ZZHD).
    as it is a Header pricing Condition, I am passing Item number as 000000,even I tried to Comment and see,but the same issue.
    Following is are the pricing Condition details that I am passing to BAPI.
    CLEAR: wa_quote_condition_in,
             wa_quote_condition_inx.
      wa_quote_condition_in-itm_number        = '000000'.
      wa_quote_condition_inx-itm_number       = '000000'.
      wa_quote_condition_in-COND_COUNT     = '01'.
      wa_quote_condition_inx-COND_COUNT    = '01'.
      wa_quote_condition_in-cond_type            = 'ZZHD'.
      wa_quote_condition_inx-cond_type         = 'ZZHD'.
        wa_quote_condition_inx-updateflag      = 'U'.
      lv_zzhd  = ( ls_nd_payment-transport_charg / 10 ).
      wa_quote_condition_in-cond_value     = lv_zzhd.
      wa_quote_condition_inx-cond_value    = 'X'.
      APPEND: wa_quote_condition_in TO it_quote_condition_in,
              wa_quote_condition_inx TO it_quote_condition_inx.
      CLEAR: wa_quote_condition_in,
             wa_quote_condition_inx.
    Please help in tracing the above issue.
    Regards,
    Xavier.P
    Edited by: Xavier on Sep 7, 2011 10:59 AM
    Edited by: Xavier on Sep 7, 2011 11:00 AM

    Hi prasad,
    Please find the you will find 'condition type paramter in the structers bapicond, bapicondx.
    data :it_quote_condition_in    TYPE TABLE OF bapicond,
             wa_quote_condition_in    TYPE bapicond,
             it_quote_condition_inx   TYPE TABLE OF bapicondx,
             wa_quote_condition_inx   TYPE bapicondx.
    CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
        EXPORTING
          salesdocument                = ls_nd_payment-vbeln
          quotation_header_in          = wa_header
          quotation_header_inx         = wa_header_inx
         simulation                   = 'X'
      BEHAVE_WHEN_ERROR            =
      INT_NUMBER_ASSIGNMENT        =
       logic_switch                 = wa_logic_switch
      NO_STATUS_BUF_INIT           = ' '
        TABLES
          return                       = it_bapiret2
          quotation_item_in            = it_order_items
          quotation_item_inx           = it_order_items_inx
         partners                     = it_partners
      PARTNERCHANGES               =
      PARTNERADDRESSES             =
          conditions_in                = it_quote_condition_in
          conditions_inx               = it_quote_condition_inx
      QUOTATION_CFGS_REF           =
      QUOTATION_CFGS_INST          =
      QUOTATION_CFGS_PART_OF       =
      QUOTATION_CFGS_VALUE         =
      QUOTATION_CFGS_BLOB          =
      QUOTATION_CFGS_VK            =
      QUOTATION_CFGS_REFINST       =
        schedule_lines               = it_order_schedule
        schedule_linesx              = it_order_schedule_inx
       quotation_text               = it_texts
      QUOTATION_KEYS               =
      EXTENSIONIN                  =
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Xavier.P

  • User exit to add header pricing condition in sales order

    Hi experts,
    I have an urgent requirement in VA01/VA02 to automatically add a header pricing condition and rate (Kanban charges) for a certain type of Sales order (Kanban Sales order). Does anyone know what user exit I can use for this requirement? Also, the additional header pricing condition should be included in the net value for the item.
    Thanks!

    HI Leo
      To add a condition price for a condition type, this has to be assigned in the <b>pricing procedure</b>. For each condition type in a pricing procedure, we will have <b>access sequences</b>. If we follow this approch, the price is automatically extracted basing on the access sequences when condition records are maintained. For this, no coding is required and everything can be done by configuration by Functional consultant.
       Naren is right to point out on the same.
      If you need to change the price for a particular condition which already exists, you can go by <b>pricing routines</b>. Go through transaction <b>VOFM</b> for the same. 
       I advice you to discuss with your functional consultant and understand the requirement and then go for modifying accordingly.
    Kind Regards
    Eswar

  • Header Pricing Condition - distribution to items question

    we have a condition (Freight) that is a surcharge entered as a percentage.  If the condition is 10%, we would like the calcualtion 10% of net value at the header level and then distribute the amount to the line items distributed by weight or volume.
    We tried using the alternate condition base value formula, but then the calculation is the product of surcharge  percentage multiplied by either the weight and volume  instead of the net value.  Is it possible to do the calculation as defined?
    example we would like to occur:
    net value 1000, percentage 10% total value of condition is 100
    line item 1 volume 70 - condition value is 70
    line item 2 volume 30 - condition value is 30
    what is happending using alternate condition base formula of volume:
    net value 1000 percentage condition value is 1 (100* 1) from total volume
    line item 1 volume 70 - condition value is .7
    line item 2 volume 30 - condition value is .3
    thanks for all help.

    you do not need any alt cond base value.
    In the condition type defintion of your freight condition ( T Code V/06) in the defintion, under the scales section , for "Scale Basis" use F - Volume based.
    Mark the condition as Group condition , use group formula 1, Check Both Header / Item Conditions
    When you create the condition record using VK11, mainatin the scales as per the requirement
    For example say from 0 to 1000 - 10% / From 1001 till....... 15%....so on
    Process order and check the results. Please post if you have any further error.
    Regards
    Sai

  • Header Pricing Condition?

    HI
    My Client Requirement is like they wants shipping Charges at header level only. and we are maintaing two C.Type for the Shipping Charges at header level and this condition and its values come from Z-Table.and in Z-table we are maintaing C.Type and its Values. if the requirement is fullfilled then this C.Type and its Value will populate at Header level. Now after putting logic by ABAPER when i m looks to Header condition. at there only AMOUNT value is coming, its not passed to C.VALUE Field, So its charges is not calculated.. but if I put the values manaully and activate then and then its passed to C.VALUE Field. But i want this values from the Z-table without activate...Please let me know is there any control parameter for C.Type to automatic Activation at header level..
    Regard
    Pinal...

    Dear Pinal
    No just for my information, I had asked.
    Meanwhile, for information, as far as Header Conditions is concerned as you said, the value <b>WILL</b> flow in "Amount"  but  <b>NOT</b> in "Condition Value" which is the behavious of Header Conditions.
    You must activate pricing, by choosing <b>Activate</b>. When you activate the header condition, the system distributes the condition value proportionally among the various items in the sales document. This distribution can be based on the order value of each individual item or on other criteria specified in Customizing for Sales
    Thanks
    G. Lakshmipathi

  • Header Pricing condition - Sales Orde

    Hi All,
    I am adding a new condition type while creation of a sales order. Now my requirement is that the RATE entered against this conditon type should get copied to another conditon type as well. 
    How can this be realized ?
    Awaiting a quick response.
    Regards
    Nishant

    Hi,
    Better write a Pricing Routine/Outputs in VOFM transaction for Pricing.
    Regards,
    Anji

  • Extracting the pricing condition records

    Hi,
    I would like to extract the pricing condition records of a particular sales organization. I need to upload these records to another system.
    Any guidelines?
    Thanks a million.

    Hi,
    For Sales dacuments pricing conditions you can use :
    RV_PRICE_PRINT_HEAD  --Header pricing conditions
    RV_PRICE_PRINT_ITEM  -- Item level.
    Lanka
    Message was edited by: Lanka Murthy

  • Pricing condition tables for Sales Order

    Hi experts,
    please can you tell me the code I have to write into a query's field to retrive the value of a specific header pricing condition saved into a Sales Order?
    Thank you very much
    Kind Regards
    Andrea

    1) From sale order header table VBAK fetch the condition number KNUMV for a particular sale order VBELN.
    2) From conditions table KONV fetch the conditions for condition number KNUMV with item number POSNR as 000000.
    This way you can fetch the header conditions. Our ABAPers normally do a loop on the line items and total up the values to arrive at the header condition value. If you use this way then you need to pass another field condition origin KHERK with value D while fetching data from KONV.
    Regards,
    GSL.

  • How can I have the pricing conditions at the item and header level of the d

    How can I have the pricing conditions at the item and header level of the delivery? There exist "condition" tabs both the header and the item level of the delivery but the contents of the tabs are empty. I'll be happy if you can help me. Thanks in advance....

    Hi
    If you want to have the pricing procedure at delivery level then you need to assign a pricing procedure at delivery level also
    Just go through the path to maintain the pricing procedure at delivery level.
    IMG -> Logistics execution -> Shipping -> Basic Shipping Functions -> Pricing -> Pricing Procedure. for Delivery.
    But can you be more clear if the above one is not your query ?
    Regards
    Srinath

Maybe you are looking for

  • HT4489 iCloud login ID

    A warning box tells me that my login has to be 21 characters or less for iCloud ID. But the email address I use for my Apple ID has 26 characters. How do I get around this?

  • Adjustable fonts for large monitor users

    Hi guys, I'm on an iMac 27", hard to read the info around the thumbs in grid view, please send me a nice 2x binocular or add some feature to edit the font size please, both solution would be very appreciated. Thanks

  • 2 queries to share same selection in 1 workbook

    Dear Experts, I remember is was possible to have 2 queries in 1 workbook and use the same popup selection window for both queries. I forgotten how to do this. Please throw me some clues. Thanks. regards Pascal

  • Dock station just doesn't fit!

    Got my iPhone yesterday and connected my dock station, BUT my phone just doesn't fit very well and I have to hold the phone in quite firm to get it charging! Tried my bossess docking station and the same with his. (and yes we have the correct docking

  • SRM5.0 process Guide

    Hi, We have upgraded our system from SMR4.0  to SRM5.0.We are using classic scenario. The Back-end documents are created in the backend server(R/3). Can somebody let us know the sequence of programs as how the backend documents are created?