BAPI to read classification of Material Variant

Hi experts,
In our customer we are using material with a reference product KMAT (Material Variant), and we need a BAPI to read the configuration of the materials.
Does anyone knows which BAPI can we use to read the configuration of the material variant?
We tried to use the BAPI_PRDSRVAPS_GETCLASSES, but for material variant it didn't work, just to products that doesn't have a KMAT related.
Thanks in advanced
Thiago Cyrillo

Thiago,
Why dont you use a class like /SAPAPO/CL_MC01_CCV and method like GET_SINGLE_CHARVAL?
Kedar

Similar Messages

  • Reassigning of Material Variant to KMAT in MM02

    Can anyone let me know the possibility of Reassigning the Material Variant to KMAT and configuring the variant in MM02. For new assignment i do not have any problems, working fine. But when I need to reassign the MV to KMAT and configuring the variant and finally saving the MV, I am getting Runtime error.
    Urgent Pls.
    Raj

    Hi Rajendra
      have you maintained all the master data properly
      1. classification for material variants (CL02)
      2. Characteristics definition ( CT04)
      3. configuration profile(CU41)
      4. Pricing conditions (VK11) with Condition type       VA00   Variant Price
      5. object dependencies for each variant characteristics
      ensure the above and let me know still youface any issue
      regards
      SK

  • BAPI FOR CREATION OF MATERIAL VARIANT IN SAP

    Dear All,
    Can anoy one please provide me name of BAPI to create material variant.This is required when we create material variant for a configurable material, characteristics values are added in MRP 3 View  .

    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?

  • Need FM to read classification deatils of a material based on classtype

    Hi All,
    i need FM to read classification deatils of a material based on classtype.
    ex: in mm02 if u enter any material number and enter, we ll see the material and below that class type (description as material class).Based on this class type i need fetch the classification data of a perticular material.
    kindly let me knoa ASAP.
    Thaks
    Sri

    Hello,
    Use the BAPI:
        CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
             EXPORTING
                  OBJECTKEY_IMP   = L_OBJECT " Material Number
                  OBJECTTABLE_IMP = L_OBJECTTABLE " MARA
                  CLASSTYPE_IMP   = L_CLASSTYPE
                  READ_VALUATIONS = 'X'
                  KEYDATE         = SY-DATUM
                  LANGUAGE        = SY-LANGU
             TABLES
                  ALLOCLIST       = L_ALLOC
                  ALLOCVALUESCHAR = L_VALUES_CHAR
                  ALLOCVALUESCURR = L_VALUES_CURR
                  ALLOCVALUESNUM  = L_VALUES_NUM
                  RETURN          = L_RETURN.
    Regards,
    Vasanth

  • Material Variant Classification

    Hi,
    Does anyone know how to get the material variant classification data for a material? I found function CLFN_VARIANT_CLASSIFICATION, but I couldn't find any documentation. I don't know how to put the parameters in this function and whether this is the right funtion.
    Thanks,
    Roxana.

    Hi,
    Please check with following tables.
    KLAH Class Detail
    CABN Characteristic Detail
    AUSP Characteristic Values
    CAWN Characteristic Values
    CAWNT Characteristic Value Texts
    KSML Characteristic Allocation to Class
    KSSK Material Allocation to Class
    USE THE FOLLOWING fUNCTION MODULE TO GET THE DATA
    CLAF_CLASSIFICATION_OF_OBJECTS
    GIVE CLASS TYPE = 300 AND OBJECT NUMBER = MATERIAL NUMBER
    EXECUTE YOU WILL GET IN TABLE T_CLASS, THE DETAILS ABOUT THE CLASS
    IN TABLE T_OBJECTDATA, CHAR ASSOCIATED AND THE VALUE.
    Check the link
    https://forums.sdn.sap.com/click.jspa?searchID=11911947&messageID=4219775
    Regards,
    Raj.

  • Reading Classification data for material

    Hi all
    can anybody give me a FM or BAPI to read the classification data
    for a particular material..
    Kindly help . apt points will be rewarded
    Regards
    N manjrekar

    Hi Nikhil
    just copy paste this code to get the clasification of any material.
    hope this will be helpful.
    DATA: V_CLASS LIKE KLAH-CLASS VALUE 'MAT_SEL_CLASS_JASC',
            V_CLASSTYPE LIKE KLAH-KLART VALUE '023',
            V1_OBJECT LIKE AUSP-OBJEK,(nothing but material no)
            V_OBJECTTABLE LIKE  TCLA-OBTAB VALUE 'MARA',
            V_LANGU LIKE SY-LANGU,
            V_DATUM LIKE SY-DATUM.
            V_LANGU = 'EN'.
            V_DATUM = SY-DATUM.
    CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
      EXPORTING
       CLASS                      = V_CLASS
      CLASSTEXT                  = 'X'
        CLASSTYPE                  = V_CLASSTYPE
      CLINT                      = 0
      FEATURES                   = 'X'
       LANGUAGE                   = V_LANGU
       OBJECT                     = V1_OBJECT
       OBJECTTABLE                = V_OBJECTTABLE
       KEY_DATE                   = V_DATUM
      INITIAL_CHARACT            = 'X'
      NO_VALUE_DESCRIPT          =
      CHANGE_SERVICE_CLF         = 'X'
      INHERITED_CHAR             = ' '
      CHANGE_NUMBER              = ' '
      TABLES
        T_CLASS                    = T_CLASS
        T_OBJECTDATA               = T_CLOBJDAT
      I_SEL_CHARACTERISTIC       =
      T_NO_AUTH_CHARACT          =
    EXCEPTIONS
       NO_CLASSIFICATION          = 1
       NO_CLASSTYPES              = 2
       INVALID_CLASS_TYPE         = 3
       OTHERS                     = 4 .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
         READ TABLE T_CLOBJDAT INDEX 2. " KEY 'MAT_CHAR_THICKNESS'.
          IF SY-SUBRC = 0.
            T_OUTPUT1-THICK = T_CLOBJDAT-AUSP1.
          ENDIF.
    Please close the thread if your query in  answered
    Reward points if helpful.
    Regards
    Zarina

  • BAPI for read FI documents in material document

    Hi all,
    with transaction ME23N i can display Material Document and in the tab 'Doc. info' i can display FI Documents if i click on the button. I'm looking for a BAPI to read this FI documents from the material document.
    Thanks for your help.
    Cheers

    If you mean that you need to know what BAPI's a particular transaction uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use. 
    Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this. 
    1. Find out the package of the transaction. 
    Start Va01 go to system --> status. 
    Double click on transaction 
    Package is VA 
    Open this package in SE80 
    Open business engineering-->Business object types 
    Find the BO which sounds the most appropriate 
    I would suggest BUS2032 Sales Order 
    Double click. 
    Open methods. 
    Find the released method with from data or something similar in the name 
    , Createfromdat2 
    Position the cursor in it and click the program button 
    Scroll down to find the bapi used in this method 
    With this way you can also find out programs and FM's 
    2. Start va01 go to system-->status 
    Double click transaction VA01 
    Double click on package 
    Read the application component. (this is SD-SLS Sales) 
    Then open the transaction BAPI 
    Sales and distribution>Sales>sales order 
    createfromdat2

  • BW Retail - Material variants

    Hello All,
    does anyone knows a business content extractor for SAP retail that allows the extraction of material variants characteristics (color, size) in a similar way as the RIS is updated.
    I know that these characteristics can be retrieved using a classification datasource. But I would want to know if the sequence determination (using the TWORD table)  can be achieved using a business content datasource rather than building my own exit or generic datasource?
    Thanks,
    Tom

    Hey those fields are mandatory fields which needs to be populated in the bapi.
    Please try to give some values in those fields and execute the bapi now..
    It should work fine..
    If you need any further information please let me know..
    Regards
    Satish Boguda

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

  • How to find the list of material variant based on the characteristics value

    Hi
    We are creating materials variants for FERT Material Type in material master in MRP-3 view .There we configure the variant by attaching characteristics value 
    Now we want to have a report , which can give the list of material variants , if char value is given in selection
    Can somebody guide me if there is standard report for this OR what is the linkage in Table , so that we can develop a report
    rgds
    Sandeep

    I couldn't find a standard report to get the material variants based on characteristic values (the nearest I could find was CT12) but I wrote a report some time back here's the table join logic for the main select statement.
    select a~matnr
            e~atwrt
            h~atwtb
    into table i_tab
          from MARC as a
          inner join IBIN as b
          on b~instance eq a~cuobj
          inner join IBIB as c
          on c~ibase eq b~ibase
          inner join IBINVALUES as d
          on d~in_recno eq b~in_recno
          inner join IBSYMBOL as e
          on e~symbol_id eq d~symbol_id
          inner join CABN as f
          on f~atinn eq e~atinn
          inner join CAWN as g
          on g~atinn eq e~atinn
          and g~atwrt eq e~atwrt
          inner join CAWNT as h
          on h~atinn eq g~atinn
          and h~atzhl eq g~atzhl
         where     a~matnr in s_matnr
                and e~atinn in s_atinn
                and e~atwrt in s_atwrt
               and b~valto eq '99991231235959'. "This is important condition
    I included bare minimum fields to suite your requirement needs you can add whatever other field you want . Though I tested the table join, I suggest you to test it again before writing your own ABAP program using SE16N.

  • Material variant replacement in sales order for Configurable Material

    HI
    I am using variant configuration. In this i have created material A as configurable material and have Preconfigured Material B as its variant by assigning configurable material in MRP 3 view.
    Now when i am creating Order for material A i.e. Configurable material and the characteristics values are same as that of Preconfigured material system is not replacing Configurable material with Preconfigured material.
    Please help me out.
    Regards,
    Anand.

    Even after maintaining the item category MTAC(Mills Make to order config at mat level), the configurable material is not getting replaced in the sales order (va02). It is just showing material variant exists for the configurable material.
    The setting in item category for configuration is.
    Config. Strategy     01(Sales Order Strategy (TAC, TAM))
    Mat. Variant Action  4 (Replace configurable material (Append and change))
    ATP material variant 2 (Do not substitute if not completely available)
    Structure scope      D (Configuration, poss. with BOM explosion)
    I have maintained the stock for material variant as well to take care of ATP material varinat setting shown above.
    Please suggest if missing something.

  • Material variant not found when configuring an item on a sales order...

    My client has been using Configurable Materials and Material Variants for several years.  At times, when entering a sales order on a Configurable material, the Material Variant is NOT displayed, even though the values entered for characteristics exactly match that of a Variant. 
    I suspect that the "link" between the Configurable material and the Material Variant has been broken, perhaps due to changes made to one of the material masters.  I've found that I can restore this "link" by changing the configuration of the Material Variant (MM02 transaction, the MRP3 tab, "Configure variant" button).
    (1) Can you tell me under what circumstances the "link" between Configurable and Variant gets broken?  In other words, are there certain fields on the Material master which, when changed, break this link?  If so, which fields?
    (2) Can you tell me how to identify those Material Variants which have a broken "link" (eg, those which do not link back to a Configurable material, for sales order entry purposes)?  Is there an ABAP or such to restore all such broken links?

    Hello and thanks for your response.  I've searched OSS and had found several informative notes (900732, 774346), though none seem to deal with my problem.  If you know of a note I'd much appreciate the lead...   (:

  • How to Change Batch Classification of material master

    Hi,
    How to Change Batch Classification of material master  in a production system,Pl note that there is no stock and no open qty still system is not allowing me to delete the old Classification and add my new classification.
    Guys any solution for this.
    Thanks in advance
    rgds
    bijaya pradhan

    I believe there is a FM VB_CHANGE_BATCH for this, any body tried this FM?

  • GATP check on a Material Variant of a configurab​le material

    Hi Experts,
      In ECC side material variant is created . with reference to a configurable material of type KMAT.
       The same configurable material is also used a pricing reference material for the material variant.
    The configurable material is not relevant for production has no MRP tabs created. It is also not relevant for ATP check.
    Material variant is of MTS strategy and relevant for ATP check.
    Configurable material is not CIF'ed to APO. ECC ATP check was working fine. While doing GATP check , it is showing following error and not doing ATP check.
    Product  for external product number XXXXXXX and
    BSG BSG1 does not exist .
    XXXXXX---> is the configurable material.
    Do I need to CIF across classes , characteristics and configurable material to APO even if I am doing ATP check on the material variant.

    Hi,
    No need to CIF across Class and Characteristics.
    CIF across the Material ( Guess this material is just one Material). Activate the ATP Model for that material.
    You need to maintain "CDP" in the customizing instead of Variant configuration in APO.
    This should work.
    Regards,

  • How to create Material variant

    Dear all,
    I created configurable material and assigned class and BOM and object dependencies as well as configurable profile its working fine.
    I need to create material variant so i assigned configurable material to material variant in MRP 3 view then selected the characterstics as per requirement. BOM also i assigned the configurable material. But at the time planning its not planning as per requirement also i need to consume the stock as per configuration at the time of sales order delivery.
    What are all steps to be followed, where i did mistake pls correct me.
    Regards,
    S.Suresh.

    Dear Mohan,
    Thanks for your response.
    I am very clear  in configurable material  we can use only sales order. I did in my projects no issues.
    But material variant i have doubt, I tried once am not able get what i suppose to get.
    I read the sap help.From that what i understood  we can create PIR for material variant and can make stock thorugh the  order it will consume only whatever we selected from MRP 3 configurable material.
    If i make sales order for configurable material if the material variant and configurable material properties are same it will pick the stock. (For that in sales order item category (mat variant action) to be set).
    1.  Configure the configurable material in the sales order.
           2.      On the value assignment screen, you can already check whether material variants match the material configuration (see Variant Matching on the Value Assignment Screen).
    For a material to be replaced by the material variant in the sales order, the configuration of both materials must match exactly.
           3.      When you have configured the material, exit the configuration editor.
           4.      Depending on the settings in Customizing, the material is either replaced directly by the material variant, or a message is displayed indicating that a suitable material variant has been found.
           5.      If the material is replaced, the material variant is entered in the order item.
    Individual or collective requirements can be created for the material variant. Pricing is also carried out for the material variant, provided that you have not defined the configurable material as a pricing reference material for the material variant.
    So i have doubt on material variant only if  wrong pls correct.
    Regards,
    S.Suresh.

Maybe you are looking for

  • Thunderbolt + DVI chained monitors on Macbook Pro

    Hi All,   I'm a software engineer, and I work on building distributed systems.  I usually have my IDE window open on my Thunderbolt display and several terminal/ssh windows open on my MBP's display.  I'm getting to the point where I'm connecting to t

  • Message type 'INVOICE'  for intercompany billing?

    Hi all, I have a requirement that i have to  create the invoice receipt for FI when the billing document is created in the same client? Please provide me the details for this such as output type and process code and other master data settings that ha

  • Kill the MouseEven.CLICK event when mouse is held down?

    I have been studying games on Facebook and am trying to emulate mouse event handling. For example in ChefVille you can click on objects and drag them around. But if you hold the mouse down you pan the entire game environment and when you release the

  • Oracle-forms don't open

    Hi guys, I am joining on internship a company that's using Oracle EBS, and before allowing me to work on the real thing, they had me experiment with this one: http://r12vis.infosemantics.net/  which is based on Oracle EBS R12. I am facing the followi

  • Security question feature required for password reset

    Hi, When ever SAP user forgets his password and he wants to reset his password, We need an option in logon screen to request the user to enter the answer for the security question and when he enters the correct answer, his ID should get reset and a n