Carry out new pricing for SO

Hi Guys,
Is there any function module/BAPI to carry out new pricing for sales order.
Somehow my BDC for VA02 is not working and
my bdc does only carrying out new pricing for that order.
This I want to replace with BAPI.
Could you please help me in this regard
Prashant

Hi,
An alternative solution is to use the BAPI to make a general CHANGE to the sales order and let the user exit take care of the repricing.
Calling program :
  ls_order_header_inx-updateflag = 'U'.
    ls_logic_switch-pricing = 'C'.
    ld_bapi_reprice = 'C'.
Memory ID is read in MV45AFZB, form USEREXIT_NEW_PRICING_VBKD
    EXPORT ld_bapi_reprice TO MEMORY ID 'Z_BAPI_REPRICE'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
         EXPORTING
              salesdocument    = p_vbeln
              order_header_inx = ls_order_header_inx
              logic_switch     = ls_logic_switch
         TABLES
              return           = gt_return.
    FREE MEMORY ID 'Z_BAPI_REPRICE'.
    READ TABLE gt_return INTO ls_return
    WITH KEY type = 'E'.
    IF sy-subrc NE 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
                wait = ''. " No wait between orders
    ELSE.
      ls_error-vbeln = p_vbeln.
      ls_error-text =  ls_return-message.
      APPEND  ls_error TO gt_error.
    ENDIF.
MV45AFZB, USEREXIT_NEW_PRICING_VBKD :
DATA : ld_bapi_reprice TYPE knprs.
Memory ID is exported from program ZPSF_01_TOOLKIT_F01
  IMPORT ld_bapi_reprice FROM MEMORY ID 'Z_BAPI_REPRICE'.
  IF NOT ld_bapi_reprice IS INITIAL
  AND sy-subrc IS INITIAL.
    new_pricing = ld_bapi_reprice.
  ENDIF.

Similar Messages

  • Need exit/badi to carry out new pricing(b) for SO coming from CRM...

    Hello Experts,
    We are transferring internet sales orders from CRM to R/3. Now, what I need to do is
    to trigger the 'carry out new pricing' for all the line items. Just like when we click
    the update button in the conditions tab and click on the 'carry new pricing' option even though
    user only displays the sales order in R/3.
    Hope you can help me guys. Thank you and take care!

    No Answer...

  • User-exit for  carry out new pricing while sales order save automatically

    Hi all,
    I need to carry out new pricing while sales order save automatically. Please any one help me to finding proper user-exit to achieve my requirement.
    Thanking You.
    Moderator message: please search for available information.
    Edited by: Thomas Zloch on Jan 11, 2012 12:53 PM

    Pl help.

  • Do not carry out new pricing when plant change in sales order

    Hi,
    I have one z field in additional data tab in sales order. This field store the original plant if anyone has changed plant in Sales order. My requirement is to trigger the pricing in sales order with this old plant. I am not getting any exit for this.
    Suggest me the solution.

    Hi
    In the comments for the subroutine, it says:
    *       Parameter new_pricing controls the new pricing in the calling *
    *       form. It can be filled according the the allowed values       *
    *       of domain KNPRS (Pricing type), for example:                  *
    *       ' ' = no new pricing                                          *
    *       B   = Carry out new pricing                                   *
    *       C   = Copy manual pricing elements and redetermine the others
    So, you must write:
    If VBAP_WERKS NE *VBAP_WERKS.
      new_pricing = 'B'.
    Endif.
    Regards
    Eduardo
    Edited by: E_Hinojosa on Aug 25, 2011 8:21 AM

  • Carry out new pricing when key in access field is changed

    Need automatic update to 'carry out new pricing' when field that is part of key combination is changed.
    The system recognized the change when viewed in analysis, but amount is not updated unless "Update" button is manually pressed.

    hi,
    you sales orders which are already created then you changed the access key. For these order unless you run an update pricing they cannot be updated. Now for the new sales orders which are going to be created if the new key combination matches the sales order criteria then it gets picked up automatically and you dont to do anything.
    as we understand from access sequence setup, we do it frm the most specific to the most general ( while setting up the condition tables ie key combinations), So when a condtion record is found whether new key combination or old if its the relevant one and a condition is found for it, it gets picked up automatically.
    regards
    sadhu kishore

  • Carry out new pricing at invoice

    Hi all,
    My requirement is to carry out pricing at invoice and not copy from sales order.
    For this, I goto tcode VTFL and opened copy control for LF to F1. I changed pricing type from C to B but still system is copying price from order and not carry out new pricing automatically at the time of invoice creation.
    please update that what needs to be done.
    Many Thanks.,
    AI.

    I changed pricing type from C to B
    First please dont post the same question related to an issue in multiple times.
    Coming to the issue, you have to test this by creating a new sale order.  Existing orders will not change once you change the copy controls.  It will have impact only on the newly created documents.
    Last but not least, as for as possible, continue your queries in the other thread and close this one.
    thanks
    G. Lakshmipathi

  • How to Carry out New Pricing in Sales Order userexit

    Hello,
    In userexit save_document_prepare of program MV45AFZZ, I'm adding an entry in XKOMV for a header pricing condition ZD01.  After saving, if I go back into the order and go directly into the line item conditions, the ZD01 does not exists at the item level.  If I navigate the the header conditions and then go back to the items, ZD01 appears as it should.  I believe what is happening is that the header condition is not being distributed to the line items unless New Pricing is carried out.  If I manually enter the ZD01 condiiton instead of relying on the userexit code, everything works fine.  The header condition is properly distributed to the line items.  Therefore, I believe the configuration is correct.  My question is, "How can I programatically trigger New Pricing from a sales order userexit".  Is this possible in SAVE_DOCUMENT_PREPARE or do I need to do it somewhere else.".
    Thank you,

    this problem has been resolved.  The problem was that I was appending the header condition to XKOMV instead of inserting the header condition as the first line in the table.  SAP will carry out the new pricing if the header condition is on the first line.

  • Carry out new pricing by changing item category

    Hi All,
    Is it possible to carry out a new pricing depending on item category. The requirement is when i change the item category it should trigger new pricing procedure. Like example if it is tann one pricing procedure and if it change to another category like ztann it should trigger new pricing procedure .
    I know that  pricing procedure not defined on item category. I tried with the exit form userexit_new_pricing_vbap changing new_pricing. But i dont know what to write in that. I am technical guy . Please share me your idea if any one did this before.
    Regards,
    Madhu.
    Edited by: madhurao123 on Mar 10, 2011 5:54 PM

    Dear Lakshmipathy,
    I have tried the option you have suggested but was unable t o make any progress. I have done the following steps:
    In VKOA I have done the revenue account determination based on Acct Assign Grp: Customer, Acct. Assign Grp: Material, and Item Category. Despite this the correct G/L accounts are not being picked up. Can you please suggest where I may be going wrong.
    The scenario is as follows for all Item categories except ZTNN::
    If Customer and Material are taxable @ 5%VAT then pick G/L1
    If Customer and Material are taxable @ 15% VAT then pick G/L 2
    If Customer and Material are taxable @ 2% CST then pick G/L 3
    If Customer and Material are taxable @ 5% CST then pick G/L 4
    If Customer and Material are taxable @ 15% CST then pick G/L 5
    For Item Category ZTNN:
    If Customer and Material are taxable @ 5%VAT then pick G/L6
    If Customer and Material are taxable @ 15% VAT then pick G/L 6
    If Customer and Material are taxable @ 2% CST then pick G/L 6
    If Customer and Material are taxable @ 5% CST then pick G/L 6
    If Customer and Material are taxable @ 15% CST then pick G/L 6
    Your suggestions would be greatly appreciated.
    Thanks and Regards,
    Rohan Gudavalli

  • Carry out new pricing not working in Me23n

    Dear Experts,
    I am trying to carryout new pricing in purchase order i.e iam going into Item conditions of PO and hit update button on the botton of the conditions tab and select B as the pricing type . The value changes to the new rice and then I save the PO.
    After hitting save the values remain unchanged .
    Please help on this .

    hi,
    you sales orders which are already created then you changed the access key. For these order unless you run an update pricing they cannot be updated. Now for the new sales orders which are going to be created if the new key combination matches the sales order criteria then it gets picked up automatically and you dont to do anything.
    as we understand from access sequence setup, we do it frm the most specific to the most general ( while setting up the condition tables ie key combinations), So when a condtion record is found whether new key combination or old if its the relevant one and a condition is found for it, it gets picked up automatically.
    regards
    sadhu kishore

  • Carry out modification comparison for J_1BV45A first. No changes possible

    Hi, every expert,
    when I change the object J_1BV45A,  It appears the error as below:
    "Carry out modification comparison for J_1BV45A first. No changes possible
    Message no. EU 526
    Diagnosis
    You are trying to edit an SAP object which has already been changed or enhanced in the current system.
    A new version of this object, changed by SAP, has been imported into the system with a Release upgrade.
    The new SAP version has not been reconciled with the modified version.
    System Response
    The system will deny access in change mode or enhancement mode until the objects have been reconciled.
    Procedure
    Run the modification adjustment (SPAU) for the object. If the object is supported by the Modification Assistant, you can adjust it by clicking the stoplight."
    I don't know how to use SPAU to adjust it ?  and I donn't know where is the tab 'stoplight'.
    Anyone could help me how to resolve it ?
    Best Regards,
    Michael

    Dear Michael,
    Could you please tell us that in recent days have you upgraded patch of any SAP component in your system? Please check in your system is there any SAP Note in inconsistent status in your system. You can see the status in tcode SNOTE.
    As per suggessted by Ruchit , please take the help of ABAPers & resolve the issue.
    Let us know the status.
    Thank You.
    Kind Regards,
    Rafikul Hussain

  • Carry out modification comparison for FUNC J_1I7_USEREXIT_CALC_EXC_BASE

    Dear all,
                   i have a concern,i have to implement a user exit in tcode j1iin in the FM J_1I7_USEREXIT_CALC_EXC_BASE .now when i try to bring in change mode it says
    Carry out modification comparison for FUNC J_1I7_USEREXIT_CALC_EXC_BASE first. No changes possible
    ...how do i do the modification comparision. i have checked with SPAU and SE95 tcodes but iam unable to compare.please can anyone provide brief explanation and help?
    Thanks in advance,
    Naren

    >
    naren wrote:
    > Dear all,
    >                i have a concern,i have to implement a user exit in tcode j1iin in the FM J_1I7_USEREXIT_CALC_EXC_BASE .now when i try to bring in change mode it says
    >
    > Carry out modification comparison for FUNC J_1I7_USEREXIT_CALC_EXC_BASE first. No changes possible
    > ...how do i do the modification comparision. i have checked with SPAU and SE95 tcodes but iam unable to compare.please can anyone provide brief explanation and help?
    >
    > Thanks in advance,
    > Naren
    Hi  ,.
    Once You go to SE95 Give the package name as  - J1I2 and Execute .
    If some Note has been applied for the package (Whcih Contains your FM) then it will show following nodes
    Note Corrections
    With Modification Assistant
    Without Modification Assistant
    Appends
    So you need to find under whcih node Your update for FM exits .It must be Visible in red .
    Now goto Menubar >>Goto >>Modification Adjustment .
    once you adjust ,the FM should become Editable .
    Regards,
    Rajesh

  • PO new pricing for selected custom condition types

    Hi Experts
    We have certain custom pricing conditions determined through condition records.
    Periodically these conditon records undergo changes (new rates maintained).
    We would like to have redetermination of new prices for the custom conditions for all the open POs.
    Is it possible to have this function for the conditons types which undergo changes.
    Thanks
    ramSiva

    Hi ;
    You can filter open PO's with a selection parameter WE01 in ME2N.
    After that , go to MEMASSPO tcode , copy open PO's. And, update conditions with header or item EKPO-EBELP or EKKO-KNUMV.
    Transformation :
    KONV-KNUMV = EKKO-KNUMV.
    KONV-KPOSN = EKPO-EBELP.
    Regards.
    M.Ozgur Unal

  • Carry out modification comparison for REPS  first.No changes possible.

    Hi all,
          Can anybody help me out. I am new to upgrade project. I have made all the adjustments in SPAU, but left out with one object.
         I have chosen reset to original for this object. When I want to add  some custom code. It is not allowing me to do so throwing an error saying that " The object is still in upgrade mode." . It is not locked under transport #, but it is stored in smodilog table under my name.
         I am not able to see this object even in SPAU transaction, to correct my actions.
    Thank You in Advance,
    Nirmala.

    Hi Rajneesh,
    please have a look at following link and get a key from SSCR:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c8/19766d43b111d1896f0000e8322d00/frameset.htm
    Regards
    Bernd

  • How to carry out license measurement for PLM Content Server

    Hi,
    Can anyone guide us on how the License measurement will work in case we have deployed the content server on a separte hardware box with AIX and Oracle
    thanks

    Hi
    The database is MaxDB and not oracle as mentioned.
    Thanks

  • Invoice corrections Sales order- New Pricing is not carried out

    Hi All,
    waiting for some one to guide me in a right way...
    I have Scenario where creating a invoice correction request with reference to Invoice document.New pricing is not carried in debit line item even though i changed the pricing date as current date for the line item
    When i copied with the invoice document, 2 new line items are created with a same price conditions.
    1st line item is a credit and 2nd line item is a debit item.
    I need to do a price adjustment in debit line. So i maintained a new pricing record for the material to carry out the price.
    To achieve this in customizing VTAF (billing to sales) I have  tried multiple options  as below in  2nd pricing type field as B,C,D,E and F
    2nd Pricing type  - B Carry out new pricing
    C     Copy manual pricing elements and redetermine the others
    D     Copy pricing elements unchanged
    E     Adopt price components and fix values
    F     Copy pricing elements, turn value and fix
    But still the new pricing is not carried out.I tried to manually change the Pricing date in the line item level, still the new price is not updated in the order.
    I have seen SAP Help in below link the Debit line can update with correct price point 3 in proces flow , check this below link for reference.
    http://help.sap.com/saphelp_46c/helpdata/en/dd/55feeb545a11d1a7020000e829fd11/content.htm.
    Please help...
    Regards,
    Parthiban

    Hello Parthiban,
    I feel you are aware of the effect/functionality of 2nd pricing type.
    In the invoice correction request, two items are automatically created for each item in the invoice to be copied (which you did mention):
    - first item:   credit memo item
    - second item:  debit memo item
    And for invoice correction request, a particular pricing type is needed for the second item.
    So as per standard, you have to use pricing type 'E' for the credit memo item to guarantee that the item will not be changed.
    And you should give a new pricing type to the debit memo item. 
    The system creates a credit or debit memo depending on whether a postive or negative difference is generated.
    So that means
    Pricing type will effect ItemCat Proposal-G2N
    and 2nd pricing type will effect 2ndItemCatProposal-L2N
    Now, make changes in pricing type based on your business requirement.
    I hope this will assist you in understanding.
    Thanks & Regards
    JP

Maybe you are looking for

  • Reader XI, since 11.0.1. i cannot print any more under WIN8

    Since reader XI 11.0.1 I'm not able to print any more. Only the window "Save as" appears. So I can save the document (once more) and that was it. Printing with WIN8 Reader works fine ... but I want to use Adobe Reader to print .. What's wrong? START

  • Problems with Photo Stream on NEW Macbook Air!!

    I can't access Photo Stream on my new Macbook Air (iPhoto Stream is empty!). I have an iPhone and iPad and Photo Stream works on them fine. How can I see photos from their photo stream on my Macbook? N.B. I have enabled ALL Photo Stream settings in b

  • Problem in opening word

    I am trying to open Ms Word with FM "Gui_run". The problem is when the name has a space it can't open it . Is any way to pass this problem ? Thanks in advance !!!! Points will be rewarded !!!!

  • Document Number not being updated

    Hello I am running into this issue at the time of posting any FI document (invoice/payment/reversal). I get an error saying ex: Doc #1900000000 already exists. which is true, that document already exists. the problem is that it is the first number in

  • Oracle Text and Java (jsp)

    Hi, I stored files( pdf,word) in blob column. I created index (INSO_FILTER) and i would like to query the files. String sword="test"; String query = "Select COMPID,CREATED,NAME,CVNUMBER from COMPANYCV" + " where contains(CV,' "+sword+" ') > 0 " ; Sys