Pricing: header condition with condition value formula

Hi,
can anyone helps us on the following topic:
- is it possible to enter a conditon value formula for a header condition?
We have created a formula, but it is only executed when we enter the condition on item level.
Our condition settings are:
Cond. class - A
Calculat. type - G
Group condition - X
Header condition - X
Item Condition - X
thanks in advance!

Hello,
we have a breakpoint at the beginning of the formula.
If we enter the condition at item level we reach the breakpoint otherwise (when entering on header level) not.
The question now is, if this is due to configuration settings on condition type or within calculation procedure - or if it is just impossible to have a conditon value formula for a header condition.
thanks

Similar Messages

  • Conditions with 0 value in pricing appears in Price of sls order in ECC 6.0

    Hi All,
    We have upgraded from R/3 4.7 to ECC 6.0.We have a pricing procedure with Condition type VPRS for which the value comes from the valuation segment of the Material master.
    It is a statistical condition.
    In R/3 4.7, if we used a non valuated material, this condition did not appear in the pricing of the sales order as it's value is 0.
    But in ECC 6.0 this condition is appearing in the sales order pricing with 0 value and is showing the red trafic light next to the condition.
    Can anybody please tell if this is standard in ECC 6.0 Or do we need to make some corrections?
    Regards,
    Avinash Gyale

    Hello Avinash ,
    Condition type VPRS - Cost condition can be determined from KOMP-WAVWR-cost in document currency
    ( Subtotal B ) which depends on plant and company code not valuation type  .There are other options also avalibale to set condition subtotal.
    Routines can also be used to calculate cost.e.g routine 4 - to determine cost based on item category configuration , routine 3 - for Foreign currency , routine 7 for domestic etc.
    Please  check and these routines and settings in pricing procedure.
    Regards,

  • Create pricing condition with default value in processing process field

    hi all,
    when i maintain the pricing conditions with vk11 or vk31, i want the price maintained is set default as blocked (the processing status field-KBSTAT). can it be done? i am using 4.6c.

    You should try to use transaction variant
    <i>Transaction variants simplify transaction flow by:
    Inserting default values in fields
    Changing the ready for input status of fields
    Hiding various screen elements and menu functions, or even entire screens
    Adjusting table control settings
    When you create a transaction variant, you run through the transaction in a special mode. In this mode, you decide which elements you no longer need in your transaction and which values should be inserted where. If you choose to hide an entire screen, the system will no longer display that screen in the transaction and will proceed on to the next screen in the series. You can also adjust table control settings and determine the width of columns and the order in which you want them displayed. In tab strips, you can suppress tabs that you no longer need by setting them to invisible.
    You may also create as many variants for a transaction as you desire. One of these variants can be defined as a standard variant. This variant is then valid across all clients. You may also assign different variants to specific users.
    This is done using Variant Transactions. Variant transactions are then places in those users’ user menus instead of the standard transaction. </i>
    To use this : Tools -> Accelerated SAP -> Personalization (transaction SHD0)
    Regards

  • CASE Statement in Where Condition with Multi Valued parameter in SSRS

    Hi All,
    I am little confused while using CASE statement in Where condition in SSRS. Below is my scenario:
    SELECT
    Logic here
    WHERE
    Date IN (@Date)AND
    (CASE
    WHEN NAME LIKE 'ABC%' THEN 'GROUP1'
    WHEN ID IN ('123456', '823423','74233784') THEN 'GROUP2'
    WHEN ABC_ID IS NULL THEN 'GROUP3'
    ELSE 'GROUP4'
    END ) IN (@GROUP)
    So above query uses WHERE condition with CASE statement from @GROUP parameter. I want to pass this parameter as multi- valued parameter and hence I have used CASE statement IN (@GROUP).
    For @Date one dataset will pass the available and default values and
    for @GROUP parameters, another dataset will pass the available and default values.
    But this is not working as expected. Please suggest me where I am making mistake in the query.
    Maruthu | http://sharepoint-works.blogspot.com

    Hi Maruthu,
    According to your description, I create a sample report in my local environment. It works as I expected. In your scenario, if the selected values from the Date parameter contains some of the Date field values, the selected values from the GROUP parameter
    contains some of GROUPS (‘GROUP1’,’GROUP2’,’GROUP3’,’GROUP4’) and the corresponding when statement is executed , then the dataset returns the corresponding values.
    In order to trouble shoot this issue, could you tell us what results are you get and what’s your desired results? If possible, you can post the sample data with sample dataset, then we can make further analysis and help you out.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • BAPI_SALESORDER_SIMULATE Conditions with no value

    When using BAPI_SALESORDER_SIMULATE to get a price for a customer / material the BAPI is returning the conditions however some condition value's and amounts are not returned. This leads to the net price being incorrect.
    I'm passing the following data into the BAPI...
    Header
      doc_type
      sales_org
      distr_chan
      division
      currency
      purch_no
      purch_date
    Item
      material
      target_qty
      req_qty
    Partners
      partn_role = 'WE'
      partn_numb
    Thanks
    Glenn

    It appears the qty of 1 is being interpereted as qty 0,001.

  • Report Painter - how to insert sub header rows with no values

    In a report painter, I am designing a report with several rows with formulas. I need to insert a sub-header row in the middle of the rows. That will not have a value. It shall contain no value, but I am given only options of either insert a row of characteristics or a formula. I need neither of them. Can we have something excel  like feature in report painter (4.6c) just to insert a sub header row? If so how do we get that.
    e.g
    ADMINISTRATIVE EXPENSES (how to insert this row?)
    Account 1 - 10

    Hi,
    try to add a formular row containing a formular like = +x -x.
    Maybe you can use "formatting / row" and use overscores / underscores to get a blank row (underscore one line, overscore the line thats following).
    No other idea...
    best regards, Christian

  • How to display characteristics with filterd values in WebReports

    Hi
    we use webreporting (BI 7.0) for our endusers and have designed a very simple webtemplate. All the characteristics you can see in the "selection window" are displayed in a header section with the values set for each variable. Due to the simplicity of the template we do not want to display all characteristics in the header with all possible filtered values set on any charateristic which are available on the report.
    There is a standard webitem to display these filtered values but we can not use it as it is too large.
    Is it possible to change the apperance of a characteristic (make it bold, or red, or underline if a filter is set) so that the user can see that he have set a filter on any characteristic?
    If not, is it possible to simply display any text on the webtemplate indicating that a filter has been set?
    Any Ideas?
    Best Regards
    Markus

    Hi Anita,
    did you find a solution for this? I have opened a Thread, if you know the answer maybe you could help me out:
    Is there an ALV function similar to the TABLE Row grouping?
    Thanx in advanced!!!
    Kind Regards,
    Gerardo J

  • SD PRICING: How to identify the last call of a Condition Value Formula

    Hello  Experts.
    I'm working on a condition value formula, and because a Group Condition, I need to do a calculation in the last call of the formula. The formula is called 5 times and I couldn't identify any flag to diferentiate the last 3 calls.
    I could use a counter in a static variable per position, but I think there must be another way to identify the last call.
    Thanks in advance and best regards
    Matías

    Hi,
    Define a counter say w_ii type I in your routine.
    Whenever you enter the routine  use 'IMPORT' to get the last value of w_ii. If sy-subrc ne 0 its first time so increment the counter w_ii = w_ii + 1 & 'EXPORT' it. If sy-subrc = 0 check the value of w_ii to decide if it's the last time.If yes do whatever you want to do
    else increment w_ii i.e. w_ii = w_ii + 1 & 'EXPORT' it which in turn will be used during next 'IMPORT'.
    I hope this helps,
    Regards
    Raju chitale

  • IPC Condition value formula to Java

    Hi all,
             I need code the next abap statement for a condition value formula to java in overwriteConditionValue method:
                form FRM_KONDI_WERT_903.
      data: L_XKOMV like XKOMV occurs 0 with header line.
      data: L_KAWRT like XKOMV-KAWRT.
      data: L_KMEIN like XKOMV-KMEIN.
      L_XKOMV[] = XKOMV[].
      read table L_XKOMV with key KOAID = 'B'
                                  KHERK = 'A'
                                  KSTEU = 'A'.
                                 KINAK = 'Y'.
      L_KAWRT = L_XKOMV-KAWRT.
      L_KMEIN = L_XKOMV-KMEIN.
      if L_KAWRT ne 0.
        XKOMV-KBETR = KOMP-NETWR .
        XKOMV-KBETR = XKOMV-KBETR * 1000 / L_KAWRT.
        xkwert = XKOMV-KBETR * L_KAWRT / 1000.
       xkwert = xkwert / 10000.
      endif.
      XKOMV-KMEIN =  L_KMEIN.
      XKOMV-KAWRT =  L_KAWRT.
          But i don't know how translate "read table L_XKOMV with key KOAID = 'B'" to Java.
          Help me please!!

    Hi David,
    Here are some of the steps that may be of some help.
    1. Define the query pair (parameter and value)
    2. Set up the projection of the query result
    3. Call the db engine for the db instance
    4. Run the query and request the result set
    5. Confirm the results
    The sample here comes from the examples found in your IPC install directory:
    /ipc/doc/spe/UserExitsExamples.html#ex1
    The example uses the <u>addAttributeBindings</u> method of the <b>ItemsUserExit</b> to perform the following steps and then calls the <u>determineRelevantAttributesforValueFormula</u> of the <b>PricingUserExit</b> to collect these attributes.  Once available the <u>overwriteConditionValue</u> method is called.
    Here is what I believe you'll need:
    Make sure your user exit is importing the following class reference:
    package userexits;
    import com.sap.sxe.db.*;
    Code:
    // Declare the query pair array
       sys_query_pair[] queryPair = new sys_query_pair[3];
    // Declare the projection to filter the result set
       String[] projection1;
    //  Define the query pairs
        queryPair1[0] = new sys_query_pair("KOAID", "B");
        queryPair1[1] = new sys_query_pair("KOHERK", "A");
        queryPair1[2] = new sys_query_pair("KSTEU", "A");
    //  Define the fields we want to read from table as the projection
        projection1 = new String[]{"KAWRT,KMEIN"};
    //  This is the database access to table
        db _database = _engineUserExit.getDatabase();
        res resultSet = _database.db_read_table("XKOMV",
                                                        queryPair1,
                                                        projection1)
    //  Check whether database access was successful
        if (!res.db_empty_results_p(resultSet)) {
    //  If successful then assign field values
           l_kawrt = resultSet.db_get_row_element_string(0);
           l_mein  = resultSet.db_get_row_element_string(1);
        else {
           log_api.log_write_msg("SPE",
                                            "ItemUserExits",
                                             1,
                                            "Table Query of XKOMV Failed");
           return;

  • Standard Report for PO with Condition Value

    HI MM experts,
    I have checked all the existing standard reports ME2*, cud not find the report which gives the
    condition value means
    Eg; PO made on Pencils - Qty 10 NOs. @ Rs. 1/- (incl tax)
    condition value for the above is Rs.10, in std sap all reports are showing with net price only
    PO no. 45XXXXXXX dt 11.11.2011 - Pencil - qty-10 - Net price Rs.1
    Please let us know is there any Standard report which gives the condition value ie., Rs.10 along with or without Net price.

    Thank you! It is not meeting my requirement.
    I am looking for sap standard report to see the PO value or condition value which is nothing but
    Qty X net price. I do not want to touch the tables.
    for analysis purpose, i want to have the total PO value in any MM Standard Report.
    Today i am visiting every PO and looking at header data for PO value. or at item level Condition value.

  • The Condition value formula is not found in CRM ???

    Hello Al
    l
    We are working on CRM 7.0 , I canu2019t find the Condition Value Formula, Condition Base Formula and Condition u201Crequirementsu201D in the pricing procedures downloaded from the ECC also in the pricing procedures that are standard in the CRM
    I donu2019t know what is the reason for that
    Regards
    Jacopo Françoise

    the IPC should work to make them available

  • How I tie the formula with conditions type?

    Hi,
    Than create the formula with tcode O3I7:
    1) how I tie the formula with conditions type?
    2) how I tie the conditions type with the formula with Calculation Schema?
    help me, please.
    thanks
    Edited by: celeste ziantoni on Feb 5, 2008 6:45 PM

    Hello,
    Pricing formula is created using transaction VOFM. It is tied to the condition types in Pricing Procedure definition in Alternate Calculation Type column. For Pricing procedure, the menu path is SPRO->Materials Management->Purchasing->Conditions->Define Price Determination Process->Define Calculation Schema.
    Thanks,
    Venu

  • BAPI_SALESORDER_CHANGE add new line and conditions with a condition value

    Hi,
    I am using BAPI_SALESORDER_CHANGE to add new lines to a credit memo. All works fine except that I can not seem to put a condition value on the new lines. The condition is created but with a value of 0. I can popluate the condition amount field, KBETR but not KWERT. BAPICONDX seems to only have the COND_VALUE field in it and not CONDVALUE as in BAPICOND. Does anyone have any idea how to do this? In the code below I just want to change the material on the first line of the credit memo and not add the condition. Then add new lines with the the condition.
    lw_order_header_inx-updateflag  = 'U'.
      LOOP AT i_accru INTO wa_accru.
        lv_count = lv_count + 1.
        lv_posnr = lv_count * 10.
    * Order Items
        lw_order_item_inx-itm_number = lv_posnr.
        lw_order_item_inx-material   = 'X'.
        IF lv_count = 1.
          lw_order_item_inx-updateflag    = 'U'.
        ELSE.
          lw_order_item_inx-updateflag    = 'I'.
        ENDIF.
        APPEND lw_order_item_inx TO lt_order_item_inx.
        lw_order_item_in-itm_number = lv_posnr.
        lw_order_item_in-material   = wa_accru-vakey.
        APPEND lw_order_item_in TO lt_order_item_in.
    * Conditions
        IF lv_count <> 1.
          lw_conditions_inx-itm_number = lv_posnr.
          lw_conditions_inx-cond_st_no = '905'.
          lw_conditions_inx-cond_count = '01'.
          lw_conditions_inx-cond_type  = 'ZHIE'.
          lw_conditions_inx-currency   = 'X'.
          lw_conditions_inx-updateflag = 'I'.
          APPEND lw_conditions_inx TO lt_conditions_inx.
          lw_conditions_in-itm_number = lv_posnr.
          lw_conditions_in-cond_st_no = '905' .
          lw_conditions_in-cond_count = '01'.
          lw_conditions_in-cond_type  = 'ZHIE'.
          lw_conditions_in-condvalue  = wa_accru-accru.
          lw_conditions_in-currency   = 'GBP'.
          APPEND lw_conditions_in TO lt_conditions_in.
        ENDIF.
      ENDLOOP.
    * Change the credit memo
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument               = lv_vbeln
          order_header_in             = lw_order_header_in
          order_header_inx            = lw_order_header_inx
    *   SIMULATION                  =
    *   BEHAVE_WHEN_ERROR           = ' '
    *   INT_NUMBER_ASSIGNMENT       = ' '
    *   LOGIC_SWITCH                =
    *   NO_STATUS_BUF_INIT          = ' '
        TABLES
          return                      = lt_return
          order_item_in               = lt_order_item_in
          order_item_inx              = lt_order_item_inx
    *   PARTNERS                    =
    *   PARTNERCHANGES              =
    *   PARTNERADDRESSES            =
    *   ORDER_CFGS_REF              =
    *   ORDER_CFGS_INST             =
    *   ORDER_CFGS_PART_OF          =
    *   ORDER_CFGS_VALUE            =
    *   ORDER_CFGS_BLOB             =
    *   ORDER_CFGS_VK               =
    *   ORDER_CFGS_REFINST          =
    *   SCHEDULE_LINES              =
    *   SCHEDULE_LINESX             =
    *   ORDER_TEXT                  =
    *   ORDER_KEYS                  =
         conditions_in               = lt_conditions_in
         conditions_inx              = lt_conditions_inx
    *   EXTENSIONIN                 =
      IF sy-subrc = 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
      ENDIF.

    Hi Rob,
    Have you managed to solve this issue. If so, could you please share the solution.
    I am also facing similar problem.
    Thanks for your help.
    Anoop

  • Pricing procedure  change the condition value

    Hi,
    My pricing procedure determines the Tax in %basis.Now i have a rewuirement wherein i should be able to enter the amount in AMOUNT COLOUMN in condition tab. This value should be the condition Value for the condition type.
    Now my pricing procedure doesnt allow me to make any changes and the condition type is greyed out. how can i calulate the tax in amount instead of % and be able to enter the value manually?
    Thanks,
    Challa

    Hi Challa,
    Price can be maintained either on percentage basis or on amount basis.
    So you have to make changes in condition type to convert it from percentage to amount.
    Go to IMG u2013 sales and distribution u2013 master data u2013 basic function u2013 pricing u2013 pricing control u2013 define condition type.
    Select maintain condition type from the options.
    Now select your condition type and click on detail.
    Change the calculation type from A (percentage) to B (Fixed amount) and save it.
    Now go to VK11 and maintain the new condition record for that condition type.
    Now create the sales order and go to condition tab and check out the pricing it will be amount.
    Please do this method if you find any difficulty then tell us.
    Regards
    Raj.

  • Pricing error with condition type HI02

    Hi Friends,
    I have problem in pricing procedure for customer hierarchy condition type HI02. I have created the condition node i.e.6222 and assigned customer 1500 and i also maintained the condition record for the same and also put in the pricing procedure as well. Now while i am creating sales order the condition type HI02 is not coming automatically rather i am able to put the same manually. I want the system should pick the condition type HI02 automatically. Please suggest me IMG setting which i sould maintain for customer hierarchy pricing.
    Thanks in advance,
    Bharat B

    Dear Barath
    You are right
    HI02 is a item condition type only used for customer hierarchy discounts and the access sequence for the same is HI02 with condition table 065  that is customer hierarchy/material and the same is positioned in V/07 in the access sequence details in seven consecutive  steps (the same condition table in all the seven steps) but the field in each table differing
    The field in table 065 which is positioned in no 1 is HIENR 01
    The field in table 065 which is positioned in no 2 is HIENR 02
    The field in table 065 which is positioned in no 3 is HIENR 03
    and the most important thing here is exclusive indicator ticked in all the steps exept the seventh step
    That means if at hierarchy level 1 system finds a record then it stops searching
    I have a feeling that your access sequence alignmemt must be wrong somewhere and check for exclusive indicator marking
    HI01 is a item condition type only used for customer hierarchy discounts and the access sequence for the same is HI01 with condition table 064  that is customer hierarchy and the same is positioned in V/07 in the access sequence details in seven consecutive steps (the same condition table in all the seven steps) but the field in each table differing
    The field in table 064 which is positioned in no 1 is HIENR 01
    The field in table 064 which is positioned in no 2 is HIENR 02
    The field in table 064 which is positioned in no 3 is HIENR 03
    and the most important thing here is exclusive indicator ticked in all the steps exept the last step
    That means if at hierarchy level 1 system finds a record then it stops searching
    I have a feeling that your access sequence alignmemt must be wrong somewhere and check for exclusive indicator marking
    Moreover importantly if there is condition type in a PP then if a condition record is maintained if the same is not picked up in sales order then analysis has to give some hint and what is the hint you are getting
    Regards
    raja

Maybe you are looking for