Regarding adding new pricing condition using BAPI_SALESORDER_CHANGE

Hi All,
I am trying to add a new pricing condition at item level using Bapi_salesorder_change, but it is not getting updated. I am also doing Bapi_transaction_commit as the next step.
I am passing the sales order number and the Update flag in the header. Tried passing G as the logic switch-pricing and also tried with logic_switch-COND_HANDL = X.
I am passing the data in structure CONDITIONS_IN with the value for item numebr, condition step number, condition count , condition value, currency and unit.
Also I am passing data in CONDITIONS_INX with the required flags set and update flag as 'I'.
The output says that order is changed and saved successfully, but the condition type is not there when i check the pricing coinditions inside the order at item level.Please help.
Regards,
Kaustubh B. Khasnis

Hi,
In the condition tab..
Press the determination analysis button..
There it will show the why the pricing condition type is not added..
Thanks,
Naren

Similar Messages

  • Regarding purchase order pricing conditions using exits or badi

    Hi friends can anybody help me and  let me know the solution.
    Please explain how the change in the pricing condition amount value should update the cost in PO.
    and which EXITS or BADI use for .
    if anybody have the solution send me reply AS SOON AS
    Thanks,
    srinivas

    OK
    But the problem is pricing conditions like transport cost. Because when I do a new purchase order the system use last transport cost and i don´t want it.
    What I want (if possible) with infoupdate is:
    - Update ( PBXX & PB00)
    - Don´t update (other conditions like transport).
    Thanks....

  • ECS: New Pricing condition for purchase order on item level

    Hello Experts,
    we use SRM 5.0 with the extend classic scenario.
    We customized a new pricing condition (absolute discount), which we want to use in a purchase order and added it to the calculation schema.
    condition type:
    Application     BBP                      
    Source system LOCAL
    Usage           PR
    Condition Type  ZRBT
    Access Seq.     01CT
    Condition class       discount                  
    Calculat. Type    fixed amount
    Condit.category
    Rounding rule  commercial
    manual has priority
    item level
    delete
    amount/percent
    UoM
    Scale Base Type   quantity
    Check stat             none       
    Max. No. Dimens    no scales
    We see the condition type and can choose it in the transaction which is used to create a po.
    But when we choose it from the drop-down box it isn't added to the calculation.
    Regards,
    Sven

    Hello Sven,
    Thank you very much for posting the OSS note solution for your issue.
    I had similar issue and finally was able to resolve it after reading your post.
    regards
    Vinod

  • Create pricing condition using BAPI_CUSTOMERQUOTATION_CHANGE

    Hi ,
    I have a requirement to update  quotation pricing data is condition exists i.e if pricing is already exists , if pricing is not exists it has to create a new pricing condition with the given information .
    I am able to update the information using  BAPI_CUSTOMERQUOTATION_CHANGE if pricing condition exists ,if pricing condition  not existing its not working as expected.
    Please guide me..
    code i have written
    *Conditions
          lt_conditions_in-itm_number = it_quot-posnr.
          lt_conditions_in-cond_type = c_zill.
          lt_conditions_in-cond_value = it_quot-kbetr.
          lt_conditions_inx-cond_count = 1.
          APPEND lt_conditions_in.
          lt_conditions_inx-itm_number = it_quot-posnr.
          lt_conditions_inx-cond_type = c_zill.
          lt_conditions_inx-updateflag = c_u.
          lt_conditions_inx-cond_value = c_x.
          APPEND lt_conditions_inx.
    Thanks in advance,
    Srinivas.

    Hello Srinivas,
    Use BAPI_QUOTATION_CREATEFROMDATA in the create scenario. Before calling the BAPI check if the quotation exists. If yes, use BAPI_CUSTOMERQUOTATION_CHANGE.
    Regards,
    Ajith

  • New-CMGlobalCondition unable to create New script Condition using Power Shell

    I am using config Manger 2012 and trying to use power shell cmdlet to create a new Global Condition using PowerShell but its not working for me using this
    Do not understand how to use that command any idea.
    New-CMGlobalCondition -DataType Boolean -DeviceType Windows -FilePath file.ps1 -Name test -ScriptLanguage PowerShell
    Error comes as 
    New-CMGlobalCondition : No object corresponds to the specified parameters.
    At line:1 char:1
    + New-CMGlobalCondition -DataType Boolean -DeviceType Windows -FilePath file.ps1 - ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Microsoft.Confi...onditionCommand:NewGlobalConditionCommand) [New-CMGlobalCondition], I 
       temNotFoundException
        + FullyQualifiedErrorId : ItemNotFound,Microsoft.ConfigurationManagement.Cmdlets.AppModel.Commands.NewGlobalConditionCommand

    Hi,
    What's your version of SCCM? I ran this command line on SCCM 2012 R2 CU2.
    It seems SCCM 2012 R2 CU2 fixed New-CMGlobalCondition cmdlet issue.
    "The New-CMGlobalCondition cmdlet incorrectly requires use of the
    -WhereClause parameter."
    Description of Windows PowerShell changes in Cumulative Update 2 for System Center 2012 R2 Configuration Manager
    Best Regards,
    Joyce

  • Steps to Increase / adding New Table Space using BR TOOLS

    Hi
    Can Anyone Tell me the Step by Step Process for Increasing / Adding New Table Space using BRTOOLS.
    Any Demos/Blogs will be appreciated.
    Thanks in Advance.
    Rg
    Dan

    Hi Dan,
    <u><b>Adding a datafile using BRTOOLS</b></u>
    1) su – <b>ora<sid></b>
    2) start <b>brtools</b>
    3) Select option <b>2 -- Space management</b>
    4) Select option <b>1 -- Extend tablespace</b>
    5) Select option <b>3 --Tablespace name (specify tablespace name) and say continue(c- cont)</b>
    6) Select option <b>3 – New data file to be added and return</b>
    7) Select option <b>5 -- Size of the new file in MB (specify the size of the file) and say continue</b>
    regards,
    kanthi

  • New pricing condition update for sales order

    Hi All,
    We need to insert new pricing condition for existing sales order.Could you please sugest any bapi or function module to
    update new pricing condition type.
    Thanks
    Mohit

    One reason to use program is that then the business can be 100% that all the sales orders are "updated"
    (maybe) & if anything goes wrong; The SAP consulting company - who created the program - is to be blamed / is accountable.
    In short business wants to be 100% sure that update has taken place for ALL s orders.
    Is that correct Mohit?
    Edited by: Typewriter on Jun 24, 2011 9:27 AM

  • Delete pricing condition using FM crm_order_maintain

    Hi experts
    I need to delete an order pricing condition using the FM crm_order_maintain but i can't do it....
    somebody can help me with the code for do this?
    Thanks in advance
    Marco

    Do one thing,,,
    Go to CRMD_ORDER
    Open the transaction in change mode
    Go to the Pricing condition tab
    put /H in transaction code box
    delete the pricing condition manually from the transaction
    Put break point on CRM_ORDER_MAINTAIN function module...
    debugger will stop at the function module...
    check the data in all tables at this time and try to pass the same...it should work..

  • Question regarding usage of CRM pricing conditions using date ranges

    Hi,
    I wonder if someone has a suggestion regarding how to set up pricing conditions in CRM to accomplish the following scenario:
    For existing customers we want to “freeze” the product price for certain customers,
    but at the same time let other customers get another prize for the same product
    and period.
    (We have scenarios where the product price changes retroactively, years back in time, but only for those custoemrs that  fulfill a specific criteria at the time where the prize change was decided to take place..)
    We want the prize to be dependent on the customer status AND when this status was set
    (before a specific date), but there doesn’t seem to be a way to set up pricing
    conditions with date ranges (i e "customer status changed before YYYYMMDD
    renders prize X").
    Since we are talking about quite a lot of customers we do not want to add each and every
    one of them as “individual price items” in the pricing conditions tables.
    Does anyone have an idea regarding how to set this up?
    Thanks
    /Marika Wasserman

    Hi Marika,
    condition records have validity (FROM - TO). Let us assume you have a condition record for product A with 50 EUR per piece and this record is valid from 01.01.2014 until 31.12.2014.
    If you create CRM Sales Order having product A at 4.12.2014 and this date is used as pricing date for the conditon determination, then it will find this condition record with price 50 EUR per piece. This 50 EUR should be the froen price.
    Now how can you achieve that for the same CRM Sales Order another product price is determined for certain customer or a certain customer group?
    The idea is to pass an additional pricing attribute, e.g. customer group. Then you can create a new condition table with this field with the key fields product and customer group. In the access seqeunce first the new condition table is checked and if no record is found, then the second conditon table is checked as shown below:
    Access Sequence ABC
    Access 10: condition table with key fields product + customer group
    Access 20: condition table only key field product
    Instead of customer group you define also any other field. You create your own implementation of the BAdI  CRM_COND_COM_BADI that passes this field with a value to pricing.
    Best regards,
    Baris Yalcin

  • Problem with updating pricing date using BAPI_SALESORDER_CHANGE

    Hi,
    I need to update pricing date on sales order (but only on item level).
    I have been trying to use  BAPI_SALESORDER_CHANGE but nothing changes.Bapi returns no errors, ends with success.
    I hoped that bapi would change not only pricing date but also recalculate things the date affected.
    Here is my code:
    ls_head_inx-updateflag = 'U'.
    ls_bapisdls-pricing = 'C'.
    ls_item-itm_number = sales_order_posnr
    ls_item-price_date = new_price_date
    APPEND ls_item TO lt_item.
    ls_item_inx-itm_number = sales_order_posnr
    ls_item_inx-updateflag = 'U'.
    ls_item_inx-price_date = 'X'.
    APPEND ls_item_inx TO lt_item_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
              EXPORTING
                salesdocument     = sales_order
                order_header_inx = ls_head_inx
                logic_switch         = ls_bapisdls
              TABLES
                return                 = lt_return
                order_item_in     = lt_item
                order_item_inx   = lt_item_inx
    Thanks & Regards,
    Mario

    Mario,
    I run same code as yours and work for me fine, able to update ITEM pricing date.
    I suppose you are using BAPI_TRANSACTION_COMMIT after your BAPI call, then only it will work.
    Also note that VBKD table stores this date for header and item. In my system, there are generally only header rows in that table, but a new item row gets generated when I change the item date with the BAPI to some other date. Also, this BAPI sometimes issues a W message instead of ERROR for something like non-existing items, so carefully check your RETURN table too.
    'Item 000002 does not exist' as WARNING message, so might be considering it as a success.
    If nothing works, try to do the same thing for the same data using VA02 and check . If that works, BAPI will work surely.
    Regards,
    Diwakar

  • Creating new pricing condition type in srm ecs

    Hi Guru's
    I see that there is an option to select the Source system " local" , "other system, eg: R/3" while creating a new condition type in SRM. can you please let me know what is the importance of this? can we determine price in srm using backend pricing conditions? can we invoke the backend pricing procedure from srm and populate the price in SRM PO?
    any helpful info would be appreciated
    regards
    deepu

    Hi Nitin,
    Appreciate your response. Can you please let me know how major development is it? if you can provide highlights that would be helpful. I do understand that we can customize the pricing procedure in SRM. Can you please share if you have any documentation regarding creating new condition types, access sequences, condition records in SRM similar to ECC? it would be appreciated if you can send it to pradeepwsu(gmail) id.
    Thanks in advance
    Deepu

  • 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

  • How to change pricing formula using bapi_salesorder_change

    Hi,
    I have a customer  portal web application developed in .Net from which I will be getting different values which are changes related to a particular sales order item in SAP. One among these values is the pricing formula used with the sales order item. I am using bapi_salesorder_change to update all the values other than the pricing formula. My input to the bapi is the formula id. I am not sure about the field which I have to use in the bapi structures to update the same. Also I don't even know whether I can use the same bapi to do the required task.
    Requesting help ....
    Thanks,
    Siva

    Sir,
    Thank you for your immediate response.
    Actually we are integrating SAP with the customer portal web application. The requirement is in such a way that the customer portal provides the option to change the sale order details both at the header level as well as item level. The fields include Order qty,Delivery date,Partner details,Payment terms,Terms of sale, Pricing formula etc. The front end consists of a Pricing formula drop down which consists of  the formula descriptions (for eg: ZFA1015-LAST LME W/DAY OF CONT. MOTH) with its corresponding ID(ID is nothing but ZFA1015). At the SAP side my RFC should pick it up and update it for the given item. The process is like if we go to VA02 we have an option called MAINTAIN FORMULA from where we can change the formula used with an item. There the formula id is obtained from the formula repository. In here the we already have the Formula ID given by the front end.
    Hope you are clear wtith the requirement..
    Requesting help..
    Thanks,
    Siva

  • Deleting pricing conditions using FM /AFS/VBAK_SALESDOCUMENT_CHANGE

    Hi all,
    following the instructions in oss note 593246 I have succesfully implemented code to delete a discount condition from a sales order using FM /AFS/VBAK_SALESDOCUMENT_CHANGE. But now I also want to delete a condition from a sales order position which has an item which has the AFS 'price by size' characteristic (an item with a shirt for example,  with 10 pieces, which are divided in 3 smalls, 4 mediums and 3 large).
    Using the same code that was succesful earlier, it deletes the discount condition, but also all standard pricing conditions, making the pricing in the order invalid obviously.
    Has anyone else had this problem? And more importantly: has anyone found a way to do this succesfully?
    Thanks in advance
    Arjan

    update:
    setting the condition to value zero is possible I found... so at least I have that option. But deleting would be the tidy solution, so any help is still aprreciated.
    If there is anyone also struggleing with this AFS module and pricing, I can share the code I am using to update to zero or delete (when the material is not price by size-ed.

  • When we clicked on Update for new pricing,condition type is repeated twice

    Hi Friends,
    For new pricing,I clicked on the Update pushbuttion in the conditions tab of sales order,Condition type is repeated twice .So value is increased.I checked in the pricing  analysis,it is showing only once.
    I searched all threads and I tried all the possibilities.
    I checked exclusive indicator,it is correctly checked.
    Condition type manual entries selected as B automatic as priority
    Item condition check box is checked only.
    Mandatory check box is selected in the Pricing procedure for that condition type.
    Anything i missed out .
    Please suggest me how to go.
    Thanks in advance.
    Rgds....VM
    Edited by: vm on Nov 2, 2011 5:55 PM
    Edited by: vm on Nov 2, 2011 5:56 PM

    Condition type is repeated twice
    Ensure that the pricing condition is not maintained for multiple combinations in VK11
    G. Lakshmipathi

Maybe you are looking for

  • My iMac does not find my wifi printer or my Chromecast.

    My iMac does not find my wifi printer or my Chromecast. I was able to ping the chrome cast and printer and I'm able to connect to these devices with my windows computer, iPhone and iPad. I have OS X 10.9.2. I'm able to print by setting up the printer

  • IPod Nano use with USB in vehicle

    I got an 6th gen iPod Nano a few months ago. My car stereo has a USB port so I am able to plug my iPod into my stereo, the iPod menu shows on my navigation screen. Every now and again, the music/volume stops coming through my speakers. I can plug in

  • SchAgr not appear in MD04

    Hi, I have a user, who created a Sales SchAgr but it was not appear in MD04. This is only happened to a few newly created material. What would be missing? Thanks.

  • How do you monitor required JAR(s) being downloaded?

    Hi there, I'm currently re-developing an existing signed applet (Swing / 1.4) to offer advanced image manipulation features. As a result there is a massive increase in the size of download and the amount of JARs to be downloaded from 1 (app 50kb) to

  • File send to FTP

    Hi Friends, I generated a file and i strored in application server, now i want to move the same file into server SAPFTP. could u plz tell me how can I move this file to the servr SAPFTP? thanks in advance. with regards, magesh.s