Header Value Condition to Distribute at Item

Hi dear all.
Please clarify me about the following issue, already discussed here.
There was already a suggestion proposed which I went through but unfortunately without the expected results. Let me go a little bit more in detail.
How can we configure the condition type such that It would be possible to maintain the Fixed amount at header and then it should automatically distribute equally for the items (Based on quantity).
I will enter the Condition Type ZM00 amount at Header as 2000 EUR and in the items it should automatically split up as :
Ex ->Condition Type Item Qty Amount as it shoulb be distributed.
Item A Qty=1 PC, so ZM00 => 400 EUR
Item B Qty=2 PC, so ZM00 => 800 EUR
Item C Qty=2 PC, so ZM00 => 800 EUR
According the suggestion, I made:
In <b>Control data 1</b> TAB
put calculation type as <b>C</b>
In <b>group condition</b> TAB
<b>active</b> group condition.
By doing so at Custo, running the process, by entering the amount of 2000 EUR at Header, going back the Overview we see the following distribution:
Item A Qty=1 PC, so ZM00 => 2000 EUR
Item B Qty=2 PC, so ZM00 => 4000 EUR
Item C Qty=2 PC, so ZM00 => 4000 EUR
It looks like (at it is actually) that the value of 2000 EUR has been understood as a <b>unit value</b> and not a total value, as it should.
How to make the system understand it by just inputing the value without maintaining "per x units" (in this case would be 5). Actually the unit price is not relevant, only a total value. The quantity would be then just a distributing criteria.
When I enter the value 2000 per 5 (PC) then the result is correct.
You also mentioned the Condition Group activation. Can someone please clarify me what is the logic behind? In fact, the type of materials for which the total value is due to be distributed in this example according, let's say the quantity, is assigned to a specific material group. How is then possible for ZM00 to address its total value to these three items? Remember that there is no condition record maintained for ZM00. He's just a manual entry, decided on that moment.
I really appreciate your prompt reply, as there is some urgency on solving this riddle.
Thanks in advance and Best Regards
Rui Viegas

Hi Pathik.
Regarding the requirements you mentioned I have to say:
There is no sales order. I've created a delivery based on a Project (CNS0). Then I'm trying to create a Pro Forma invoice. Only at this stage the pricing will run.
On the delivery I can have several materials, as I can have more then one material group involved. That's probably were the problem begins. The Group Condition, in this case, can have some problems on identifying which materials to look for. I made what you told me. Anyway, in the ZM00 settings I've place the Group Condition Rotine 003 (Pricing Material Group). It also required me to flag the RoundDiffComp.
After placing the value 2000 EUR under the 'Amount' column, here's the distribution I got:
Item 10 A Qty=1 Net Value = 0
Item 20 B Qty=1 Net Value = 0
Item 30 C Qty=1 Net Value = 2000
Any suggestion?
On the Tab 'Changes that can be made' I have also:
Manual entries 'C'
Delete - X
Amount/ Percent - 'X'

Similar Messages

  • Freight costs in header of purchase order distributed automaticallyto items

    Hi!
    I have entered "Freight" condition at header level (percent) in the purchase order;  if I entered let's say a percent of 20% for freight in header PO, the system puts 20% at every item. What I would like to do is to enter total value  for  "Freight" in header PO and the system to distribute this value to all the items in the purchase order as per their value or per their quantity. I don't want to enter "freight" for every item in the purchase order. Could you please tell me how should I do that?
    Thanks.

    Hello,
    % condition will apply same percentage in all the lines. If it is a flat rate and if 'Group Condition' check box is selected in Condition definition (SPRO), then header freight will be distributed among the lines.
    Thanks,
    Venu

  • 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

  • Header condition with acess sequence, don't want to distribute to item line

    We have defined a condition type as a header condition. We need to use access sequence to automatically determine a invoice fee when creating invoices. We have defined the condition type as a group routine with condition routine 1 (we only want it to show on the invoice). We have marked the "Changes which can be made" as both Header and Item condition. The problem is that when creating the invoice, the header condition distributes on the item lines, our client don't want that cause it will be a problem on the booking side (reporting).
    Is there any way of handling this so that the invoice fee ONLY shows on the header, and don't distribute on lines?
    Link to definition of the condition type:
    <a href="http://img222.imageshack.us/img222/2787/zgebinvoicefeerx4.jpg">Invoice Fee</a>
    Best regards
    Simen.

    Hi Simen,
                   we have a similar requirement. Did you get it resolved. We are currently looking at 2 aproaches
    1.) To leave it as item condition and de-activate it for all but one line and while printing remove from the item and print as seperate line.
    2.) Try and add it as a service item to the invoice.
    In both cases the condition will be mapped to a seperate GL a/c.
    Thanks
    Deep

  • Header Freight Condition Value to be Spread at Item Level

    Dear All,
    There is an issue i am facing.
    We have a freight condition (header level) in a Stock Transport Order
    There are say 6 line items in the STO. The functional requirement is that the Header Freight Condition Value has to be inventorised on the line items in ratio of their value. Also the header freight amount should get spread only on specific line items ( say of a particular material type )
    Please help me with this issue.
    Regards,
    Adams P

    Dear RamShiva,
    I think below forum document will resolve your issue.
    http://scn.sap.com/docs/DOC-43356
    Regards,
    Haresh Panara

  • 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

  • Distribution of Header Freight condition among items

    Dear All,
    I have a Header freight condition which is manual. IWhen I give the Value of this header condition as 100, I want that this value gets distributed amongst the items proportionate to the item value.
    Actually I am seeing that if I give the Header condition value as Rs 100 manually, each line item shows freight value as 100 so if there are 4 line items the totall freight becomes 4 X 100  = 400.
    Please tell me if there is a way to get the header val;ue distributed in the items proportionate to the item values.
    Regards,
    Avinash

    Hi,
    This is very much possible and we have done it in our project very very recently.
    Just mark the condition type as Group condition and then assign the group condition routine 1(overall document) in the condition type.
    Now if you enter the condition type manually at header level, you can see that the value is assigned to all the items proportionately.
    Do let me know if you need any help on this

  • 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

  • Getting header data (condition values) for shipment

    For the shipment VI03, the user wants the header Condition values(KWERT) corresponding to condition values(KSCHL).
    Some of the condition type having values in item level but these condition types are not maintained in header level, so they want for these condition types values should be Zero.
    As I am taking condition values for PRICING function module, it will display at sub-item level values depending on condition values.
    Please let me know is there any functiona module or table exist where header data is directly mainatined(Condition values & Condition type).
    Thanks & Best Regards,
    Mahesh

    First find the related salesorder using:
    VBFA
    VBAK-VBELN = VBFA-VBELV
    LIKP-VBELN = VBFA-VBELN
    VBFA-VBTYP_N = 'J'.
    or
    LIPS
    VBAK-VBELN = LIPS-VGBEL
    After that, with the order, get condition number in VBAK and then search KONV.
    VBAK-KNUMV -> KONV-KNUMV.
    Regards.
    Valter Oliveira.

  • Mapping Header Values to Item Nodes

    Using the graphical mapping editor, I need to map values from a source header level node to a target item level node for each item in the source structure.
    eg.
    <b>Source</b>
    <HEADER>
      <H1>HeaderValue1</H1>
    </HEADER>
    <ITEM>
      <I1>Item1Value</I1>
    </ITEM>
    <ITEM>
      <I1>Item2Value</I1>
    </ITEM>
    <b>Target</b>
    <ITEM>
      <H1>HeaderValue1</H1>
      <I1>Item1Value</I1>
    </ITEM>
    <ITEM>
      <H1>HeaderValue1</H1>
      <I1>Item2Value</I1>
    </ITEM>
    If I map the source <ITEM> node to the target <ITEM> node and the <H1> and <I1> nodes as shown above, the <H1> node only appears on the first item. I need the <H1> node to appear for all target <ITEM> nodes.
    Any assistance would be appreciated.
    Thanks.

    Hi Briggs,
    This Mapping will Solve Ur Problem
    Source Structure:
    MT1  1..1
    Header 1..1
      H1 1..1
    Item 0..unbound
      L1 1..1
    Target Structure:
    MT2
    Item 0..unbound
      H1 1..1
      L1 1..1
    Mapping that solve Your Problem is :
    Item(source)-->Item(dest)
    H1(Source)>copy value (property=0)>H1(dest)
    L1(source)-->L1(source)

  • Call HEADER value into ITEM level in mapping

    HI,
    my structure is as below:
    H
    I
    I
    I
    P
    H
    I
    I
    P
    P
    H
    I
    I
    I
    I
    I
    P
    I have created a sequence in DB and retriving the value from DB using lookup for the header level(H) for feild ID.by using the code:
       //write your code here
       //write your code here
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    try{
                    //container.getTrace().addWarning("Obtaining channel");
                    channel = LookupService.getChannel( businessSystem, communicationChannel);
                    //container.getTrace().addWarning("Channel OK");
                    //Get a system accessor for the channel. As the call is being made to an DB, an DatabaseAccessor is obtained.
                    accessor = LookupService.getDataBaseAccessor(channel);
                    //container.getTrace().addWarning("Accessor OK");
                    //Execute Query and get the values in resultset
                    resultSet = accessor.execute(" SELECT ID.NEXTVAL FROM DUAL");
                    //container.getTrace().addWarning("SELECT OK");
                    //String[] cols = resultSet.getMetaData().getColumnNames();
                    //for (int i=0; i<cols.length; i++){
                    //            container.getTrace().addWarning("Column name: " + cols<i>);
                    for(Iterator rows = resultSet.getRows();rows.hasNext();){
                                    //container.getTrace().addWarning("Result has rows");
                                    Map rowMap = (Map)rows.next();
                                    //container.getTrace().addWarning("Trying to get NEXTVAL");
                                    //Object obj = rowMap.get("NEXTVAL");
                                    //container.getTrace().addWarning("Data received " + obj);
                                    //return obj.toString();
                                    return rowMap.get("NEXTVAL").toString();
                                    //return ((String)rowMap.get("NEXTVAL"));
                    //container.getTrace().addWarning("Result has no rows");
                    throw new RuntimeException("Cannot obtain next service repair ID");
                    //return "-1";
    } catch(Exception ex){
                    container.getTrace().addWarning("Exception " + ex.getMessage());
                    throw new RuntimeException("Cannot obtain next service repair ID", ex);
                    //return "-1";
    finally {
                    try {
                                    if (accessor!=null) accessor.close();
                    catch(Exception e){
                                    container.getTrace().addWarning("Cannot close DataBaseAccessor for service " + businessSystem +
                                                                                    " and comm channel " + communicationChannel + " in getNextID user defined funcion");
    now my requirement is i have my to call the same value of ID feild into ID of I.to represent perticular I is related to so and so Header(H).
    Please suggest me how i can call the value to which is passing to ID(targetfeild) of H and map to ID(targetfeild) of I.
    please provide me UDF code....
    thanks in advance,
    Naveen.

    Use standard function UseOneAsMany (found under NodeFunctions) to populate the Header-value for each of the corresponding Item-segments.
    Input 1 - your header-fields as resulted from DB-lookup
    Input 2 - Item-segment
    Input 3 - Item-segment
    Make sure to set the context for Input 1 so that there are equal number of contexts in Input 1 as 2 & 3.
    -Kenneth

  • Pass link value conditionally to item

    Hi,
    I want to pass the HREF link conditionally to apex item. Please suggest me what are the various methods to do. I am actually doing now in a plsq on load before header process.
    Item Name :P49_LINK
    Begin
    if :P_1D = 20 THEN
    :P49_LINK := ''Sudhir'
    else
    :P49_LINK := ''Sudhir'
    End;This is getting passed as string please suggest me how to pass these condition href link to item.
    Thanks
    Sudhir

    Sudhir_Meru wrote:
    Hi Forgot to mention, I am using Apex 3.2 Version . I don't see this optionMake the item Display As property Display as Text (saves state) or Display as Text (does not save state) as required, instead of Display as Text (escape special characters, does not save state).
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, a tabular form, or a print report query/layout.

  • 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 -- 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

  • 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

Maybe you are looking for

  • Variance Post against in internal orders...

    Hi Experts kindly suggest me on the following requirement 1.Firstly  informing Variance GL account had been created as a cost element 2.When We making the MIRO against CAPEX Purchase Orders if any variances will come system will post these variances

  • Consolidation 4.6b 4.6c

    Hi Guru's, This is the situation we have: In preparation for a project, one of the questions/subjects the client has is to prepare for the legal merger of two of their companies in BeNe. One, is already running in SAP version 4.6c full scope. The oth

  • Ovi chat with yahoo messenger

    hello..just wannt know..is it possibe to add yahoo messenger user on ovi chat??i already tried but seem only can add ovi chat and google talk..thank you.. Buy Original..See Original..

  • Free Newsstand Builds crash on launch

    I've created two separate developer builds of Newsstand enabled Apps (both with with Free Subscriptions enabled) and both quit immediatly upon launch on the iPad. (first gen) The splash screen appears briefly then the app quits immediately. I believe

  • I've just updated my iPad and can't open mime attachments can anyone help in simple English h please?

    I've just updated my iPad and can't open mime attachments can anyone help in simple English h please?