BAPI_SALESORDER_CREATEFROMDAT2 is not carrying out pricing for variant config materials

Hi Guys
I need to create a BAPI to create sales orders coming in through a web service from an external system, for normal materials all works well, but for variant config materials the pricing is not happening, like the way it does when I manually create an order, I don't want to manually pass the pricing condition in BAPICOND as I want the BAPI to dynamically determine the conditions from the access sequence.
While debugging VA01 I found that the control goes to the 'PRICING' function module twice, ones for the main material , and next for all its config materials, the second time it calls the 'PRICING' fm with pricing type 'O'. Here it selects the price for all the variant materials and loads into an internal table vkomv and displays in VA01 the variant materials that we select while creating the order, but in the case of the BAPI call, the control is going only to the 'PRICING' fm call for the header.
I have passed 'V'  in the application parameter and the variant material in the varcond parameter of the BAPICOND structure.
Any idea what I might be missing ??
Thanks
Sameer

Solved by reading the following OSS notes
562124 Configuration change via
549563 BAPI: Filling the configuration structures
567348 – Fill configuration via BAPI

Similar Messages

  • 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

  • Order can not carry out revenues

    Hi Experts ,
                      I was trying to release production order and got message no valuation variant is assigned . Even after assigning it in opn2 and reading PP master data it is showing same error .
    Also while doing goods receipt ( MB1A ) I am getting error : Order 600003045 can not carry out revenues .
    Please guide
    Thanks
    Neal

    Hi neal
    As per controlling config. Planed cost has to be calculated during release are create of prod order. For that you have to assign costing carriant in OPL8. both for Plan and actual . in standard SAP PPP! is costing variant for plan and PPP2 is costing variant for actual.
    For this costing cariant you have to assign costing type and valuation variant.
    Please do it SPRO-Production-SFC-Integration-Order costing
    Do these setting.
    Standard valuation variant for PPP1 is 006 and for PPP2 is 007.
    Regards
    J. Saravan

  • Warning could not carry out all normings

    Hi Experts,
    why would a user get the following error in BEx?
    "warning could not carry out all normings"
    Thanks
    Dave

    Hi,
    I think in this case there might have been norming set up in the query, or that some one accidentally set the norming on in the calculation.  You can always switch this off at the workbook.  At any query cell, right-click > ALL CHARACTERISTICS > NORMALIZE > NO NORMALIZATION.  The error should then go away.
    Cheer,
    Gimmo

  • IDOC / BAPI for Variant Config

    Can anyone help with getting data out of Variant Config detailing all possibilities?  Does an extract/upload BAPI / IDoc exist?
    If not does anyone have any other advice on how to do this?
    Rgds,
    Mark

    Hi,
    If you are looking for Variant Config data of a Sales Order, then the function is VC_I_GET_CONFIGURATION
    The function expects VBAP-CUOBJ as the input
    regards,
    Advait
    Edited by: Advait Gode on Oct 28, 2008 10:16 PM

  • Tables, function modules for variant config data

    Hi all,
    I need to extract characteristics and values for variant material from sales order and production orders. Could you please tell me the relevant tables and function modules?
    Regards,
    Sachin M

    Hi
    Try the following;
    Function module to find values of characteristics - CLAF_CLASSIFICATION_OF_OBJECTS .
    Table # AUSP also holds values of characteristics, you can link to it via table INOB,which should also linked to table KONDH if you are using the same.
    Transaction code for Variant Config - CC04 (Product Structure browser)
    Cheers
    Chandra

  • BI Implementation for variant config

    Hi All,
    if Anyone having experience of BI Implementation for Variant config then please share detail steps with extractor/datasource available.
    Thanks

    Hello Sangita,
    Please check this link
    Implementing Variant Config (VC) as a characteristic in BW 3.5
    Thanks
    Geeta

  • Fields for Super BOM, Work Center & Super Routing for Variant Config

    hi! gurus,
    Please can you give me mandatory fields & values for Super BOM, Work Center & Super Routing for Variant Config
    thank you

    Hi,
    In the Super BOM you need to maintain the object dependencies.
    Workcenter fields are as usual for other production processes.
    Also you can use search option in the forum to view the threads posted in the past. There are many posts related to variant configuration.
    Regards,
    Senthilkumar

  • MI31 - Phy Inv. - how to exclude Variant Config Materials

    For our Variant Cofiguration Materials (parent materials) we don't have stock to count for the physical inventory (MI31).   The company would like to exclude these items from the material selection automatically.
    I've looked around in the IMG  for material master and in physical inventory but I didn't find anything that looked like a "exclude from Phys Inv." indicator or anything that could be used on one of these materials.
    The site could "exclude" the individual material #'s in the selection screen of the MI31 transaction and save a variant or something...but it would have to always be monitored when new materials were created, etc.   Company would like to know if there is a configuration setting of some kind that can exclude a Variant Material from the phys inventory run.
    Any ideas would be appreciated.
    Thanks,
    Jason

    what is wrong with ACC TO STOCK settings?
    Does it exclude to much? more than you expect?
    Unfortunatly you have not done anything in your design to distinguish Variant Config Materials from standard materials.
    Same material type mean probably the same number range as well.
    I have other ways to select, but it depends on the number of materials that are in this material  type.
    How many do you have in that material type, how many do you want to exclude.
    How often will you count?

  • 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

  • The error showing as Fiscal year change has not carried out for the coCd

    Hi all,
    I am facing a very critical situation. My client has the last closed fiscal year as 2006(from 2006 april to 2007 march).For the fiscal yr. 2007(2007april to 2008 march) they have already finalised and submitted the reports made from some parallel software.They now want to tally this report with SAP system and to adjust the SAP system entries as per this report.This work was running fine.But on 01.04.2009 none of the asset reports are running.The error it's throwing is as-
    Fiscal year change not yet made for company code PWAL
    Message no. AB059
    Diagnosis
    You have not yet carried out a fiscal year change for company code PWAL, although the current system date is in the new fiscal year.
    Procedure
    Carry out the fiscal year change for company code PWAL.
    Proceed
    The error is quite understandable.We have to close 2007 and then perform the fiscal year change.But the problem is that the adjustment for the year 2007 is not yet complete.Is it the only solution with me that I should close the yr.2007 and again open it after the fiscal yr. change? If that is done can I take care of the adjustment in the posted depreciation? Or is it possible that the system date can be made back to 31.03.2009(very stupid ask!). The real problem is that my client has mistakely created some assets in the year 2007(by AS91 after changing the take over date) those should have been shown in the next year and also some assets are creted in the year 2008 by the same strange method those should be shown in the year 2007.What I am doing now is deleting these legacy assets and creating the new assets in the correct year.And this process is not yet complete.If I close the year 2007, then the depreciation of these legacy assets will also be posted.Later how can I reverse the effect?Also without seeing the reports I can't make the adjustments.Please suggest/advice.
    Debabrata

    Hi Debabrata,
    You have to do all fiscal year closing steps for 2007. When you reopen it you can do a repeat run for 2007. (You can do the reapeat run only for the new/ changed assets.)
    Try first to test this in an actual test system (document it and do the same in production). Perhaps as you know when 2009 is open I want to close 2008 in one week.  All changes they make in the asset system (change depreciation keys, recalulating,...) can result in postings in 2007 / 2008 what they don't want and later fiscal year problems. You will found a lot off masages about this on the form.

  • Scheduling not carried out in BAPI_PROJECT_MAINTAIN

    Hi All,
    I am facing a problem that while updating the basic start date and basic end date for WBS elements using BAPI_PROJECT_MAINTAIN, the scheduling is not being carried out. Basic dates of WBS Elements are saved properly. But the project start date and end date are not updated accordingly.
    I am passing the following inputs:
    I_PROJECT_DEFINITION = <Project Number>
    I_PROJECT_DEFINITION_UPD-PROJECT_DEFINITION = 'X'.
    I_PROJECT_DEFINITION_UPD-START = 'X'
    I_PROJECT_DEFINITION_UPD-FINISH = 'X'
    I_WBS_ELEMENT_TABLE-WBS_ELEMENT = <WBS element Number>
    I_WBS_ELEMENT_TABLE-PROJECT_DEFINITION = <Proj Defination>
    I_WBS_ELEMENT_TABLE-WBS_BASIC_START_DATE = <Basic Start Date>
    I_WBS_ELEMENT_TABLE-WBS_BASIC_FINISH_DATE = <Basic End Date>
    I_WBS_ELEMENT_TABLE_UPDATE-WBS_ELEMENT = 'X'
    I_WBS_ELEMENT_TABLE_UPDATE-PROJECT_DEFINITION ='X'
    I_WBS_ELEMENT_TABLE_UPDATE-WBS_BASIC_START_DATE = 'X'
    I_WBS_ELEMENT_TABLE_UPDATE-WBS_BASIC_FINISH_DATE = 'X'
    I_METHOD_PROJECT-REFNUMBER = '00000'.
    I_METHOD_PROJECT-METHOD = 'SAVE'.
    I_METHOD_PROJECT-REFNUMBER = '00001'.
    I_METHOD_PROJECT-OBJECTTYPE= 'WBS ELEMENT'
    I_METHOD_PROJECT-METHOD = 'UPDATE'
    I_METHOD_PROJECT-OBJECTKEY = <WBS element number>
    Please let me know the resolution to this problem.

    Hi All,
    I am facing a problem that while updating the basic start date and basic end date for WBS elements using BAPI_PROJECT_MAINTAIN, the scheduling is not being carried out. Basic dates of WBS Elements are saved properly. But the project start date and end date are not updated accordingly.
    I am passing the following inputs:
    I_PROJECT_DEFINITION = <Project Number>
    I_PROJECT_DEFINITION_UPD-PROJECT_DEFINITION = 'X'.
    I_PROJECT_DEFINITION_UPD-START = 'X'
    I_PROJECT_DEFINITION_UPD-FINISH = 'X'
    I_WBS_ELEMENT_TABLE-WBS_ELEMENT = <WBS element Number>
    I_WBS_ELEMENT_TABLE-PROJECT_DEFINITION = <Proj Defination>
    I_WBS_ELEMENT_TABLE-WBS_BASIC_START_DATE = <Basic Start Date>
    I_WBS_ELEMENT_TABLE-WBS_BASIC_FINISH_DATE = <Basic End Date>
    I_WBS_ELEMENT_TABLE_UPDATE-WBS_ELEMENT = 'X'
    I_WBS_ELEMENT_TABLE_UPDATE-PROJECT_DEFINITION ='X'
    I_WBS_ELEMENT_TABLE_UPDATE-WBS_BASIC_START_DATE = 'X'
    I_WBS_ELEMENT_TABLE_UPDATE-WBS_BASIC_FINISH_DATE = 'X'
    I_METHOD_PROJECT-REFNUMBER = '00000'.
    I_METHOD_PROJECT-METHOD = 'SAVE'.
    I_METHOD_PROJECT-REFNUMBER = '00001'.
    I_METHOD_PROJECT-OBJECTTYPE= 'WBS ELEMENT'
    I_METHOD_PROJECT-METHOD = 'UPDATE'
    I_METHOD_PROJECT-OBJECTKEY = <WBS element number>
    Please let me know the resolution to this problem.

  • Substitution not carried out when WBS is added to an existing project......

    Hi, I have created a substitution rule to substitute the investment profile in my projects with a blank for any WBS which is not level one.   I am not sure why this rule does not take effect immediately a new WBS is included.  When I try to carry out the substitution manually, I get the error message 'Error when processing asset under construction (AuC) for WBS element'. Any ideas how I can get this substituion to work when a new WBS is added to an existing project?

    You should use the substitution otherway....
    I believe your project is in REL status and also you have defaulted IM profile in the project, so whenever you create a WBSE, the IM profile is inherited to the WBSE and since it is in REL status, the system will create an AUC based on your IM profile and now you are using substituition to remove the IM profile so this will cause the problem...Instead of this....try this...do not default IM profile in project, and instead of removing IM profile for all WBSE which is not level 1, use substitution to write IM profile in WBSE which is only level 1.

  • Unable to carry out MRP for make-to-order

    Dear All,
    I have a six level Bill of Material ( BOM ) .I am using planning strategy 20 make-to-order producton.
    There is no stock for any of these materials.
    Now when i try to run mrp on sales order basis it is not planning for all the levels of the BOM.The MRP Stops planning at 3 or 4th level.The MRP Run does not give any error.
    Is there any setting to carry out MRP out MRP for all level of BOM?
    I checked the setting in 0001 plant and compared them with my plant they are same.THE SYSTEM IS DOING MRP IN 0001 PLANT FOR ALL LEVELS
    so pleses help me on these issue.
    Regards
    Prashant

    Hy Prashant,
    If you want to carry out MRP with MD50 for all levels of BOM then check this things,
    For all the BOM components (up to last level) check in MRP 4 view of Material master
    - Individual / Collective - It should be Individual or Individual/Collective.
    If is maintain as Collective then you will not get planing Proposals though MD50.
    - For all BOM headers Materials (Fert , Halb ) check in MRP 4 view for MRP for Dependent requirement should be maintain as Dependent requirement are Planned
    Check the above things and if not maintain then maintain it and then run MRP with MD50.You will get the Planing proposals for all levels of BOM.
    Regards,
    Dhaval

  • Text item cateory for variant config item

    Hi,
    I'm trying to create a text type item category for a variant config item. I tried to use the std TEXT but it doesn't work possibly coz its a variant config item. The item category grp assigned to this item is 0002. I used ZVAC and removed relevant for delivery n billing as I don't wnt this item to b relevant for either or even appear in either of those. But it still doesn't work. When i create the order and enter the item and hit enter, it takes the default item category grp for that order type (TEXT item category is added in manual item category field) and it grays out. I cannot make any changes to this item category although the order has not even been saved yet.
    Has anyone done any such config or know anything abt it? Pls help.

    0002 is basically for single-level configuration. So right there you are probably getting the issue, as well as using the standard TEXT item categoty..
    0004 is for multi-level config, which is, I guess, what you are looking for.
    But you will also want some other "Z__" item category defined for what you are looking for - don't use TEXT. I know, then it's a pain 'cuz you have to do all the copy control, but you really need to.
    Now with your new "Z__" make it Non-pricing-delivery-rqmts-picking-delivery-billing-etc.
    It's lots of fun, isn't it !

Maybe you are looking for