Using Pricing type G in  bapi 'BAPI_SALES_ORDER_CHANGE' .

Req: to redetermine tax condition for the items when the document date in Sales order is change
I changed  DocumentDate from 01.09.2010 to 29.07.2010 or opposite and the tax condition should be redetermine for the items.
In Bapi 'BAPI_SALES_ORDER_CHANGE',  I am passing
2) header structure ,
b) Pricing type 'G' to structure '' and
c) item table with details such as posnr, matnr.
Consider there are 2 items:
Now when I pass only 1 item (supposed item 10) and Pricing type = G , tax condition of both items are redetermined.
I would like the tax condition of only the item passed (i.e item 10) to the item's table should be redermined. Tax condition for item 20 should not be determined.
How could I achieve this?

Hi Sampath,
Thanks for the reply.
I am passing pricing type 'G' in structure 'logic_switch-pricing'.
I could find the pricing type field only in this structure and I think it should be at header level.
My requirement is to change the pricing type of only the selected items.
Thanks & Regards,
Abhishek Singh

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

  • Updating Condition Type from Pricing Type customer reserve 'Z'

    Hi ,
           I've created a sales order using BAPI. Now I want to update the condition type using pricing type 'Z' customer reserve . I'm using BAPI_SALESORDER_CHANGE.
    I'm passing the values as:
      condition-itm_number = '000000'.
          condition-CONDTYPE = 'Z'.
          condition-cond_count = '01'.
          condition-currency = w_temp_itab_so-currency.
         condition-CALCTYPCON = 'Z'.
          APPEND condition.
          conditionx-itm_number = '000000'.
          conditionx-cond_count = '01'.
          conditionx-updateflag = 'I'
          APPEND conditionx.
    But its not getting updated.
    Thanks and regards,
    Jyoti Shankar

    One option is
    you have to execute SE16, input table KONV where you maintain the tax condition type and execute.
    System will populate all SD documents that are having that tax condition type.  There you have to copy the field "Doc. condition" and paste it in VBAK table in SE16 so that you will get all sale orders.
    The other option is
    you need to identify what access sequence is maintained for that tax condition type which you can see in V/06.  Next go to V/07, select this access sequence and execute.  There check what tables are maintained.  For example, in your case, it could be table 110.  So you have to develop a query by table joining A110 and VBAK in SQVI where you can take sale orders based on sales organisation.
    thanks
    G. Lakshmipathi

  • Updating Condition Type based on pricing type in Sales order

    Hi ,
           I've created a sales order using BAPI. Now I want to update the condition type using pricing type 'Z' customer reserve . I'm using BAPI_SALESORDER_CHANGE.
    I'm passing the values as:
      condition-itm_number = '000000'.
          condition-CONDTYPE = 'Z'.
          condition-cond_count = '01'.
          condition-currency = w_temp_itab_so-currency.
         condition-CALCTYPCON = 'Z'.
          APPEND condition.
          conditionx-itm_number = '000000'.
          conditionx-cond_count = '01'.
          conditionx-updateflag = 'I'
          APPEND conditionx.
    But its not getting updated.
    Thanks and regards,
    Jyoti Shankar

    Hi G's
    Iam trying to get my fields hidden based on the conditon type i give, and not in a position make that hidden so, how can be that done,,
    The actual instance is:
    I am having different plants for the company and two plants have different taxation procedure and rest differemt and if i select plant with different taxation procedure the condition type should be supresses only for the particular plant...
    All your Support is Appreciated

  • Milestone billing, the system only allows pricing types D, G and K

    Hi,
    I would like to use pricing type as C Copy manual pricing elements and redetermine the others for Mile stone billing item catagory.(VTFA copy control setup)
    While changing pricing type from G to C in copy control VTFA - ITEM LEVEL, i am getting this beow warning message.
    Milestone billing, the system only allows pricing types D, G and K
    Could you tell what is impact of this warning message?
    Best Regards,
    Chandramohan

    Read OSS Note 102961 - New pricing type for milestone billing plans.
    It looks it used to be error message, until version 4.5A.
    This is just to make sure that the cost conditions are adjusted to the billing percentage rate. By keeping value K you can achieve this.
    Regards,

  • Pricing type of copy control in the IV billing type

    Hi Expert,
       I am facing problem on the interco invoice with IV billing type whereby while we are created a interco Sales order with normal order type ZOR and the condition pricing is as below :
    Customer pricing:
    ZR01 : 4.95 USD (direct material)
    ZR12 : 2.12 USD (Margin)
    Interco pricing (with static value)
    ZI01 : 0.24 USD (BOM cost)
    ZI12 : 4.71 USD (Margin)
    ZI30 : 1.8 USD (Mac sales)
    ZI31: 1.5 USD (Mac VA)
        As per normal that create the D/O and issue to customer invoice with the pricing as per sales order which is correct.
        Now after that we have to issue the interco invoice but the pricing is show as per below:
    ZI01 : 0.24 USD (BOM cost)
    ZI12 :
    ZI30 : 1.8 USD (Mac sales)
    ZI31:
       Question 1. Why the interco billing for ZI12 and ZI31 is unable to copy from sales order. For you information that the
    ZI12 and ZI31 having a scale as same as ZI12 and ZI12 is able to copy to customer invoice.
    customer condition price
    CnTy Material      ReSt S          Scale quantity UoM  Rate Unit per UoM Valid From Valid to
    ZR01 011-103449-01      From              20.000  EA  8.00  USD   1  EA  14.04.2011 31.12.999
                                             100.000      4.95
                                             250.000      4.49
                                             500.000      4.33
    ZR12 011-103449-01      From              20.000  EA  3.43  USD   1  EA  14.04.2011 31.12.999
                                             100.000      2.12
                                             250.000      1.92
                                             500.000      1.86
    Interco price.
    CnTy Condition type       Material      Material                     S          Scale quantity UoM  Rate Unit per UoM Valid From Valid to
    ZI01 BOM Cost(Inter-co)   011-103449-01 Handle Integrator Adjustment                               0.24  USD   1  EA  14.04.2011 31.12.9999
    ZI12 Margin(Inter-co)     011-103449-01 Handle Integrator Adjustment From              20.000  EA  7.76  USD   1  EA  16.04.2014 31.12.9999
         Margin(Inter-co)                                                                 100.000      4.71
         Margin(Inter-co)                                                                 250.000      4.25
         Margin(Inter-co)                                                                 500.000      4.09
    ZI30 Mac Sales(Inter-co)  011-103449-01 Handle Integrator Adjustment                               1.80  USD   1  EA  01.01.2014 31.12.9999
    ZI31 Mac Int VA(Inter-co) 011-103449-01 Handle Integrator Adjustment From              20.000  EA  2.00  USD   1  EA  01.01.2014 31.12.9999
         Mac Int VA(Inter-co)                                                             100.000      1.50
       Question 2. I have try to use pricing type 'B' or 'G' in the copy control(VTFL) are unable to pick up the pricing. Please help to advice.
    Thanks in advice.
    REgards,
    Jennie

    Hi Bheem,
        Do you mean that I have to click on the update button upon the release invoice and select 'C' : "Copy manual pricing elements and redetermine the others" but it is not working also. refer to screen capture below. Please help to advice how to overcome the problem Thanks.
    Regards,
    Jennie

  • 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

  • Pricing type to re dtermine prices at invoice using order value for scales

    Hi ,
      I have requirement to redeterime prices during invoice generation. All conditions should be redetermine but the scale basis should be determined from the order. For e.g if it is a quantity based scale and order is for 500 pcs  and the invoice is only for 300 pcs the system should use 500 to determine the scale value. Is there any copying rule/ field in STEU that can help me achieve this?
    Regards,
    Hari.

    Hi,
    There is not standard functionality for this requirement. If you want this then you have to opt for customed copy routine in pricing type...
    For this u just  take help from ABAper and use the already existing pricing routines A and B by using these two source codes of routines and ask him to create new routine which meets your requirement..
    Regards
    sankar

  • Change the Pricing Type during billing

    We are facing an issue with the rebate conditions which needs to be resolved asap..
    User has created a credit memo request in VA01.
    Credit memo request is created for the change in the Price.
    (Note: Order reason for such specific credit memo requests is ZXX (e.g.))
    Due to price change rebate accruals value is also reduced in proportion to the reduced price.
    The rebate accruals should not be reduced in this case, since there is no material return and rebate condition is quantity based.
    As a solution to this u2013
    We created a new routine AAA and assigned to the rebate condition types in Pricing procedure.
    This routine will function when order reason entered in the Credit memo request is ZXX.
    Therefore all the rebate condition types (assigned with routine AAA in Pricing) will get deactivated in Order Conditions tab.
    This is working correctly in creating credit memo (VA01).
    The issue is u2013
    When the credit memo is created in VF01, these rebate condition types are again activated and accruals are posted.
    This should not happen. Pricing from the CM request (VA01) should get copied in Credit memo (VF01) completely. The same issue
    with VF02..
    Please  suggest a user exit in which the pricing type can be changed during billing..Tried coding in the form
    USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ by changing the Pricing Type KNPRS..But didnt work out..
    Is there any way to meet this requirement. I have checked the user exit RV61AFZA having two forms:
    FORM USEREXIT_PRICING_RULE &
    FORM USEREXIT_PRICING_COPY.
    I would be interested to know how this can be  coded to meet the requirement. Coding displayed will be of great help to
    implement.
    Any pointers / solutions to the issue will be highly appreciated..
    Moderator message - Please do not offer points or rewards
    Edited by: Rob Burbank on Jul 29, 2010 12:34 PM

    Hello Sean
    1) Firstly I don't think the Credit Memo for this case or any case in your situation should be relevant to rebate.  That's becasue your rebate is tied to quantity.  So you should deactivate rebate processing for that Billing Doc type. T Code OVB0. That should close the issue.
    2) Pricing type 'D' in copy control from sales to Billing documents should ensure that Pricing from the CM request (VA01) gets copied in Credit memo (VF01) completely. Why do you need user exits for that? T code VTFA.
    3) If you need to change pricing type selectively for some conditions, then you should configure the condition type with condition category X,Y or Z ( Customer Reserve) and then use USEREXIT_PRICING_RULE (module pool SAPLV61A, program RV61AFZA to ensure that those conditions are copied (or otherwise) from source. But I don't think you need this.

  • How to assign a pricing type to the pricing procedure ?

    Business Scenario : When the prices change from the time the order is taken to the time the invoice is created, how can setup the system to  handle the changes automatically ? 
    I would like to know How to create a pricing type and How to assign a pricing type to the pricing procedure so that I can use the 'new pricing document' function in the sales document and 'Update prices' on the condition screens in the Billing document.
    Thanks for your input in advance.
    Oscar

    Hi !! Oscar,
    1) For pricing type definition you would require the help of a developer.
    2) However, most of the commonly occuring requirements are supplied with  standard SAP.
    You can assign a pricing type to pricing procedure as follows:-
    IMG>S & D >Basic Functions>Pricing>Pricing Control>Define & Assign pricing procedures>Maintain pricing procedure> Here, locate your pricing procedure , in the fourth coloumn using the drop down list, you can assign a pricing type to the pricing procedure.
    Now you can use the 'new pricing document' function in the sales document and 'Update prices' on the condition screens in the Billing document !
    Regards,
    PATHIK
    Message was edited by:
            Pathik Pandya

  • Pricing type in copying control

    Dear all,
    what is used of E pricing type in copying control if i am copying from billing document to return sales document.If i am copying same price from invoice to return document which pricing type will use.
    actually i am using D right now but same pricing is not copied,so instead of this can i use E pricing type.if i'll use E pricing type what will happen.in which condition E pricing type will use.
    regards
    ajit

    actually i did stock transfer from plant to depo.ata that time assassable value of material was like 100.00 where duty will be calculate on the basis of assassable value lie on 100 with 8 percentage value will be 8.00.
    when i create sales order system will pick current price of the material like 110 .00 per quantityl but system calculating excise duty on the 100.00  not on 110.its coming correctlly if i crate sales order.but if i am creating return with reference to invoice this assassable value is not copied & system calculating excise duty on the current price which is 110..which is wrong.
    actully i have maitained assassable value in table for some cutomer & system pickid assassable from that table.thgis table is linkd with 351 Routine in pricing proceduer.if refering any document from invoice to return,everything should be copied nut its not happening.i am facing this problem last 1 month.
    please give me relevent solution.
    regards
    ajit

  • Pricing type in copy control for billing documents

    Hi Experts,
    In copy control for billing documents, there is a pricing type M - copy pricing elements, turn value?
    What is the effect of this pricing type?
    thanks

    Pricing type 'M' is used in copying control - billing document to sales document and in particular for sales document type 'RK' - Invoice correct request.
    Pricing type 'M' is used as 2nd pricing type to correct the field VBRP-WAVWR with +/- sign.
    So in short, for pricing type M, no prices are re-determined, but values are corrected with +/- sign.

  • Pricing type in item category

    Hi,
    Can anyone plz tell me how to use the pricing type in item category?
    also request for telling me, what the pricing type "K" stands for.
    Regards.
    amit

    Dear Amit,
    Pricing type
    Specifies how the system treats pricing data when copying documents.
    At the time of billing, the following pricing types are possible:
    A: Copy pricing elements and update according to scale. The system
    does not determine any new condition types
    redetermines the scale prices for changed delivery quantities
    B: Carry out completely new pricing. The system
    carries out a completely new pricing (manually entered pricing elements are not copied from the reference document)
    redetermines the taxes
    C: Copy manual pricing elements and carry out a new pricing
    for the others. The system
    carries out a new pricing
    copies the manually entered pricing elements
    redetermines the taxes
    Note: You must ensure that all the condition types which can be changed manually are marked with "C" in the "Manual entries" field in the "Changes which can be made screen section. Otherwise, the conditions (both the automatically and the the manually entered ones) could be duplicated and both be active simultaneously.
    D: Copy pricing elements unchanged. The system
    copies the pricing elements unchanged with automatically determined or manually entered surcharges and discounts from the reference document (scales are not read again). This means that the value remains unchanged even if the billing quantity is different to the order quantity
    does not redetermine the taxes
    Copy pricing elements and values unchanged. The system
    copies the pricing elements and values and automatically determined or manually entered surcharges and discounts from the reference document without changing them (scales are not read again). This means that the value remains unchanged even if the billing quantity is different to the order quantity.
    does not redetermine the taxes
    F: Only used within the program
    G: Copy pricing elements unchanged and redetermine taxes. The system
    redetermines the following condition types:
    taxes (condition class D)
    Rebate (condition class C)
    Intercompany billing conditions (condition category I)
    Invoice list conditions (condition category R)
    Condition types with condition category L
    Cost conditions (condition category G)
    Cash discount conditions (condition category E)
    all other condition types are treated as for pricing type D
    H: Copy pricing elements and redetermine freight. The system
    redetermines the following condition types:
    Freight conditions (condition categories B, F)
    Condition types with condition category L
    all other condition types are treated as for pricing type A
    Also what is the use of pricing type "K"?
    K - Adopt price components and cose. Redetermine taxes.
    If you select pricing type as K system will copy the pricing elements(Price ,Discounts And Frieght) and cost from the source document and Taxes will be redetermined i.e taxes will not get copied from the source document.
    I hope it will help you,
    Regards,
    Murali.

  • Additional "Pricing Types"? - I need 3 pricing tiers per product

    Is there a way to add additional pricing types for individual products?  For instance, my client needs 3 pricing types (2 secure). Right now there are pricing types for consumer and wholesaler. We need pricing types for consumer, dealer, and employee. Can we create additional custom pricing types for these?
    The only way i can think to do it is by duplicating each product and their corresponding catalogs twice and putting them in their own secure zone. Although i think this should work, it will be incredibly time consuming with hundreds of products. Not to mention having to make product changes across all three copies. Is there a better way to do this?

    Karl, Although there's still not really a great way to do this we were able to make it work.
    We set up our three Pricing Types like this:
    1. (Consumer)
    We use the Consumer Price Type for this level.
    2. (Dealer)
    We use the Wholesaler Pricing Type for this. You need to set each of these customers as
    At this point I haven't shown you anything you don't already know.
    3. (Employees)
    We setup these customers as wholesalers (like 2). In addition, we give the a 10% catalog discount on all catalogs. This gives them 10% off of the wholesaler discount.
    This isn't a perfect system b/c you can't set the exact price of the 3rd tier but it works.
    I hope this helps.

  • Pricing Type u2018Yu2019 in copy control..

    Hi All ,
    Here Z3P(Item Category) is used for 3rd party orders..
    The Copy Control from LF(Delivery type)/Z3P(Item Category) to F2(Billing type) has Pricing Type u2018Yu2019.
    Thus please let me know how the Pricing Type u2018Yu2019 performs/affects on this Copy Control.
    Short Description of the Pricing Type says only u2018Customer reserve Yu2019 so I cannot understand it at all.
    Can anyone help me...
    Best regards
    Shrinath.

    Hi sangshetty,
    Check OSS notes 24832, it will help you to understand.
    Regards,
    MT

Maybe you are looking for