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

Similar Messages

  • 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

  • IDOC/ BAPI for transaction FB60

    Hi Experts,
    Can anybody tell me IDOC/ BAPI for transaction FB60 for document type (KR = Original Invoice).
    Thanks

    Hi Venkata,
    Please refer below code, this works similar to FB60.
    REPORT z_bapi_test.
    *REPORT acc_bapi_test_document .
    SELECTION-SCREEN BEGIN OF BLOCK bl01 .
    PARAMETERS:
    check_l RADIOBUTTON GROUP rb1,
    check_a DEFAULT 'X' RADIOBUTTON GROUP rb1,
    post RADIOBUTTON GROUP rb1.
    SELECTION-SCREEN ULINE.
    PARAMETERS:
    rev_c RADIOBUTTON GROUP rb1,
    rev_p RADIOBUTTON GROUP rb1.
    SELECTION-SCREEN ULINE.
    PARAMETERS:
    ref_key LIKE bapiache01-obj_key DEFAULT 'TEST000001BAPICALL',
    dest LIKE bdi_logsys-logsys DEFAULT ' '.
    SELECTION-SCREEN END OF BLOCK bl01 .
    DATA:
    gd_documentheader LIKE bapiache09,
    gd_customercpd LIKE bapiacpa09,
    gd_fica_hd LIKE bapiaccahd,
    it_accountreceivable LIKE TABLE OF bapiacar09 WITH HEADER LINE,
    it_accountgl LIKE TABLE OF bapiacgl09 WITH HEADER LINE,
    it_accounttax LIKE TABLE OF bapiactx09 WITH HEADER LINE,
    it_criteria LIKE TABLE OF bapiackec9 WITH HEADER LINE,
    it_valuefield LIKE TABLE OF bapiackev9 WITH HEADER LINE,
    it_currencyamount LIKE TABLE OF bapiaccr09 WITH HEADER LINE,
    it_return LIKE TABLE OF bapiret2 WITH HEADER LINE,
    it_receivers LIKE TABLE OF bdi_logsys WITH HEADER LINE,
    it_fica_it LIKE TABLE OF bapiaccait WITH HEADER LINE,
    it_accountpayable LIKE TABLE OF bapiacap09 WITH HEADER LINE,
    it_paymentcard LIKE TABLE OF bapiacpc09 WITH HEADER LINE,
    it_ext LIKE TABLE OF bapiacextc WITH HEADER LINE.
    it_re LIKE TABLE OF bapiacre09 WITH HEADER LINE,
    it_ext2 LIKE TABLE OF bapiparex WITH HEADER LINE.
    PERFORM fill_internal_tables.
    IF check_l = 'X'.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
    DESTINATION dest
    EXPORTING
    documentheader = gd_documentheader
    customercpd = gd_customercpd
    contractheader = gd_fica_hd
    TABLES
    accountgl = it_accountgl
    accountreceivable = it_accountreceivable
    accountpayable = it_accountpayable
    accounttax = it_accounttax
    currencyamount = it_currencyamount
    criteria = it_criteria
    valuefield = it_valuefield
    extension1 = it_ext
    return = it_return
    paymentcard = it_paymentcard
    contractitem = it_fica_it.
    extension2 = it_ext2
    realestate = it_re.
    WRITE: / 'Result of check lines:'. "#EC NOTEXT
    PERFORM show_messages.
    ENDIF.
    IF check_a = 'X'.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
    DESTINATION dest
    EXPORTING
    documentheader = gd_documentheader
    customercpd = gd_customercpd
    contractheader = gd_fica_hd
    TABLES
    accountgl = it_accountgl
    accountreceivable = it_accountreceivable
    accountpayable = it_accountpayable
    accounttax = it_accounttax
    currencyamount = it_currencyamount
    criteria = it_criteria
    valuefield = it_valuefield
    extension1 = it_ext
    return = it_return
    paymentcard = it_paymentcard
    contractitem = it_fica_it.
    extension2 = it_ext2
    realestate = it_re.
    WRITE: / 'Result of check all:'. "#EC NOTEXT
    PERFORM show_messages.
    ENDIF.
    IF post = 'X'.
    DATA: l_type LIKE gd_documentheader-obj_type,
    l_key LIKE gd_documentheader-obj_key,
    l_sys LIKE gd_documentheader-obj_sys.
    IF dest = space OR
    dest = gd_documentheader-obj_sys.
    post synchron
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader = gd_documentheader
    customercpd = gd_customercpd
    contractheader = gd_fica_hd
    IMPORTING
    obj_type = l_type
    obj_key = l_key
    obj_sys = l_sys
    TABLES
    accountgl = it_accountgl
    accountreceivable = it_accountreceivable
    accountpayable = it_accountpayable
    accounttax = it_accounttax
    currencyamount = it_currencyamount
    criteria = it_criteria
    valuefield = it_valuefield
    extension1 = it_ext
    return = it_return
    paymentcard = it_paymentcard
    contractitem = it_fica_it.
    extension2 = it_ext2
    realestate = it_re.
    WRITE: / 'Result of post:'. "#EC NOTEXT
    PERFORM show_messages.
    ELSE.
    create Idoc
    it_receivers-logsys = dest.
    APPEND it_receivers.
    CALL FUNCTION 'ALE_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader = gd_documentheader
    customercpd = gd_customercpd
    contractheader = gd_fica_hd
    TABLES
    accountgl = it_accountgl
    accountreceivable = it_accountreceivable
    accountpayable = it_accountpayable
    accounttax = it_accounttax
    currencyamount = it_currencyamount
    criteria = it_criteria
    valuefield = it_valuefield
    extension1 = it_ext
    paymentcard = it_paymentcard
    contractitem = it_fica_it
    extension2 = it_ext2
    realestate = it_re
    receivers = it_receivers
    COMMUNICATION_DOCUMENTS* APPLICATION_OBJECTS EXCEPTIONS
    error_creating_idocs = 1
    OTHERS = 2 .
    IF sy-subrc = 0.
    WRITE: / 'IDoc created'. "#EC NOTEXT
    ELSE.
    WRITE: sy-msgid.
    ENDIF.
    ENDIF.
    ENDIF.
    IF rev_p = 'X' OR rev_c = 'X'.
    DATA: rev LIKE bapiacrev,
    rev_key LIKE ref_key.
    rev_key = ref_key.
    rev_key(1) = 'R'.
    rev-obj_type = gd_documentheader-obj_type.
    rev-obj_key = rev_key.
    rev-obj_sys = gd_documentheader-obj_sys.
    rev-obj_key_r = ref_key.
    IF rev_c IS INITIAL.
    IF dest = space OR
    dest = gd_documentheader-obj_sys.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'
    EXPORTING
    reversal = rev
    bus_act = gd_documentheader-bus_act
    TABLES
    return = it_return.
    ELSE.
    it_receivers-logsys = dest.
    APPEND it_receivers.
    CALL FUNCTION 'ALE_ACC_DOCUMENT_REV_POST'
    EXPORTING
    reversal = rev
    busact = gd_documentheader-bus_act
    OBJ_TYPE = 'BUS6035'
    SERIAL_ID = '0'
    TABLES
    receivers = it_receivers
    COMMUNICATION_DOCUMENTS* APPLICATION_OBJECTS EXCEPTIONS
    error_creating_idocs = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    WRITE: / 'IDoc created'. "#EC NOTEXT
    ENDIF.
    ENDIF.
    ELSE.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_CHECK'
    EXPORTING
    reversal = rev
    bus_act = gd_documentheader-bus_act
    TABLES
    return = it_return.
    ENDIF.
    WRITE: / 'Result of Reversal Posting:'. "#EC NOTEXT
    PERFORM show_messages.
    ENDIF.
    COMMIT WORK.
    Kindly close if it helps you.
    Regards
    Abhii...

  • 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

  • IDOC/BAPI for Production order creation from Legacy system

    Hi all
    We are using an interface to create Production orders from legacy to SAP. Would you recommend an IDOC or a BAPI to create Production orders. If IDOC or BAPI then could you please mention which one?
    thanks a bunch

    Hi John,
    For your purposes, please use BAPI for production order creation from legacy system. There is no standard inbound IDoc available to use. SAP has an IDoc for outbound interface only (message type LOIPRO).
    If there is an inbound IDoc available, I would recommend to use an IDoc.
    IDoc technology has excellent error handling and will allow you to reprocess an error (if any).
    BAPI is also good approach to use and fast in term of  processing.
    For BAPI approach, you can use BAPI BAPI_PRODORD_CREATE.
    Hope this will help.
    Regards,
    Ferry Lianto

  • IDOC/BAPI for T.code PIC01 to uplaod using LSMW

    Hi friends,
    I want to upload the data for T.code PIC01. can any one worked using IDOC/BAPI to uplaod using LSMW.
    Thanks,
    Sivaram.

    What T-code is that PIC01??
    --Ragu

  • IDOC/BAPI for production order confirmations

    Does anyone know IDOC or a BAPI for confirming a production order? CO11 is the normal transaction for confirmation.
    I found one BAPI: BAPI_PRODORDCONF_CREATE_HDR
    Is this the right one?
    -Thanks
    Bhaven

    Hi Bhavan,
    status can be find using function module <b>STATUS_TEXT_EDIT</b>.
    Sample code:
    CALL FUNCTION 'STATUS_TEXT_EDIT'
          EXPORTING
            client           = sy-mandt
            objnr            = >object number of order<
            only_active      = 'X'
            spras            = 'E'
          IMPORTING
            line             = hold_status
          EXCEPTIONS
            object_not_found = 1
            OTHERS           = 2.
    *Exception in case status is not found
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *Check Status of the Order
        IF hold_status CS 'CNF'.
        confined production orders.
        ENDIF.
    Best regards
    Suresh Babu Karanam

  • Idoc/BAPI for Certificate Profile creation

    Hi,
    Is there any Idoc/Bapi available for Certificate Profile creation (Transaction Code  QC01).
    Appreciate your Inputs.
    Thanks.
    Regards,
    Pc

    BAPI_USER_PROFILES_ASSIGN  Change User-Profile Assignments
    SUSR_BAPI_USER_PROFILES_ASSIGN  Methods of object USER
    Edited by: Mahalakshmi Padmanaban on Feb 15, 2008 1:51 AM

  • FM, iDOC, BAPI for CNE1

    Hi,
    I would like implement the functionality of CNE1, in CNE1 user needs to set the "to period" which means the period until which the progress is to be computed.
    Therefore I would like to know is there any FM, iDOC and BAPI for CNE1 that I can make use of.
    Appreciate helps. Thanks.

    Should be from below FM's:
    CNEV_01_MAIN
    CNEV_01_MAIN_BLOCK
    CNEV_01_POPUP_GET_DATE
    CNEV_01_REPORT
    CNEV_01_SELECT_COST_ELEMENTS
    CNEV_01_SELECT_CUSTOMIZING
    CNEV_01_SELECT_OBJECTS
    CNEV_01_SELECT_OBJECT_PARAMS
    CNEV_01_SELECT_VERSION_EV
    CNEV_01_SELTAB_GET
    CNEV_01_SEL_VERSN_EV_SHLP
    Regards
    Sreenivas

  • Planning w/o Final Assly for Variant Config matls

    Experts,
    I have a requirement where in my finished MTO Variant Config products have to be forecasted (at standard configuration, pre-determined BOM for the variant product) so that the dependent assemblies can be produced in advance. The assemblies & some components have huge lead times (22wks), hence the need to produce/procure them in advance. However, the assembly of the finished VC material will only be after the Sales Order is recvd for it.
    I know strategies 56 & 89 allow me to plan based on char's, however, I'm looking for a strategy like 50 which will allow me to assemble the FERT right after the Sales Order has been recvd..Am I on the right track here?
    Cheers

    Andy,
    Try 55
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/cb/7f944143b711d189410000e829fbbd/frameset.htm
    Rgds,
    DB49

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

  • Any IDoc/BAPI for Loading Material Determination Condition records - VB11??

    Hi All,
    I need to load the material determination condition records which can be done through the transaction VB11. I dont want to do load the records through BDC.
    So, I am looking for any IDoc or BAPI which can do this job.
    Any help in this regard is highly appreciated.
    Points will be awarded for all useful replies.
    Thanks in advance,
    Surendra K

    hi surendra,
    i have a exact same task to load material determination to SCM
    "load the material determination condition records which can be done through the transaction VB11. I dont want to do load the records through BDC, i am looking for any IDoc or BAPI which can do this job"
    thank you
    sridhar K

  • BAPI for variant configuration

    Hi all,
    I need a BAPI which loads Variant configuration information in sales order. I beleive BAPI_SALESORDER_CREATEFROMDAT2 can be used for this purpose, but I need help in finding the required structures and the fields that need to be used for this purpose. Can any one provide me the information ASAP?
    Regards,
    Asha.

    Please use FM BAPISDORDER_GETDETAILEDLIST to understand what structures need to be filled for VC.
    Example code:
      ls_view-header     = 'X'.
      ls_view-item       = 'X'.
      ls_view-sdschedule = 'X'.
      ls_view-configure  = 'X'.
      ls_view-text       = 'X'.
      call function 'BAPISDORDER_GETDETAILEDLIST'
           exporting
                i_bapi_view           = ls_view
           tables
                sales_documents       = lt_docin
                order_headers_out     = lt_hdrout
                order_items_out       = lt_itmout
                order_schedules_out   = lt_schout
              order_partners_out    = lt_prtout
                order_textheaders_out = lt_hdtxt
                order_textlines_out   = lt_txtli
                order_cfgs_cucfgs_out = lt_cucfgout
                order_cfgs_cuvals_out = lt_cuvalout
                extensionout          = lt_parex.

Maybe you are looking for