Use of Buckets in Pricing

Does anyone know how I can automatically default each and every promotion that I define in Pricing, to a new bucket, or its own unique bucket? We have hundreds of promotions, and new ones are created every month. Our order policy is that on an order, if two such promotions qualify, then the second one has to be calculated off the subtotal of the previous one.
It is impractical for me to add a new bucket number to the lookup PRICING_GROUP_SEQUENCE everytime a new promotion is setup in our system.
Any ideas?

I'm sure you could achieve your object by dataloading to the PRICING_GROUP_SEQUENCE lookup and using a forms personalisation from the modifiers form.
The personalisation would need a condition statement to restrict its firing to PRO type modifiers and call a function to read a next-available sequence number for your unique bucket (I'm making the assumption that you use Oracle forms to maintain your modifiers and not the HTML screen or via API - the latter could obviously be coded to apply the same logic).
Your only issue then would be to ensure that your bucket numbers never exceeded the number of rows you had dataloaded to the lookup.

Similar Messages

  • How to make use of customer reserve pricing types in copying control

    Hi All
    Please inform how to make use of 'customer reserve' pricing types like 'X,Y,Z & 1-9' keys in copying control.
    Right now I'm on maintenance & supporting project for european client.  They used pricing type 'Z' for copying condition records from stadard sales order to returns(RE) order.  I wanted to know that what is 'Z' and how it is functioning to resolve one urgent ticket assigned to me.
    Could you please guide me where should I verify its logic.
    Thanks & Regards
    Seshu

    Hi Seshu,
    Pricing type changes will done at user exit level. You may want to look at the user exit USEREXIT_PRICING_RULE (module pool SAPLV61A, program RV61AFZA)
    Also, OSS note 24832 will help you to get an understanding.
    Regards,
    Please reward points if helpful

  • Which T code is used for entring the pricing condition P101 for purchase or

    which T code is used for entring the pricing condition P101 for purchase order

    Hi jitendra ,
    if you are looking for T-codes use:
    SE16 and scan table TSTCT.
    Regards Mario

  • Cannot use paint bucket on 32bit

    i am trying to isolate the chrome ball part in my picture. and I have made a selection around my chromeball and ctrl+shift+i to reverse my selection.
    and then I tried to fill it in with black color using paint bucket and it poped error message that saying it doesn't support 32bit?
    I am following the tutorial on digital tutor and it works according to the tutorial and how come it is not working on my photoshop?

    Yes, the paint bucket doesn't work in 32 bit/channel. Underneath it has some assumptions about the range of the image data that will take a while to resolve.
    But the Fill command works just fine.

  • Help with supply and demand query using monthly buckets

    I'm working on a query bound for Discoverer which pulls the aggregated supply and demand for an item and buckets it into months. So for any given item, I need to show the item, onhand, cost, aggregated supply (planned orders, requisitions, pos), and aggregated demand (planned order demand, jobs) - all bucketed by months.
    The code below works okay to find all of the data for July, but I also need to show August and September. I'm thinking I could use a union but am reluctant because the query already runs kind of slow and I'm not sure if I'm on the right track.
    Database Server
    RDBMS : 10.2.0.3.0
    Oracle Applications : 11.5.9
    -Tracy
    select
          item.inventory_item_id, item.organization_code, item.item, item.description
        , item.make_buy,item.planner_code
        , planned.compile_designator, planned.order_type_text, sum(planned.quantity_rate)planned_total
        , planned.mrp_sugg_due_month
        , sum(job.required_quantity-job.quantity_issued)job_open, job.required_month
        , onhand.total_qoh
        , purchase.item_revision prev, purchase.promised_month, purchase.ship_to_organization_id 
        , sum((purchase.quantity-purchase.quantity_cancelled)-purchase.quantity_received)po_open  
        , req.item_revision rrev, req.destination_organization_id, req.org_id, req.need_by_month
        , sum((req.quantity-req.quantity_cancelled)-req.quantity_delivered)req_open
        , cost.item_cost,cost.cost
    from
    --item--
    (select mtl.inventory_item_id, mtl.segment1 item,mtl.description,decode(mtl.planning_make_buy_code,1,'Make',2,'Buy') make_buy
            ,mtl.organization_id, mtp.organization_code, mtl.planner_code
           ,to_char(add_months(sysdate,+1),'YYYY_MM')month1, to_char(add_months(sysdate,+2),'YYYY_MM')month2
           ,to_char(add_months(sysdate,+3),'YYYY_MM')month3
    from    inv.mtl_system_items_b mtl, inv.mtl_parameters mtp
    where    mtl.organization_id = mtp.organization_id
    )item,
    --planned orders - 3 months --
    (select compile_designator,organization_id,inventory_item_id,order_type_text,nvl(quantity_rate,0)quantity_rate,new_due_date
           ,to_char(trunc(new_due_date,'MM'),'YYYY_MM')mrp_sugg_due_month
    from   apps.mrp_orders_sc_v
    where  order_type_text in ('Planned order','Planned order demand')
    and    to_char(trunc(new_due_date,'MM'),'YYYY_MM') <= to_char(add_months(:Month,+2),'YYYY_MM')
    and    to_char(trunc(new_due_date,'MM'),'YYYY_MM') >=  to_char(:Month,'YYYY_MM')
    )planned,
    --jobs - 3 months--
    (select organization_id,wip_entity_name job, inventory_item_id,concatenated_segments,nvl(required_quantity,0)required_quantity
            ,nvl(quantity_issued,0)quantity_issued, date_required,to_char(trunc(date_required,'MM'),'YYYY_MM') required_month
            ,wip_entity_id,creation_date, wip_job_status
    from    apps.wip_requirement_ops_inq_v
    where   primary_item_id <>inventory_item_id
    and     wip_job_status not in ('Closed','Cancelled','Complete')
    and     to_char(trunc(date_required,'MM'),'YYYY_MM') <= to_char(add_months(:Month,+2),'YYYY_MM')
    and     to_char(trunc(date_required,'MM'),'YYYY_MM') >= to_char(:Month,'YYYY_MM')
    )job,
    --qty onhand--
    (select  inventory_item_id,organization_id,sum(nvl(transaction_quantity,0))total_qoh
    from     inv.mtl_onhand_quantities_detail
    group by inventory_item_id, organization_id
    )onhand,
    -- po - 3 months--
    (select pol.item_id, pol.item_revision, nvl(pll.quantity,0)quantity, nvl(pll.quantity_received,0)quantity_received
          , nvl(pll.quantity_rejected,0),nvl(pll.quantity_cancelled,0)quantity_cancelled,poh.segment1 po_num
           ,pll.promised_date, to_char(trunc(pll.promised_date,'MM'),'YYYY_MM')promised_month
           ,pll.shipment_num,pll.ship_to_organization_id 
    from   po.po_lines_all pol, po.po_headers_all poh, po.po_line_locations_all pll
    where  poh.po_header_id = pol.po_header_id
    and    pol.po_header_id = pll.po_header_id
    and    pol.po_line_id = pll.po_line_id
    and    pol.cancel_flag != 'Y'
    and    pol.item_id is not null
    and    to_char(trunc(pll.promised_date,'MM'),'YYYY_MM')<= to_char(add_months(:Month,+2),'YYYY_MM')
    and    to_char(trunc(pll.promised_date,'MM'),'YYYY_MM')>=  to_char(:Month,'YYYY_MM')
    )purchase,
    --reqs - 3 months--
    (select prh.segment1 req_number,nvl(prl.quantity,0)quantity,nvl(prl.quantity_delivered,0)quantity_delivered
           ,nvl(prl.quantity_cancelled,0)quantity_cancelled
           ,prl.destination_organization_id,prl.org_id,prl.item_id,prl.item_revision,prl.need_by_date
           ,to_char(trunc(prl.need_by_date,'MM'),'YYYY_MM')need_by_month
    from   po.po_requisition_headers_all prh, po.po_requisition_lines_all prl
    where  prh.requisition_header_id = prl.requisition_header_id(+)
    and    nvl(prl.cancel_flag,'N') !='Y'
    and    prh.authorization_status != 'CANCELLED'
    and    to_char(trunc(prl.need_by_date,'MM'),'YYYY_MM') <= to_char(add_months(:Month,+2),'YYYY_MM')
    and    to_char(trunc(prl.need_by_date,'MM'),'YYYY_MM') >=  to_char(:Month,'YYYY_MM')
    )req,
    --cost--
    (select msib.inventory_item_id,msib.organization_id,cqm.material_cost,cic.item_cost
    ,(case when cqm.material_cost=0 then cic.item_cost else cqm.material_cost end) cost, cqm.cost_group_id
    from inv.mtl_system_items_b msib
         ,(select cql.cost_group_id,cql.inventory_item_id,cql.organization_id,cql.layer_quantity,cql.material_cost,mp.organization_code
             from bom.cst_quantity_layers cql, inv.mtl_parameters mp
            where mp.default_cost_group_id = cql.cost_group_id) cqm
        ,bom.cst_item_costs cic
    where msib.inventory_item_id = cqm.inventory_item_id(+)
    and msib.organization_id = cqm.organization_id(+)
    and msib.inventory_item_id = cic.inventory_item_id(+)
    and msib.organization_id = cic.organization_id(+)
    )cost
    where item.inventory_item_id = job.inventory_item_id(+)
    and   item.organization_id = job.organization_id(+)
    and   item.month1 = job.required_month(+)  -- 2009_07 --
    and   item.inventory_item_id = onhand.inventory_item_id(+)
    and   item.organization_id = onhand.organization_id(+)
    and   item.inventory_item_id = purchase.item_id(+)
    and   item.month1 = purchase.promised_month(+)  -- 2009_07 --
    and   item.inventory_item_id = req.item_id(+)
    and   item.month1 = req.need_by_month(+)  -- 2009_07 --
    and   item.inventory_item_id = cost.inventory_item_id(+)
    and   item.organization_id = cost.organization_id(+)
    and   item.inventory_item_id = planned.inventory_item_id(+)
    and   item.organization_id = planned.organization_id(+)
    and   item.month1 = planned.mrp_sugg_due_month(+)  -- 2009_07 --
    and   item.make_buy = 'Buy'
    and   item.item in ('161309040','744L755','150-GFM') --test items --
    group by item.inventory_item_id,item.organization_code,item.item,item.description,item.make_buy,item.planner_code
          ,job.required_month ,onhand.total_qoh , purchase.item_revision,  purchase.promised_month
            ,purchase.ship_to_organization_id  ,cost.item_cost,cost.cost
           ,req.item_revision, req.destination_organization_id,req.org_id,req.need_by_month
           ,planned.compile_designator,planned.order_type_text,planned.mrp_sugg_due_month
    order by item.organization_code,item.item

    Hi,
    Six things:
    (1) Where are the one-to-many relationships between your tables? If a single row in mtl can match two (or more) rows in mrp, and can also match two (or more) rows in wip, then it looks like, when you join both of them them, you'll have a chasm trap, that is, you'll get all the matching rows from mrp paired with all matching rows from wip. Are you sure your existing query is producing the right results?
    Are there one-to-many relationships with the other tables in your original query?
    (2) Are your DATEs always at midnight? If not, avoid using BETWEEN and LAST_DAY for DATE comparisons: otherwise you'll miss everything between 00:00:01 and 23:59:59 on the last day.
    That is, instead of
    and     mrp.new_due_date(+) BETWEEN :Month AND LAST_DAY(ADD_MONTHS(:Month,2))ypou should say
    and       mrp.new_due_date (+)     >= :Month
    and       mrp.new_due_date (+)     <  ADD_MONTHS (:Month, 3)(3) The basic way to pivot the months of mrp_due_date is:
    SELECT    ...
    ,       NVL ( SUM ( CASE
                     WHEN  mrp.new_due_date >= :month
                     AND   mrp.new_due_date < ADD_MONTHS (:month, 1)
                     THEN  mrp.quantity_rate
                    END
               , 0
               )          AS mrp_qty_0
    ,       NVL ( SUM ( CASE
                     WHEN  mrp.new_due_date >= ADD_MONTHS (:month, 1)
                     AND   mrp.new_due_date <  ADD_MONTHS (:month, 2)
                     THEN  mrp.quantity_rate
                    END
               , 0
               )          AS mrp_qty_1When you do this, do not GROUP BY TRUNC (mrp.new_due_date, 'MM').
    The code above does two months: I'm sure you get the idea for how to do more.
    To get dynamic column headings (such as Jun_2009 or "2009-06" instead of the generic mrp_qty_o) requires dynamic SQL. The best way to do dynamic SQL depends on the tool that is producing the query (e.g. SQL*Plus). What are you using? Are you willing to change, if it helps?
    (4) Displaying separate columns from one row as a single column on multiple rows is called unpivoting. How badly do you want to do that? Your query would be simpler and faster if the output had only one row per group (rather than one row for mrp_qty and another row for wip_wty). That one row could have six columns (e.q. June_mrp, June_wip, July_mrp, July_wip, August_mrp and August_wip) instead of three. Depending on your front-end tool, you might even be able to wrap the single row of output so that it always appeared as two rows, each with three columns.
    (5) Sorry I told you to do
    and     mrp.order_type_text(+) in (...)I never use the + outer-join notation any more, so I forgot about the ORA-01719 error. There's no problem having an outer-join condition like that using ANSI notation. (One more reason to switch.)
    (6) As you noticed, this site doesn't like to print the &lt;&gt; inequality operator, even inside tags.
    Use the equivalent != operator instead, when posting on this site.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Best SD userexit to use for checking 'material pricing conditions' (KOMV-KSCHL)?

    Hiya,
    When creating a sales document I'd like to check the material pricing conditions (KOMV-KSCHL), specifically for rate(KBETR), when a material is entered into an order.
    If the Rate value is not as expected then I'd like to raise a pop-up to inform the user.
    I was searching for a userexit to use and I can't find anything that fits my requirement...
    I was therefore thinking of using USEREXIT_PRICING_PREPARE_TKOMP or USEREXIT_PRICING_PREPARE_TKOMK.
    But I thought I'd just check with you experts first.
    Would anyone have any suggestions?
    Thanks in advance!

    Hello Robert,
    I would suggest using 'USEREXIT_PRICING_PREPARE_TKOMP' which is for Item level fields. However, why would the rate be not as expected, is there a limit that you want to set ?
    Also its worth noting that these user-exits get triggered 3-4 times every change is made. You may want to restrict that.
    Another option is to set a flag in a requirement routine for the condition type and use it to send a pop up in User-Exit.
    Rgds,
    Vijay.

  • How to use paint bucket.

    I am trying to change the background color and I USED, to be able to just click on the paint bucket and then click the background with whichever color I wanted.
    For some reason when i click nothing happens... Im getting frustrated. blah
    Please help.

    Something like this:
    1. Use the Rectangular Marquee Tool to draw the rectangular selection
    2. Select the Paint Bucket Tool
        Add a new blank layer
        (so it's easy to change later)
        Click on the foreground color chip in the toolbox and set your color for the fill
        Click inside the selection with the paint bucket tool
        Select>Deselect
    You can use the rulers to see how far an inch is in your document
    (View>Rulers)

  • How to isolate part of my workspace and use paint bucket to fill it with color?

    Here is my situation:  I want to draw a vertical line on the left-hand side of my workspace about an inch away (to the right) from the left edge.   Then I want to fill up that inch-wide column with a particular color.  The end result being that I will have an inch-wide bar of color running vertically down the left side of my project.
    I know this is probably really easy to do but it's been a long time since I had a course in Photoshop.  
    I use PSE 6.  Thanks!

    Something like this:
    1. Use the Rectangular Marquee Tool to draw the rectangular selection
    2. Select the Paint Bucket Tool
        Add a new blank layer
        (so it's easy to change later)
        Click on the foreground color chip in the toolbox and set your color for the fill
        Click inside the selection with the paint bucket tool
        Select>Deselect
    You can use the rulers to see how far an inch is in your document
    (View>Rulers)

  • When I use paint bucket or brushes there is no colour not even black

    I have recently installed Elements 9.0.  I previously had 8.0 and no problems.  If I try to darken skies with a black paintbrush it's all pale and so is my brush icon.  I tried picking bright colours but they don't work, and I tried with the paint bucket and that's the same - no colour.  Can anyone help?

    Thank you - I've just been on and it is already in RGB.  I'm quite 
    bewildered.
    In a message dated 29/01/2011 09:31:02 GMT Standard Time, [email protected] 
    writes:
    Your  document may be in the grayscale color mode.
    Go to Image >Mode and  select RGB  Color.
    MTSTUNER

  • Using Paint Bucket Fill in Selection puts a 1px line down each side...

    I want to fill a selection.  I have a simple rectangle path.  I make the path a selection and fill it with the paint bucket.  I get a line on the left outside the selection:
    Then I get a line on the right inside the selection:
    There's no line at the top and the bottom of the fill is at the bottom of the image.
    This line is only 1px but it's for a web graphic and I am trying to get a pixel-perfect size.
    Can anyone tell me why the behaviour and how to avoid it?
    Thanks
    Martin

    Refine Edges box did it for me!
    I didn't even know about that.  When I had a look it was set to 0% contrast and pushing that up to 100% sorted out the probem for me.
    Thank you very much.
    Martin
    Next on my list is to learn about Shape Layers and Fill Pixels.  Does this never end?

  • Cannot use photo bucket, why wipe out or disable this on restart? Idiots

    On updateing u cancelled my photobucket downloader, installed on advice from the ne,t an worked great. U won't allow compatible addons.
    I had gone to great lengths to find this and cannot find it again. If I am unable to go to photo bucket through u'r browser this seems ridiculous that u r not compatible and disabled out the only compatible set up i had.
    Not only but trying to actually contact Firefox for question or complaint is not possible so why do u waste my time by providing this facility then not receiving or allowing it to be sent?
    'slowontheuptake'

    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/

  • Tax calculation in CRM using R/3 pricing procedure

    Hello Experts
    We are using R/3 pricing procedure to calculate list prices in CRM.
    The condition record for Taxes are maintained for condition type UTXJ in SD which is calling for tax procedure TAXUSJ and condition type JR1. 
    The records are maintained in FTXP.  This is the SAP Standard way of maintaining taxes if external tax software is not used.
    We have downloaded the condition records and condition types in CRM.  The tables have all the required records downloaded from R/3.
    When creating an order in Webshop the tax is not getting calculated.
    The pricing analysis shows that the condition record for UTXJ condtion type is met, but it is not showing the tax maintained for condition type JR1. 
    Have we missed any settings here? 
    If we are using R/3 billling does the TTE needs to be activated for calculating taxes in the webshop?
    If TTE needed to be used for calculating taxes, what are the settings needed to be configured?
    Thanks in advance for the valuable advice.
    Sastri

    Hi Sastri,
    I am facing this problem with TAX Condition Records: Pricing error: Mandatory condition MWST is missing. I am using a R/3 pricing procedure correctly downloaded to CRM.
    You say that you have downloaded the condition records and condition types in CRM. SAP Library says 'Prerrequisites: You have downloaded the tax condition records from SAP ECC'.
    I don't know If my problem is caused because I haven't downloaded any Tax Condition Records. The fact is that I cannot determine which one is the Condition Object to download in R3AS.
    I would really appreciate if you or anyone could tell me which object you did use.
    thanks in advance,
    Pablo
    Edited by: Pablo Rodríguez Mateos on Sep 30, 2009 12:30 PM
    Edited by: Pablo Rodríguez Mateos on Sep 30, 2009 8:59 PM
    Solved!

  • Use of storage bucket profile in APO DP

    I'm trying to clarify the sizing implications of using various buckets in the APO DP storage buckets profile.
    Suppose I have a storage bucket profile 1 consisting of calendar weeks and days, and a profile 2 consisting of weeks only.
    What will be the relative database/memory sizing resulting from these 2 profiles?
    Thanks for any advice...

    Hi,
    As our other friends have mentioned here, just having a storage bucket profile doesnt consume memory, however let us assume you have generated time series objects based on these storage bucket profile, the following example will highlight the memory usage.
    Horizon used -> 2 years.
    No. of Weekly bucket --> 104 or 105
    No. of daily bucket --> 365
    Now if you generate Time Series out of your SBP which contains both daily and weekly, total memory occupied will be 365 +104 = 469 times your number of CVCs
    If you generate time series out of your SBP which contains just weeks, total memory occupied will be 104 times your number of CVCs..
    Hope this helps.
    Thanks
    Mani Suresh

  • How to pass pricing type using BAPI_SALESORDER_CHANGE

    Hi all,
    How will we use BAPI_SALESORDER_CHANGE  to re-price the orders.
    There is parameter LOGIC_SWITCH  which can be used to export the pricing type.
    But what all are the other parameters we should pass?
    Has anybody worked in such a context.?

    Hi , Here is what you should pass to update the pricing with a particular pricing type :
    1)  SALESDOCUMENT = your sales order number
    2) ORDER_HEADER_INX-UPDATEFLAG = 'U'
    3)  LOGIC_SWITCH-PRICING =  "your value"
    4 ) *order_item_in-itm_number = * the item number for which pricing should be triggered
    5) *order_item-inx-ITM_NUMBER   = * the item number for which pricing should be triggered
    6) *order_item-inx-UPDATEFLAG   = * 'U'
    regards,
    Advait

  • Can idoc COND_A04 be used to update/delete existing pricing conditions?

    Hi all,
    I am designing an interface from an external pricing system to SAP, and am currently looking at the COND_A04 idoc as a mechanism to load the prices into SAP.  In testing I've found that this idoc creates pricing conditions very nicely, but I'm wondering if the idoc can also be used to change existing pricing conditons or mark existing pricing conditions for deletion.  Has anyone ever done this with COND_A04?
    I tried deleting an existing condition by populating E1KONH-KNUMH with the condtion record number of the existing condition, and populating E1KONP-LOEVM_KO (deletion indicator) with an 'X'.  Instead of marking the existing condition with the deletion flag, what this did was create a new condition record (same validity period and price) that is marked for deletion.  While functionally this does in fact delete the price (the previous condition is 'overlapped' by the new condition and therefore ignored going forward), it doesn't seem like a clean solution and the resulting change history is very confusing.
    Are there are fields on the idoc that can be set to perform a true change or deletion, vs. simply creating a new condition record???  Any ideas will be most appreciated!
    Thanks,
    Allison

    There could be numerous reasons for the IDoc failure because the message that you are getting is too generic. Btw, Is this the only message you get, check if there are more than 1 status 51 in your IDoc to get some more information.
    Also see the longtext of the message by double clicking on the status message, probably you will get a more comprehensive reason for the failure.
    If nothing of the above helps, try to see the message number and class and see where it is used in the posting program and put a break point at the spot where this message is triggered.
    regards,
    Advait

Maybe you are looking for

  • Resolution problem

    How can I improve the resolution of files?  When clients upload files, they get a resolution warning for prints larger than 5x7.  Never had this problem with Photoshop Elements.  I have increased the file size to largest/100 on export.

  • How do I stop ICal randomly changing my colors?

    So recently (like, a few days recent), my Ical on all of my devices is messing with my colors. I have multiple calendars, for work, class, etc, and now whe I open up ICal on my devices, no matter which one (I have 4) the colors will switch, even when

  • I am currently having trouble with an attached PDF fill-able form created in Acrobat being non savable in Reader

    Hello, I was wondering if you would be able to help me out? I am having trouble with my attached PDF fill-able form, I am creating a form that has a limit of one page so in order for more room in a certain field I have added a Hyperlink to an additio

  • Service Tax Condition Type.

    Hello All,               Can anyone please tell me which table can contain a field for tax condition type. In my PO when i click the invoices button i get the Taxes option in that i have two condition types , am not able to find them out. I tried KON

  • Can the "Import: Store Files" folder list be edited?

    I've searched both this forum and the web for an answer; nothing has turned up. I'm looking for a way to edit the folder list when you "Import" & click on: - Store Files - In their current location I have renamed and reorganized a number of folders o