BAPI or FM to create/update variant configuration

Is there a BAPI or FM to create/update variant configuraion?
There is one for sales order BAPI_SALESORDER_CREATEFRONDAT1 to create VC while creating SALES order.
How do you do create VC while creating PO?
Thanks.

HI,
There are two different Function Modules used to create service product and material product in CRM system.
CRMXIF_PRODUCT_MATERIAL_SAVE for creating product of type material
and CRMXIF_PRODUCT_SERVICE_SAVE for creating product of type service.
Regards,
PP

Similar Messages

  • Bapi for creation of quotation for variant configuration

    Hi all,
    I have done a BAPI to create a quotation with variant configuration.
    I am not getting the right field in the structure of the bapi item to upload the required quantity of the variant material.
    The value for the quantity is getting as 0.
    Can you please help to upload the quantity in the variant item.
    any ideas?
    Thanks and Regards,
    Kiran.

    i am not clear what youn are looking for.
    Say material X is KMAT,
    Material Y you have created as a variant of X by entering the conf material X in MRP3 view and setting the char values
    Material Z you have created as a variant of X by entering the conf material X in MRP3 view and setting the char values different than Y
    Now Y and Z are material variants of X, now tell me exactly what you are looking for?

  • BAPI/function module to create/update vendor master data

    Hi
       We are on ECC 50 and have a need to update vendor master data through a programatic interface ( non-dialog ) with ABAP. What is a good function module that can be used to create/update vendor master data - I looked at BAPI_VENDOR_CREATE and did not find any input interfaces that can be passed to this BAPI.
    Previous experiences with the right BAPI for this purpose that can be shared is appreciated. <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 26, 2008 5:58 PM

    Hi Kiran,
    If you want to load the vendor data into sap its better to go with LSMW batch input program.
    object 0040
    method 0001
    program name RFBIKR00
    Program type B
    this would be a good choice. Recently i did the same.

  • Function Module Production order created via Variant Configuration conditio

    Hi,
    I am looking for a function module which can provide me with the following information.
    the component selected in  a production order and the corresponding VC condition which forced this selection in the production order.
    Any help appreciated.
    Thanks!

    Hello ,
    There is no proper FM or BAPI that can do the way it is used that all the components are first selected buy FM get_stpo and then configured via FM cubx_configure_object or CUBX_CONFIGURE_STPOB. The ones that fulfill the condition gets deleted. For the Selection condition you can look at table STPO-KNOBJ.
    Generally for configuration you should use FM vc_get_configuration_ibase..
    Also for SO FM CUKO_ddb_has_components reads from the database but you can check if it can work for PO
    Thanks
    Amber

  • How to Create Sales Order using BAPI with Variant configurations

    Hi All,
    I need to create a sales order using BAPI BAPI_SALESORDER_CREATEFROMDAT2 with Varaint confiugartions. I will get Header ITEM and variant configuration items in the flat file. Kindly help me in this regard.
    One more thing, is there any way to findout all the Varaint classifications for a particular Material?
    I have done the below coding. Sales order is getting created but variant configurations are not populating.
    *...Configuration: Reference Data
    DATA: gt_order_cfgs_ref TYPE TABLE OF bapicucfg,
          wa_order_cfgs_ref TYPE bapicucfg.
    *...Configuration: Instances
    DATA: gt_order_cfgs_inst TYPE TABLE OF bapicuins,
          wa_order_cfgs_inst TYPE bapicuins.
    *...Configuration: Part-of Specifications
    DATA: gt_order_cfgs_part_of TYPE TABLE OF bapicuprt,
          wa_order_cfgs_part_of TYPE bapicuprt     .
    *...Configuration: Characteristic Values
    DATA: gt_order_cfgs_value TYPE TABLE OF bapicuval,
          wa_order_cfgs_value TYPE bapicuval.
    *...Configuration: BLOB Internal Data (SCE)
    DATA: gt_order_cfgs_blob TYPE TABLE OF bapicublb  ,
          wa_order_cfgs_blob TYPE bapicublb.
    *...Configuration: Variant Condition Key
    DATA: gt_order_cfgs_vk TYPE TABLE OF bapicuvk,
          wa_order_cfgs_vk TYPE bapicuvk.
    *...Configuration: Reference Item / Instance
    DATA: gt_order_cfgs_refinst TYPE TABLE OF bapicuref,
          wa_order_cfgs_refinst TYPE bapicuref.
    *...Configuration: Reference Data
      wa_order_cfgs_ref-posex = '10'.
      wa_order_cfgs_ref-config_id = '1'.
      wa_order_cfgs_ref-root_id = '1'.
      wa_order_cfgs_ref-SCE = '1'.
      wa_order_cfgs_ref-CBASE_ID_TYPE = 'G'.
      wa_order_cfgs_ref-CONSISTENT = 'T'.
      wa_order_cfgs_ref-COMPLETE = 'T'.
      APPEND wa_order_cfgs_ref TO gt_order_cfgs_ref.
    *..2nd item
      wa_order_cfgs_ref-posex = '20'.
      wa_order_cfgs_ref-config_id = '2'.
      wa_order_cfgs_ref-root_id = '1'.
      wa_order_cfgs_ref-SCE = '1'.
      wa_order_cfgs_ref-CBASE_ID_TYPE = 'G'.
      wa_order_cfgs_ref-CONSISTENT = 'T'.
      wa_order_cfgs_ref-COMPLETE = 'T'.
      APPEND wa_order_cfgs_ref TO gt_order_cfgs_ref.
    *...Configuration: Instances
      wa_order_cfgs_inst-config_id = '1'.
      wa_order_cfgs_inst-inst_id = '1'.
      wa_order_cfgs_inst-obj_type = 'MARA'.
      wa_order_cfgs_inst-class_type = '300'.
      wa_order_cfgs_inst-obj_key = '2021B'.
      wa_order_cfgs_inst-quantity = 1.
      wa_order_cfgs_inst-PERSIST_ID_TYPE = 'G'.
      wa_order_cfgs_inst-CONSISTENT = 'T'.
      wa_order_cfgs_inst-COMPLETE = 'T'.
      APPEND wa_order_cfgs_inst TO gt_order_cfgs_inst.
    *..2nd item
      wa_order_cfgs_inst-config_id = '2'.
      wa_order_cfgs_inst-inst_id = '1'.
      wa_order_cfgs_inst-obj_type = 'MARA'.
      wa_order_cfgs_inst-class_type = '300'.
      wa_order_cfgs_inst-obj_key = '2021B'.
      wa_order_cfgs_inst-quantity = 1.
      wa_order_cfgs_inst-PERSIST_ID_TYPE = 'G'.
      wa_order_cfgs_inst-CONSISTENT = 'T'.
      wa_order_cfgs_inst-COMPLETE = 'T'.
      APPEND wa_order_cfgs_inst TO gt_order_cfgs_inst.
    *...Configuration: Characteristic Values
      wa_order_cfgs_value-config_id = '1'.
      wa_order_cfgs_value-inst_id = '1'.
      wa_order_cfgs_value-charc = 'BASIC_MACHINE'.
      wa_order_cfgs_value-value = 'L28'.
      wa_order_cfgs_value-VALCODE = '1'.
      APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
      wa_order_cfgs_value-config_id = '1'.
      wa_order_cfgs_value-inst_id = '1'.
      wa_order_cfgs_value-charc = 'BUCKET'.
      wa_order_cfgs_value-value = 'PL1001'.
      wa_order_cfgs_value-VALCODE = '1'.
      APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
    *..2nd item
      wa_order_cfgs_value-config_id = '2'.
      wa_order_cfgs_value-inst_id = '1'.
      wa_order_cfgs_value-charc = 'BUCKET_FOC'.
      wa_order_cfgs_value-value = '023OP0049'.
      wa_order_cfgs_value-VALCODE = '1'.
      APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
      wa_order_cfgs_value-config_id = '2'.
      wa_order_cfgs_value-inst_id = '1'.
      wa_order_cfgs_value-charc = 'BUCKET_HOE'.
      wa_order_cfgs_value-value = '028MS0004'.
      wa_order_cfgs_value-VALCODE = '1'.
      APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
    wa_order_cfgs_value-config_id = '2'.
    wa_order_cfgs_value-inst_id = '1'.
    wa_order_cfgs_value-charc = 'TYRE_PRESSURE_GAUGE'.
    wa_order_cfgs_value-value = '81004402'.
    APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
    *...Configuration: Reference Item / Instance
      wa_order_cfgs_refinst-posex = '10'.
      wa_order_cfgs_refinst-config_id = '1'.
      wa_order_cfgs_refinst-inst_id = '1'.
      APPEND wa_order_cfgs_refinst TO gt_order_cfgs_refinst.
    *..2nd item
      wa_order_cfgs_refinst-posex = '20'.
      wa_order_cfgs_refinst-config_id = '2'.
      wa_order_cfgs_refinst-inst_id = '1'.
      APPEND wa_order_cfgs_refinst TO gt_order_cfgs_refinst.
    Regards,
    Rajesh

    Hi all,
    Please help me in solving the issue.
    Rajesh

  • 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

  • Variant Configuration and pricing in a Sales Order

    Hi,
    I have been successful in updating variant configuration for a sales order using the function modules 'BAPI_SALESORDER_CREATEFROMDAT2' to create the sales order and 'BAPI_SALESORDER_CHANGE' to add the variant configuration characteristics on a configurable material.
    The issue I am having is that if I don't add the configuration values for pricing the pricing will not automatically update.
    I have tried using function module 'CE_C_PROCESSING' to update the pricing after calling BAPI_SALESORDER_CHANGE without success.
    Is there anyway to get the pricing to automatically update without adding the variant configuration values related to pricing?
    Any help would be appreciated.
    Derick

    Hi Derick,
    We are trying to create a sales order with a configurable item using 'BAPI_SALESORDER_CREATEFROMDAT2' and the issue that we are facing is we are getting the sales order but the configuration values are not getting populated.
    Could you please guide us on how to pass the configuration data to the BAPI to create a sales order with configuration values?
    Any help would be highly appreciated.
    Thanks...
    Abeehs

  • COPA Report as Per Characterstics in Variant Configuration

    Hi,
    I need to develop a COPA Report for the characterstics which are created in Variant Configuration. Kindly help me in bringing those Variant configuration characterstics to COPA.
    1. How can i add those characterstics in COPA?
    2. How can i bring them to COPA?
    3. What should i do if the values of those characterstics into COPA?
    Kindly Help me ...
    Thanks
    Kishore

    Hi Kishore,
    Please have a look at note  1344848 (Derivation of Variant configuration characteristics). This note explains you all the required steps you should take to derive the charachteristics.
    I hope it helps.
    Best Regards,
    Abhisek

  • BAPI_QUOTATION_CREATEFROMDATA2 with Variant Configuration

    Hi ,
    I am creating Customer quotation using variant configuration .Here quotation is creating but variant configuration is not copying.
    Please help me.
    Thanks,
    Santosh
    Moderator message: too vague, help not possible, please describe problems in all technical detail when posting again.
    Edited by: Thomas Zloch on Nov 1, 2011 10:42 AM

    With the amount of info you give, the only help i can give is:: try harder.

  • 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

  • BAPI/FM in ECC to create a sales order with variant configurable material

    Hi all,
    I need to create a function module that creates a sales order in ECC with a variant configurable material.
    can some one tell me if there is a in built function module or BAPI that i can make use of to create a sales order with variant configurable material in ECC.
    Regards,
    Jessica Sam

    Thanks MxG,
    I dont know how to use this BAPI. .Can you suggest me a sample code.
    My reqmnt is, i have
    Sold to party, ship to party, bill to party , VC config material and all char values that should be populated while creating a sales order.
    please help me with what values should i populate in i/p paramters and and how to use this BAPI with some sample code if posible.
    Regards,
    Jessica.

  • BAPI to create variant configuration T-Code CU41

    Hi,
    I am looking for standard BAPI to create variant configuration T-Code CU41.
    Please let me know if anybody come across the same.
    Thanks,
    Bala Raja

    Hey,
    There are no full proof BAPIs delivered by SAP to create work orders.
    You might want to explore BAPI_ALM_ORDER_MAINTAIN but this BAPI has several limitations. Read the documentation of the BAPI for more information.
    The best option is to record IW36 and create the suborder using CALL TRANSACTION.
    -Kiran

  • Variant Configurator / BAPI Create

    We’re building a web interface to our R/3 Variant Configurator.  Our product is complex and requires us to create Inquiries with nested configurable materials.  We’re having a couple of issues and I’m hoping someone might be able to point us in the right direction.  A couple of questions …
    1)  As mentioned we have nested configurable materials.  We satisfy the first level characteristics by passing cfg_ref_in with the POSEX of the first level item (00010).  Based on these characteristic/values further configurable materials maybe exploded on the order and we won’t know their position.  We also have characteristics for those nested materials however we don’t know their POSEX in the document – so it doesn’t appear we’re able to pass their characteristics during the create process.  In the case of nested configurable materials where you’re uncertain of  their POSEX is it a two pass operation?  Meaning configure the first material (00010) , let it explode, then save, then update the document and pass the nested material characteristics? 
    Please tell me I’m missing something and there is an easier way.
    2)  We’re using SD_SALESDOCUMENT_CREATE we also see BAPI_INQUIRY_CREATEFROMDATA2.  What is the difference?  BAPI_INQUIRY_CREATEFROMDATA2 appears to call SD_SALESDOCUMENT_CREATE.
    Thanks in advance.
    /Greg

    VC_I_GET_CONFIGURATION

  • 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

  • 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      =

Maybe you are looking for

  • MSS iView Error "Error in Source. Message not available"

    After installing MSS 60.1.5 (System = HP-UX 11.11 ORACLE 9.2.0.5. SAP EP 6.0 ON WEB AS 6.20) and trying to use the the iViews in the MyBudget workset – we are getting the following errors: Using iView “Chritical Variance on My cost centers” and “asse

  • Elements can't find photos from older version

    I installed Photoshop Elements 11 today on to my new Windows 7 computer, but have been unable to access the photos, categories and slideshows which I had created in Elements 5 on my old Windows XP computer.  The Elements 5 ones were copied  from my o

  • Idvd doesnt show picture on front

    I have a quick question, I am putting a dvd together throwing my fcp into idvd 8 then I am putting a cover on the menu and throwing a 50 sec song in with it, now when I burn the dvd the song comes up right away but the pictures doesnt show until abou

  • Use of subquery - causing an error

    I am having a problem with subqueries - I want to have two levels of subquery for a worksheet - as soon as I include the second sub query it comes out with the following error: 'The sheet "sheet4" used by this subquery is no longer valid. To edit the

  • Noisy background noise when using speaker phone during calls

    Hi Phone: sony experia z3 Does anyone have the same issue as me when you use the speaker phone during calls? There is a lot of background noise.The caller's voice also sounds echoish When I turn off the speaker and switch back to normal call it noise