Save variant configuration data with BAPI or FM

Hi experts,
I created a PP production order by using a configured material.
I can see internal object number in table AFPO-CUOBJ.
I'd like to change and save a value of characteristics by using ABAP.
Could you tell me it if there is a BAPI or FM to save values of characteristics in variant configuraion?
BR,

you can chnage the variant configuration data using below bapi with strcture    order_cfgs_value      =
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
      salesdocument        
      order_header_in       =
      order_header_inx      =
       TABLES
      return                = return_lt
      order_item_in         =
      order_item_inx        =
      partners              =
      partnerchanges        =
      partneraddresses      =
      order_cfgs_ref        =
      order_cfgs_inst       =
      order_cfgs_part_of    =
      order_cfgs_value      =

Similar Messages

  • Create a production order with variant configurator data

    Hello,
    Can anyone tell me the way to create a production order with variant configurator data. Is there a BAPI ? an IDOC ?
    Is there several steps ?
    I have to create an interface which creates automatically PP orders. The data input is a file.
    Thanks for your help

    Hi,
    There are fews BAPI's available for creation of Production Order. They are:
    BAPI_PRODORD_CREATE
    This bapi will suit to your requirement, as input will be provided from file.
    Others are
    BAPI_PRODORD_CREATE_FROM_PLORD " this converts planned order to production order
    BAPI_PRODORD_CREATE_FROM_REF      " this creats production order considering other production order as reference.
    Hope your query is answered.
    Regards,
    Brajvir

  • Extracting variant configuration data

    Hello,
    I am supposed to extract variant configuration data from of SAP. 
    I´ve looked at the data and tables for class type 300 (KLAH, KSSK, KSML, CAWN) and dependencies like (CUKB, CUKN, CUOB).
    I´ve checked forum topics looked for useful BAPIs, but I still have the necessary knowledge for the task.
    Does anyone have experience with such a task .
    For example extracting configuration a profile data and dependencies?
    Help and hints would be great!
    Best Regards and Thank you,
    Ray Scherer

    Hi Prabhakar,
    Check here...........
    Implementing Variant Config (VC) as a characteristic in BW 3.5
    Regards,
    Vijay.

  • Custom ATP Check using Variant Configuration Data in sales order

    I have a requirement to modify the standard SAP ATP check by including the variant configuration data entered on a item.  Standard SAP does not use/include the characteristics data when doing the ATP. None of the available user exits would allow me to do this.
    The scenario is the client has a configurable product that exist in inventory as one item, base unit as IN2.  The batches that exist in inventory have the characteristics of width and length.  The order data specifies a width and a length, they need the ATP to identify the availability based on the characteristics of the batch.
    The solution was to present the user with a list of batches based on the characteristics that meet the criteria.  The user would then have the option of choosing one of the batches which would mean that the line item would include the batch #.  If the user does not want any of the batches, they could choose to select a Make to Order option, which would change the item category of the item, so that it creates a production order upon saving the order.
    The problem I am having implementing this solution is I have not been able to identify the internal table(s) that contains the characteristics data in SAPMV45A after the configuration screen is called.  If anyone knows where that information is during the sales order processing, it would be greatly appreciated.

    Hello Jean,
    Have you managed to find a solution as yet? I know you have not received any replies but am hoping you were able to resolve the problem as we are facing the exact issue on our project.
    Please let me know,
    Thanks,
    Tanya

  • Accessing a variant configurated transaction thro BAPI?

    Hi,
    The transaction Create Quotation (VA21)has been subjected to variant configuration.
    In case i try to execute the same process with the help of BAPI_QUOTATION_CREATEFROMDATA, to what extent is it possible to replicate this variant configuration. This BAPI does contain Tables like ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF, ORDER_CFGS_VALUE. But documentation abt these tables isnt available.
    Any experience with similar situations?
    Best Regards
    Meesum

    Hi Meesum,
    This problem comes up quite a bit.  Have a look at the following two threads:
    Re: Configure Materials using BAPI
    BAPI_CONTRACT_CREATEFROMDATA - Item Configuration
    Hope that helps.
    Cheers,
    Brad

  • Using ALE to synchronize Variant Configuration data from Production to Dev

    SAP Gurus,
    We are trying to move away from opening our production environment every time with need to add new Variant configuration for products.
    In order to do so, we need to ensure that our development and staging systems are in line with production LO-VC data. We have been looking at a possible ALE solution but I would like to get other suggestions.
    Any thoughts you may have with regards to either pros and cons of ALE, or another solution we may have overlooked.  If your clients are transporting Variant Configuration to production, what method are they currently using to ensure data consistency between environments.
    Our landscape currently has two production environments for two separate business lines but both use LO-VC therefore we would like to standardize the process.
    Thanks and Regards,
    Kevin Webb
    SAP SD Senior Consultant

    Hi Webb,
    General its a complex process to transport VC but for system consistency you can:
    1. do the changes Manually in each system
    2. Use ALE idoc process to transport.
    But ALE transport generally used for fresh VC transport, if the VC already present in transporting system, it may cause inconsistency. Hence if you want to transport some changes then I can suggest you to do MANUALLY.
    But if you are transporting VC freshly in each system, go for ALE.
    try and revert

  • Variant Configuration Data download from R/3 to CRM

    Hello all
    It may be a very dumb question, but I would certainly appreciate an answer.
    We are currently using SAP R/3 4.6c and heavily use VC for configurable products and also for pricing.
    Now we wish to explore the possibility of using SAP CRM 5.0 to enable our sales force to use CRM PCUI to create quotes for configurable materials.
    My questions are as following:-
    1. Is it possible to download all VC related data into CRM from R/3 including pricing? I understand that for different VC object, I will have to use different CRM objects but is it possible? If the data transfer is possible, is it typically done by a middleware resource?
    2. I would also like to confirm that by creating a run time version and Kbase is pre requisite to enable the download to CRM.
    If you could please point me to the appropriate help on this topic, I would really appreciate it.
    Best regards
    Jai

    Hi Gun,
    In your message, You stated
    As recommended by SAP, if we have R/3 link into our CRM
    the best scenario is to get VC product from R/3 into CRM.
    Is there any documentation tjhat backs this up? could you give it to me
    we have  a situation in our company where we have been using a home grown product  that not only lets you configure product bu it also takes the user through a selling experience for example it asks the user if he is interested in buying any accessories for the product and provides options through pop messages and the user can select. this way it takes leads the user  through questionnaires that comes in pop ups to select a product
    we have crm service and ecc implemented and now we need to implement  this feature for the crm sales  piece
    the question is do we go for  PME  or variant config that is already set up in ECC ?
    the link and middle ware set up between ECC and CRM is also available so we can bring the variant configuration from ECC into crm.  but how about the questionnaires and the selling experience that is available  through pop up questionnaires,
    we can set up the selling experience via the Product modeler   but as a company we need to make a decision whether we bring the varinat configuration from ecc and use the selling experience  for the pop up questionnaires that leads customer
    or should we just use sales packages that behaves similarly like varinat configuration and add enahcnements to create the pop- up questionaires
    Could you direct /provide some guidance in this area?
    Sara

  • Variant Configuration data upload

    Hi Gurus
    In Variant configuration is there any standard method followed to upload the data like characteristics,class,object dependencies
    Please give me some detailed Data Uploading tips specific to Variant Configuration
    thanks
    K.Prabakaran

    Hi Prabakaran..,
    As per my knowledge it is not there. these are purly product specific.
    but you can transfer Chracteristics, class, dependencies, configuration profile, dependences, tables, table contents, material master, super bom from one client to another through ALE.
    regards.

  • Connect configuration data with operations

    Hi,
    We have the following design issue that I want your view on.
    We have a number of resources that we should test. We store the configuration data in xml files and read the data into resource objects.
    So the Resource class contains a reference to a ConfigurationData object ( see below).
    //Not the complete class content but just to illustrate the
    public class Resource {
    private ConfigurationData data;
    public Resource(ConfigurationData data){
    this.data = data;
    public ConfigurationData getConfigurationData(){
    return data;
    //Return resource type X,Y,Z .....
    public String getType(){
    return data.getType();
    So there will be a number of instances of resource objects since we have many different types of resources.
    So in the code we get all the resources like:
    Resource [] resource = ResourceManager.getAllResources();
    So now to the issue we have and want to discuss:
    On all resources we would like to perform operations like:
    - boot()
    - setup()
    - config()
    - setupssh()
    there will be more operations in the future....
    So we have a simple NodeOperation class for this:
    public abstract class NodeOperation{
    public void boot(){
    //impl code
    public void setup(){
    //impl code
    public void config(){
    //impl code
    public void setupssh(){
    //impl code
    But not all operations will work on all resources. So the idea we have is to create subclasses for each type ( X,Y,Z) of resource where we define:
    public class XNodeOperation extends NodeOperation{
    public void setupssh(){
    throw new UnsupportedOperationException();
    We have designed an object called node that will contain a resource object.
    pulbic class Node {
    private Resource resource;
    public Node (Resource resource){
    this.resource = resource;
    It is on this class that we will make operations on like:
    Node node = new Node(resource);
    node.setupssh();
    How can we make sure that XNodeOperation class is used for Node of Type X when
    type:
    node.setupssh();
    br,
    //mike

    ok if I have two classes like:
    public class NodeX  implements Bootable{
        pulblic NodeX(Resource resource){
           this.resource = resource;
       public void boot(){
          //impl of boot
    public class NodeY implements Bootable,Upgradable {
        pulblic NodeY(Resource resource){
           this.resource = resource;
        public void boot(){
          //impl of boot
        public void config(){
           //impl of setup
        public void setup(){
           //impl of setup
    } So when I have a resource of type X then should I create the NodeX? Is there a simple way of doing this? Should I use a Factory to create the different subclasses ( subclass of Node)?
    Just a small note. What if resource X and Z have the same impl. of the boot() how shall I handle that? Do I need to make the impl. twice?
    br,
    //mike
    Edited by: meandmycode on Dec 11, 2012 1:14 AM
    Edited by: meandmycode on Dec 11, 2012 1:15 AM

  • How Variant Configuration data stored with Sales Order

    Hi,
    I have created Sales Order with Variant Material. I have entered different Characteristic for that materail. I want to make report for these characterisctics and its values, but I am not able to get how these data stored in the system against every sales order.
    Please guide me for tables relationships and if there is any Function module to achieve same thing.
    Regards
    Bhavin Shah

    Use FM VC_I_GET_CONFIGURATION to read the configuration. Input is field vbap-cuobj.
    Regards,
    John.

  • Create Material Master Data with BAPI

    Hi,
    I don't know using of BAPI. I want using BAPI_MATERIAL_SAVEDATA bapi for creating material master data for Basic Data1, Basic Data2, Purchasing and MRP views. Does anybody can help me ?
    Thank you
    Good night

    Hi,
    Please refer to the documentation below:
    BAPI_MATERIAL_SAVEDATA
    Short Text
    Create and Change Article Master Data
    Functionality
    You use this method to create new material master data or to change existing material master data. The data on a material can be transferred for each call.
    When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.
    When changing material master data, you need enter only the material number.
    In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first be supplied with data by the calling program. An indicator must also be set for each of these fields so that the data is written to the database by the method. This requires the calling program to supply the corresponding field with the indicator in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain any language-dependent texts (MAKT, MLTX), International Article Numbers (MEAN), or tax classifications (MLAN). Several data records for a material can be created in these tables.
    If a structure contains fields for units of measurement (such as structure CLIENTDATA, field BASE_UOM), language indicators (such as structure MATERIALDESCRIPTION, field LANGU), or country indicators (such as structure TAXCLASSIFICATIONS, field DEPCOUNTRY), there is always a field of the same name with the ending _ISO. This makes it possible to transfer either the internally used SAP code or a standardized ISO code for the units of measurement, language indicators, or country indicators. ISO codes are converted to an SAP code internally for further processing. The ISO code is used only if the SAP code is not transferred. If you use ISO codes, there must be a unique assignment of the ISO code to the SAP code in the following activities in Customizing for Global Parameters:
    Check Units of Measurement
    Define Countries
    If you want to maintain long texts (basic data texts, internal comments, purchase order texts, material memos, or sales texts) or customer-defined fields for a material, some special conditions have to be observed. They are described in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.
    Parameters
    HEADDATA
    CLIENTDATA
    CLIENTDATAX
    PLANTDATA
    PLANTDATAX
    FORECASTPARAMETERS
    FORECASTPARAMETERSX
    PLANNINGDATA
    PLANNINGDATAX
    STORAGELOCATIONDATA
    STORAGELOCATIONDATAX
    VALUATIONDATA
    VALUATIONDATAX
    WAREHOUSENUMBERDATA
    WAREHOUSENUMBERDATAX
    SALESDATA
    SALESDATAX
    STORAGETYPEDATA
    STORAGETYPEDATAX
    FLAG_ONLINE
    FLAG_CAD_CALL
    NO_DEQUEUE
    NO_ROLLBACK_WORK
    RETURN
    MATERIALDESCRIPTION
    UNITSOFMEASURE
    UNITSOFMEASUREX
    INTERNATIONALARTNOS
    MATERIALLONGTEXT
    TAXCLASSIFICATIONS
    RETURNMESSAGES
    PRTDATA
    PRTDATAX
    EXTENSIONIN
    EXTENSIONINX
    Exceptions
    Function Group
    1001UEB
    Thanks,
    Sandeep.

  • Upload time data with BAPI

    Hi guys,
    anyone now how to use some of the following bapis?
    BAPI_PTMGREXTREMSPEC_INSERT
    BAPI_PTMGREXTREMSPEC_INSWACT
    BAPI_PTMGREXTREMSPEC_INSWCOST
    i need to know how to USE this bapis, i dont know how to insert data using this BAPI, wich parameters are needed.
    tks in advance

    Hi,
    following is from the documentation:
    <b> Import parameters
    AttendanceAbsence</b>
    Attendance/absence
    <b> Description</b>
    For more information on the individual parameter fields, see the data element documentation in the ABAP Dictionary.
    The following data is required:
    Logical system of the original document (Field EXTSYSTEM)
    External application (Field EXTAPPLICATION)
    Document number (Field EXTDOCUMENTNO)
    Personnel number (Field EMPLOYEENUMBER)
    From date (Field FROM_DATE)
    To date (Field TO_DATE)
    Attendance or absence type (Field ABS_ATT_TYPE)
    Start time (Field START_TIME) and End time (Field END_TIME) or
    Attendance/absence hours (Field ABS_ATT_HOURS) 
    What is your problem?
    Regards
    Bernd

  • Save configuration data inside order processing

    Hi all,
    does anyone know how to save configuration data during the order processing but outside the configuration itself?
    Problem:
    - we cannot use the BAPI_CREATE_SALES_ORDER because we are inside the order processing which locks the order for the use of the BAPI.
    - we recieve information after the configuration is finished that has to be saved in the configuration, too. At this point we can no longer use the user-exits of the configuration.
    Do you have an idea whether there is a function module that could be used, or is there any sample coding out there?
    Any help apreachiated.
    Best regards.
    Norman

    you can chnage the variant configuration data using below bapi with strcture    order_cfgs_value      =
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument        
          order_header_in       =
          order_header_inx      =
           TABLES
          return                = return_lt
          order_item_in         =
          order_item_inx        =
          partners              =
          partnerchanges        =
          partneraddresses      =
          order_cfgs_ref        =
          order_cfgs_inst       =
          order_cfgs_part_of    =
          order_cfgs_value      =

  • Creation of sales order with Variant configuration info

    Hi friends,
       I am creating sales order along with Variant configuration data. We have 3 level BOM structure.
    I am using BAPI_SALESORDER_CREATEFROMDAT2 and filling in ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF ORDER_CFGS_VALUE, ORDER_CFGS_REFINST
    tables exactly the same way BAPISDORDER_GETDETAILEDLIST FM returns.
    Sales order is being created with no variant configuration information.(Not in the header level atleast)
      Can any one help me on this.
    Thanks
    Seshagiri

    Updating Variant Configuration data for SO item became little tricky for us in an ongoing implementation. After spending some hours investigating the correct combination of data to pass, we were able to post the document correctly. As no detailed documentation is available online for this scenario, I hope this post will help community for similar requirements. J
    For updating Variant configuration (VC) data for Sales order item, we need to populate below tables of standard FM or BAPI (e.g. SD_SALESDOCUMENT_CREATE).
    Normally the standard FM or BAPI does not return any error messages in case configuration data is not updated successfully.
    ·         SALES_SCHEDULES_IN: The required date field should be populated with appropriate value (REQ_DATE).
    ·         SALES_ITEMS_IN: Field PO_ITM_NO should be populated with appropriate value.
    ·         SALES_CFGS_REF Table:
    1.       This table should have 1 record per item.
    2.       Combination of CONFIG_ID and ROOT_ID should be unique across line items.
    POSEX
    000010
    CONFIG_ID
    000001
    ROOT_ID
    00000001
    SCE
    1
    COMPLETE
    T
    CONSISTENT
    T
    CBASE_ID_TYPE
    G
    ·         SALES_CFGS_INST:
    1.       This table should have 1 record per item.
    2.       Combination of CONFIG_ID and INST_ID should be unique across line items.
    CONFIG_ID
    000001
    INST_ID
    00000001
    OBJ_TYPE
    MARA
    CLASS_TYPE
    300
    OBJ_KEY
    MATNR value
    QUANTITY
    Quantity value
    QUANTITY_UNIT
    Quantity Unit
    COMPLETE
    T
    CONSISTENT
    T
    OBJECT_GUID
    MATNR value
    PERSIST_ID_TYPE
    G
    ·         SALES_CFGS_VALUE:
    1.       Combination of CONFIG_ID and INST_ID should be unique across line items.
    2.       We can have multiple characteristics for a material. In that case appropriate records should be inserted in this table. Note that CONFIG_ID and INST_ID should be same for all the rows you insert in this table for multiple characteristics for a material.
    3.       The characteristic value should be in SAP internal format.
    CONFIG_ID
    000001
    INST_ID
    00000001
    CHARC
    Material characteristics
    VALUE
    Material characteristics value
    ·         SALES_CFGS_VK:
    1.       Combination of CONFIG_ID and INST_ID should be unique across line items.
    2.       We can have multiple characteristics for a material. In that case appropriate records should be inserted in this table. Note that CONFIG_ID and INST_ID should be same for all the rows you insert in this table for multiple characteristics for a material.
    CONFIG_ID
    000001
    INST_ID
    00000001
    VKEY
    Material characteristics

  • BAPI for Creating Sales Order For Variant Configuration Materials

    Dear Gurus,
    Before posting this thread, we have referred many SDN threads, OSS notes and other sites for any sort of help..but no success..All threads and other referrals are not much of help as they are kind of incomplete( Perhaps, we are unable to understand them..no offense).
    Few checked threads on this subjects are:
    http://scn.sap.com/thread/34590
    http://scn.sap.com/thread/851070
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/community/abap/blog/2014/07/15/creating-orders-with-variant-configured-items-using-bapisalesordercreatefromdat2
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/thread/120144
    OSS: 549563
    Well, we're using the BAPI (BAPI_SALESORDER_CREATEFROMDAT2) which creates the sales order successfully but without the characteristic values in line items.
    We're passing data to the following parameters - ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_VALUE to create the variant config but not able to see it getting created.
    Pls find attached BAPI coding document for your reference.
    If you could throw any light on this issue will be of great help for us.
    Thank You in Advance!!!
    Reg,
    Jagan-SD.

    Jagan nath
    Try below.
    you would need miimum of 3 segments to pass variant config data using this bapi
    ORDER_CFGS_REF for each configurable item
    POSEX = ITEM #
    CONFIG_id , root_id - Start with 1 and increment it for each configurable line item
    ORDER_CFGS_INST
    CONFIG_ID - from above
    INST_ID - Start with 1 and increment it for each configurable line item
    OBJ_TYPE = "MARA'
    CLASS_TYPE = '300'
    OBJ_KEY = material #
    ORDER_CFGS_VALUE
    CONFIG_ID for the item, INST_ID for the item
    charc for characteristic value
    VALUE for characteristic value
    Reference thread
    How to Fill Configuration Data in BAPI BAPI_SALESORDER_CREATEFROMDAT2
    Hope it will solve your issue.
    Thanks
    Ritesh

Maybe you are looking for