Max.cond.base value - wrong line totals in Sales Order and Invoice

Dear Experts,
    In my pricing procedure, I have set the field Max.cond.base value as 1 in VK12 (in additional data) for one of my condition type ZR16 . If Max.cond.base value is set as 1 for ZR16 condition type, the value for ZR16 will be considered only for the 1st quantity for that item. All subsequent quantities for that item will not be considered. This works fine in Sales Order and when I enter the same material in 2 line items with qty 1 each, only the first line item considers ZR16 value in total net value and the second line item does not consider the value of ZR16 in the total, which is correct.
    Problem arises when I create individual deliveries and individual invoices for each line item. Although the ZR16 value is not considered in the total for the second line item in the sales order the value is being considered in the invoice which is wrong. I tried various scenarios and found this issue arises only with domestic customer and not with overseas customer. Issue is that the line total value value calculated correctly in sales order is reflecting wrongly in Invoice when I use Max.cond.base value. I am confused if this is a pricing procedure related issue or copy control related. Please share your valuable inputs.
Regards,
Madhavan

I tried various scenarios and found this issue arises only with domestic customer and not with overseas customer
Compare the access sequence combination and condition record in both the above cases and check which one is differing and creating issue.
the line total value value calculated correctly in sales order is reflecting wrongly in Invoice
Again here also, compare the Analysis tab which should be self explanatory to find out the root cause of the issue.
G. Lakshmipathi

Similar Messages

  • Max cond value vs max cond base value

    Hi All,
    What is the difference between
    Maximum condition value & Max condition base value, in the condition records. (VK11,12,13)
    Path - Maximum condition value:-
    VK13 --> condition records --> add sales data --> max cond value
    For Path Maximum condition base value, i cant see the field out there on the screen
    PL help with the differences between the functionality, appreciate, if it is with an example
    Jimit Shah

    Hi Jimit,
    I think it should be ' Condition Base value " and "Max condition value " I may be wrong.
    Conditional base value  When a value is derived for a condition type, based on certain calculation this value is taken as base.
    Condition base value is a concept used in pricing procedure and actual term used is alternate condition base value. This is a formula assigned to a condition type in order to promote an alternate base value for the calculation of the value. If you have to calculate price of a material then you have to have a base value for it. For e.g. if you want to calculate the discount of 10 % for a material then you have to have a base value on which this 10% is calculated. Normally you take the condition value of the base price of the material to calculate the value.
    Max condition  value, Provided that the condition update function is active for a particular condition type, you can create condition records that specify a maximum cumulative value. The system uses the condition value of an item as the basis for the cumulative value.
    You can specify the maximum value when you maintain an existing condition record. The condition update indicator must be maintained in Customizing for Sales for the corresponding condition types.
    For example, specify that a customer receives a 10 USD discount for a particular material up to a maximum cumulative order quantity of 5,000 cases. As the customer places sales orders for the item, the system keeps track of the cumulative value (in this example, the number of cases) and stores this data at the condition record level. Once the cumulative value reaches 5,000 cases, the system automatically deactivates the discount. ( Source help.sap.com )
    To view the cumulative value for a particular condition record:
    Within the condition record, choose Extras > Cumulative values.
    A dialog box displays the cumulative value of sales orders where this condition record was used.
    Thanks/Rajesh
    Edited by: Rajesh Kumar Bhansali on Mar 2, 2011 5:40 PM
    Edited by: Rajesh Kumar Bhansali on Mar 2, 2011 5:41 PM

  • Rounding Off Value is not copying from Sales Order to Invoice

    Hi Experts,
    In Pricing Procedure i maintained DIFF- Rounding Off Condition type with the following Combinations.
    Print:X
    Requirement:13
    Cal Type: 16
    Bas Type: 4
    When i create sales order the system is calculating Rounding Off after saving the sales order.The requirement is that it should shows the rounding off value before saving the sales order.Secondly when i make invoice the rounding off value is not copying from the saved sales order.After i save the invoice in VF02 the rounding off value is coming .
    Regards
    Subhasish

    Cond type DIFF has cond catgory L Generally new when copying. So the value from sales order will not be copied, it will be redetermined in invoice.
    Also rounding off cond is to round the total value which can change in invoice based on the invoice qty.

  • Quantity and Price Totals on Sale Order and Delivery Order

    Dear ABAP Gurus,
    I want to add totals of line items (Quantity and Price) in sale order and delivery order screens. Can you please guide me how to do this. The price can be any from pricing procedure ie exclusive or inclusive price of sales tax.
    regards,
    RSA
    Moderator message : Requirements dumping not allowed, show the work you have already done, thread locked.
    Edited by: Vinod Kumar on Jan 28, 2012 9:23 PM

    Hi,
    Try this :
    IF @transaction_type in ('A','U') AND (@OBJECT_TYPE='22')
    BEGIN
    If exists (SELECT t3.docentry FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry left join POR1 T2 on T2.[U_JONum] = T0.[OriginNum] and  T0.[ItemCode] =  t2.U_SubConItem] INNER JOIN OPOR T3 ON T2.DocEntry = T3.DocEntry WHERE T1.[PlannedQty] <> T2.[Quantity] and  T1.[ItemCode]  = 'subcon' and  T3.DocEntry = @list_of_cols_val_tab_del )
    Begin
    SET @error = 10
    SET @error_message = 'Not allowed to add more than planned'
    End
    End
    Thanks & Regards,
    Nagarajan

  • Maximum Line items in Sales order/ Delivery/ Invoice

    Hi guru's
    Maximum line items(SAP Standard) in the sales document/ Delivery Document / Invoice?
    Thanks and Regards
    Srinivas Kapuganti

    Dear Srinivas
    Why you want in sale order and delivery to restrict the number of line items and it will have no impact.
    For Billing, you can achieve this.  Go to IMG path -- Billing -> Billing Docs -> Country specific features --> Maintain Maximum Number of Billing Items.  There select your sales organization and maintain the number of line items to flow in your billing document. 
    thanks
    G. Lakshmipathi

  • Adding Schedule lines to a sales order

    Friends,
      We have a requirement to clear the old un-delivered scheduled lines from a sales order and then add new schedule lines from a EXCEL file.  We were able to clear the old by putting in a new location.  Then, when we go to enter the new schedule lines, it clears the location, marks the Fixed date and Qty, and enters the delivery dates and confirmed quantities.  We tried using BAPI_SALESORDER_CHANGE, but the schedule_lines table only has the required quantity so when used it increases the order quantity, which is not good.  Is there any Function module that we can call to insert new schedule lines without increasing the order quantity other than using a BDC?  Thanks!

    Pasted below is the BAPI documentation for this parameter.
    "Check Table for Schedule Lines
    Description
    This parameter completes the following two tasks:
    Controls processing functions with the value in the UPDATEFLAG field (change indicator).
    The following entries are available:
    ' ':   Create new schedule lines
    I:     Create new schedule lines
    U:     Change existing schedule lines
    D:     Delete existing schedule lines
    Controls the field entry with check fields
    If the UPDATEFLAG field has been activated, the system only copies those fields to the data parameter that have been filled with 'X'."
    Nabheet

  • Amount Difference in sales order and billing for one line item

    Hi experts,
    User created one sales order with three line items say line item10, line item20
    Line item 30.Line item 10 value is 5024.26 EUR in sales order. He did delivery for three line item and invoiced. But the problem is that the line item 10 value is changed i.e. 5024.28 EUR in Billing and the remaining line item values are correct. All the line items having same item category.
    I asked the user to cancel the invoice and PGI. He did that. And again he created the PGI and Invoice. But the value of line item 10 become 5024.27 EUR and again he cancels the invoice and the PGI. and again he created the PGI and Invoice. Now the value of line item 10 is correct i.e. 5024.26EUR in invoice.
    Note: No changes are carried out from sales order to billing and even in material also.
              I checked copy control settings also all are correct.

    Hi
    I think this is standard SAP issue of rounding the condition records at item level. Can you please share the netvalue for all the three items and the header net value at sales order and invoice level.
    kind regards
    sandeep

  • Selectively Ship only few lines in a Sales Order - 11i

    Hello,
    How do I ship only some lines in a Sales order and not all using API? I am able to do this using STF(Shipping Trax Form).Below is the snippet I have written but it always ends up shipping entire order. What am I missing? Please advise.
    This is on 11i
    changed_attributes (1).delivery_detail_id := 1234
    changed_attributes (1).shipped_quantity := 0
    changed_attributes (x).source_line_id := 12344
    changed_attributes (2).delivery_detail_id := 1235
    changed_attributes (2).shipped_quantity := 66
    changed_attributes (2).source_line_id := 12346
    changed_attributes (x).attribute4 := p_freight;
             changed_attributes (x).attribute5 := p_accessory;
             changed_attributes (x).attribute6 := p_othercost;
             changed_attributes (x).tracking_number := p_waybill;
    --Call to WSH_DELIVERY_DETAILS_PUB.Update_Shipping_Attributes.
             wsh_delivery_details_pub.update_shipping_attributes
                                      (p_api_version_number      => 1.0,
                                       p_init_msg_list           => init_msg_list,
                                       p_commit                  => p_commit,
                                       x_return_status           => x_return_status,
                                       x_msg_count               => x_msg_count,
                                       x_msg_data                => x_msg_data,
                                       p_changed_attributes      => changed_attributes,
                                       p_source_code             => source_code
             COMMIT;
             in_delivery_id := i.delivery_id;
             in_delivery_name := i.NAME;
             IF (x_return_status <> wsh_util_core.g_ret_sts_success)
             THEN
                INSERT INTO LOGFILE
                            (step_id, descr
                     VALUES (1.6, 'delivery attr'
                COMMIT;
                RAISE fail_api;
             END IF;
           end if; 
          END LOOP;
          wsh_deliveries_pub.delivery_action
                                (p_api_version_number        => 1.0,
                                 p_init_msg_list             => init_msg_list,
                                 x_return_status             => x_return_status,
                                 x_msg_count                 => x_msg_count,
                                 x_msg_data                  => x_msg_data,
                                 p_action_code               => p_action_code,
                                 p_delivery_id               => in_delivery_id,
                                 p_delivery_name             => in_delivery_name,
                                 p_asg_trip_id               => NULL,
                                 p_asg_trip_name             => p_asg_trip_name,
                                 p_asg_pickup_stop_id        => p_asg_pickup_stop_id,
                                 p_asg_pickup_loc_id         => p_asg_pickup_loc_id,
                                 p_asg_pickup_loc_code       => p_asg_pickup_loc_code,
                                 p_asg_pickup_arr_date       => p_asg_pickup_arr_date,
                                 p_asg_pickup_dep_date       => p_asg_pickup_dep_date,
                                 p_asg_dropoff_stop_id       => p_asg_dropoff_stop_id,
                                 p_asg_dropoff_loc_id        => p_asg_dropoff_loc_id,
                                 p_asg_dropoff_loc_code      => p_asg_dropoff_loc_code,
                                 p_asg_dropoff_arr_date      => p_asg_dropoff_arr_date,
                                 p_asg_dropoff_dep_date      => p_asg_dropoff_dep_date,
                                 p_sc_action_flag            => p_sc_action_flag,
                                 p_sc_close_trip_flag        => p_sc_close_trip_flag,
                                 p_sc_create_bol_flag        => p_sc_create_bol_flag,
                                 p_sc_stage_del_flag         => p_sc_stage_del_flag,
                                 p_sc_trip_ship_method       => p_sc_trip_ship_method,
                                 p_sc_actual_dep_date        => p_sc_actual_dep_date,
                                 p_sc_report_set_id          => p_sc_report_set_id,
                                 p_sc_report_set_name        => p_sc_report_set_name,
                                 p_wv_override_flag          => p_wv_override_flag,
                                 x_trip_id                   => x_trip_id,
                                 x_trip_name                 => x_trip_name
                                );

    GETWA_NOT_ASSIGNED
    Many threads are there on this error message and you would come to know if you google with this text.  Check couple of threads where  the same topic was discussed
    [Re: GETWA_NOT_ASSIGNED|Re: GETWA_NOT_ASSIGNED;
    [Re: GETWA_NOT_ASSIGNED ABAP Dump|GETWA_NOT_ASSIGNED ABAP Dump;
    Also there are some 20 OSS notes on this error message and you can have a look at the following notes:-
    1)   Note 913679 - VA01: Short Dump GETWA_NOT_ASSIGNED on click of quantity.
    2)   Note 591955 - ABAP runtime error GETWA_NOT_ASSIGNED
    3)   Note 870670 - SD_SALES_DOCU_MAINTAIN_DIALOG termination with GETWA_NOT_***
    4)   Note 141314 - VA02: Dump with 'GETWA_NOT_ASSIGNED'
    thanks
    G. Lakshmipathi

  • Order Quantity total on Sale order

    How can i get all lines total on sale order entry in oracle ebs form like in first line the user entered the quantity 3
    and in second line the user entered the quantity 4 . System should default show 7 at order header or at the bottom of the form.

    Hi Asif,
    If you're just trying to reconcile migrated sales orders with a legacy system, why not pull out the info via SQL+ to Excel ... much easier ... especially if you also hold your legacy sales order number on a header DFF segment - then you could do a VLOOKUP in your s/sheet against an extract from legacy.
    Regards,
    Jon
    SELECT
    ooh.order_number
    , sum(ool.ordered_quantity)
    FROM
    oe_order_headers_all ooh
    , oe_order_lines_all ool
    WHERE 1=1
    AND ooh.org_id = +{ your OU org_id }+
    AND ool.header_id =ooh.header_id
    AND ool.flow_status_code != 'CANCELLED'
    AND ooh.flow_status_code != 'CANCELLED'
    GROUP BY ooh.order_number
    ORDER BY ooh.order_number

  • Alt cal type, alt cond base value

    Hi SAP Gurrus,
    If the interviewer asks, what is alt calc type, alt cond base value , what i have to tell
    Plz tell the def and with small example for
    1.alt calc type ,
    2. alt cond base value ,
    3. Subtotal.
    which is in Pricing procedure.
    2. What is Replenishment Lead time.

    Hello,
    What prashant told in that i will add something like.
    alt calc type u acn give example like rutine no 11 which is used for calculating profit magin.
    base cal type u can give example is 12 or 13 that we use to cal fright. like we cal frieght on wt basis we take base cal type as wt from mmr.
    some detailed info as follows i hope this will help u lot for understanding the same
    Subtotal:
    The value of this field determines where the values of subtotals to be captured i.e. in which table and which field.
    Controls whether and in which fields condition amounts or subtotals (for example, a customer discount or the cost of a material) are stored.
    If the same fields are used to store different condition amounts, the system totals the individual amounts.
    These condition amounts or subtotals are used as a starting point for further calculations. You may, for example, want a subtotal of all the discounts included in the pricing of a sales order.
    Requirement:
    It is a routine that is written by an ABAP consultant according to the business requirement.
    By defining Requirement in condition technique we can restrict the access of condition type.
    To understand the concept, we will take the example of the Rebates. Rebates are to be included during the billing document processing and not in the sales document processing. As rebates are given on the delivered quantity and not on the ordered quantity (in case of cut-off period for rebates).
    For rebates we use the condition types BO01 to BO05, and in the Requirement column we give the value 24 which is "Only in Billing Document".
    This Requirement will ensure that these condition types will appear only during the billing document processing.
    If new Requirements are to be defined we follow the procedure given below.
    Go to T.Code: VOFM. - Maintain Requirements & Formulas
    Click on the "Requirements" in the top menu and then click on "pricing".
    We have a list of requirements, we can ask ABAP consultant to create new requirement based on the client requests.
    And we assign the application type like V - Sales/Distribution etc.
    AltCty - Condition formula for alternative calculation type:
    It is again a Routine that is written by ABAP Consultant.
    It is an alternative formula for the condition type that can be used instead of standard formulas.
    For example, let us take the Profit Margin which can be both + / - , so here this routine will help us in generating the value which can be either + or -. Profit margin is not a condition type so it cannot be classified as +ve or -ve in the V/06.
    Ex.: 950 0 Profit Margin 11.
    So we assign 11 - Profit Margin.
    If new routines are to be defined we follow the procedure given below.
    Go to T.Code: VOFM. - Maintain Requirements & Formulas
    Click on the "Formulas" and then on the "Condition Values".
    We have a list of routines, we can ask ABAP consultant to create new routines based on the client requests.
    And we assign the application type.
    AltCBV - Alternative formula for condition base value:
    Formula for determining the condition basis as an alternative to the standard.
    It is again a Routine that is written by ABAP Consultant.
    It is used as a basis to calculate value of the condition type instead of using it from the "FROM" column.
    Ex.: Freight - KF00.
    Freight is calculated based on weight, volume etc. and not on the base price. In pricing there is no entry of weight from which the value can be referred like we do for discounts using base price. We have to get the value from the Material master.
    In this column we can mention the value as 12 - Gross Weight or 13 - Net Weight.
    During pricing, the system will consider the value that is mentioned in this column and determine the freight based on this value.
    Suppose we have Net weight: 100 kgs and Gross Weight: 150 kgs. And if we mention 13 in this column then the Freight condition KF00 will be calculated using the weight as 100 kgs.
    Replenishment Lead time
    Time needed for production & procurment of item.
    like for ex u  mainatin rlt as 10 days when u put sales order u do avail.check if stock is not there then system cosider RLT for giving confirmed delivery date in future.
    u can maintain it in mmr or even in sales doc type.
    Regards
    nitin

  • Rebate agreement - cond. base value and scale base value

    Hi,
    Good day!
    I just like to ask the possible reason for the <b>cond. base value</b> and <b>scale base value</b> in rebate agreement (path: rebate payments -> verification level) to contain zero values only.
    thanks,
    nerissa

    *

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

  • Difference amount in sales order and billing document (For one line item)

    Hi Experts,
    User created sales order with 3 line items and billing document. but problem is that there is difference in value of sale order and billing only for line item 10. The remaining items values are same in sales order & billing doc.if I check in sales order condition I found that VPRS condition is used and the value is 692.13and the amount is 3245.26in sales order. But if suppose I check the same value in billing doc the value is 0.69 and the amount is 3245.28. Can u suggest me which configuration I have to check for this.
    I also checked change lock but there is no change in sales and billing document & Material
    Regards
    Sunina agarwal

    Morning Sunina
    Now consider this scenario
    Item a - 10
    Item b - 20
    Item c - 30
    and the validity of condition rec for item C is 31st of Jan
    after 31st JAN the record changes or there isn't any.
    In Copy control the pricing type is 'B' i.e., carry out new pricing.
    Now if the document is created in January it will take all the above prices. and this document is then billed in Feb. Now the copycontrol, whilst copying the prices, will predetermine the same.
    Now your task is to check if there was user intervention, check the pricing in order and check what condition types got affected in order and in billing.
    If your scenario is still not amongst the above cases...
    I don't know what to do, if you figure out please let us also know, god know when we would face the same scenario....
    Take care

  • Get the Ship-to-Party from Sales Order and Line item

    Hi all,
    I am developing one report in which I want to get the Ship-to-Party for a particular Sales Order and Sales Order Line item number.
    I can see table VBPA from I can get value of KUNNAR and so on. But my concern is that can the Ship-to-Party differ for different line items for sales Order, if yes how to get that one, any table or any function module?
    In my scenario i found out that ship-to-party only depend upon sales order and partner function not line item.
    please help me..
    regards,
    vikas.

    Hi,
    First step: Customer Creation (T. Code: XD01)
    i) Create Sold to Party (Ordering Party) with Account Group: Sold-to-Party
    ii) Create as many Ship-to-Party and Bill-to Party, if reqd, with Account appropriate Account Groups.
    iii) Match all the Ship-to-party/ Bill-to-Party/ Payer for the respective Sold-to-Party under Tab: Sales Area data, Sub-tab: Partners.
    Second Step: Sales Order Creation (T.Code: VA01)
    i) Enter Sold-to-Party at Header Level.
    ii) Enter Materials (at Line-item level).
    iii) Now, System will pop-up all the Ship-to-Party/ Bill-to Party/ Payer, Matched for the particular Sold-to-Party. Click on appropriate selection.
    OR
    Now, (if option doesn't pops-up) select the line and Double Click on to the same line. it will lead to the next page. Here, Click Tab: Partners
    Now, in Column: Partner Function, search for appropriate Partner: Ship-to-Party or Bill-to-Party or Payer.
    Remember: Sold-to-Party will be non-editable as entered at Header level.
    Repeat the same for Each Line-item.
    Regs,
    Amit K. Yadav

  • Unconfirmed Line items in Sales Orders in TP/VS

    While doing TP/VS process and moving the shipments from C to D status, certain shipments do not move to D status due to the reason that there are unconfirmed line items in the orders and are not converted to deliveries, thus preventing shipment status from changing to D after we trigger u201COLTP Generation of Deliveriesu201D.
    The shipments are assigned a truck type based on the items in B status but once we find that there are unconfirmed / partially confirmed line items, we unassign them from the shipments after u201Cundo shipment releaseu201D. This will lead to many cases where the truck type assigned becomes wrong due to the unassignment.
    We want that such unconfirmed items should not come to APO at all or if they come, they should not be optimized during the run. How is this pssible?
    Sunil Madhogarhia

    Hi Sunil,
    I don't think there is any straight forward way to do this. You may think of User Exit or enhancement in CIF. Other option is rather than just unassigning the deliveries, you can think of deleting the shipment and replanning the same so that system during next planning run automatically selects the appropriate vehicle type
    Regards
    Sandeep Patil

Maybe you are looking for

  • Photoshop CS3 crashes when opening an image

    When I open an image by double clicking on it when Photoshop CS3 is either open or closed, it crashes. If Photoshop is open and I attempt to open an image by going to "file" then "open" is still crashes. If I go to "file" then "new" a new doc will op

  • Is there an up-to-date forum for email coding issues?

    There's a lot of info online but these issues change almost monthly with new webmail "features" that tend to break old format rules. Is there an ongoing discussion group for this?  Or is there a Dreamweaver email perfect plugin? Also, does the Outloo

  • Symbol at the top of my IPone

    There is a symbol at the top of my IPhone that I can't figure out what it is. It is a pad lock centered with a circle and arrow on the end of the line forming the circle. Question: what is that and what does it do? Where could I have found this info

  • How do I keep Windows Data Execution Prevention (DEP) from repeatedly closing Firefox?

    Problem started after I installed the last Firefox update. I will be on line then Firefox is shut down and I get a message in a small window that it was shut down Windows DEP which is a security feature in Vista. After a time lapse of several minutes

  • Query Perfomance - Time, Read Texts

    Hi all, I have an performance issue regarding an BI 7 Webtemplate. Most of the time is used to read texts. Is there a way to speed this up? Due to BIA everything else is nicely fast. 21510 ms: OLAP Frontend Events 55 ms: Nicht zugeordnet  (0) 156 ms: