Adding  Classification to a material (Like MM02)

Hi Experts,
I am working on some module pool program , my requirement is like MM02 standard transaction only ,
i need to display existing Classification( DISPLAY ONLY) for a particular material - this i am able to achieve . And i am having ALV with edit option is displaying existing Classification , here i need to include class type 001 for material .  I user enters class , its corresponding Description , Char Value , Characterstics should come automatically .  This I am not able to achieve.
For getting classification for existing ...
i am using Function Module CLAF_CLASSIFICATION_OF_OBJECTS .
Please tel me how i should go to get Class Des , Class Char and Class Value for Particular Class and Update same.
Please do the needful.
Thanks in Advance........

I use a 3rd Party Tool for Creating and Changing Material masters.  You may look at the BAPI's below, as I am not familar with them:
                     BAPI_RETAILMATERIAL_CREATE         Create Material        
                     BAPI_STANDARDMATERIAL_CREATE   Create/Extend Material 
If these do not help you, I just did a search in SE37 for create and did a further search on the results for Material.

Similar Messages

  • Extend Classification to a material

    Hi Experts,
    i need to extend class for a material being changed , this one i need to store temporarly . After getting approved this data will gets updated to the material being changed.
    how to validate class ie  if user enters xxx it should validate and give error as class xxx doesnot exist like that. Is there any FM to validate Class . I tried  'CLMA_CLASS_EXIST'  passing Class and Class Type '001' but unable to validate even though i enter xxx  sy-subrc was 0 and i was not getting any error.
    i want to know how to get class , class description , characterstic description and characterstic value in general . this is like MM02 Classification Extension for material.
    Can we provide custom F4 help to Characterstic Value  like in MM02 ?  
    if i use BAPI , this will irrespective of the approver has approved the changes or not , so i cant BAPI_MATERIAL_SAVEDATA for Classification Extension..
    if there are any solutions , then please give me a solution.
    Thanks,
    Shrikanth

    Hi,
    which transaction do you use, mm02/mm01
    you should use mm01 and put your material , just press enter it wil give you warnigs, go ahead. system take you  select views, select required one then press enter
    If you don,t get required veiw here then check OMS2
    Regards,
    Edited by: Kumar DS on Jun 3, 2009 10:06 AM

  • Error in adding stock of the material

    Hi
    While adding stock to the material using MB1C I am getting an error "Fld selectn for mvmt type 561 / acct 399999 differs for Ext. GA amount in LC (023)"
    What can be the solution ??

    Option-1: Check Field status group in the create/bank/interest TAB for G/L in FS00 & check its assignments in OBC4 & Field Selection for status of Ext. GA amount in LC like optional/required/suppress
    Use OMJJ t.code - 561 mvt - field selection and check additional account assignment (here Ext. GA amount in LC  is optional/required/suppress.)
    Option-2: Can also run the programme RM07CUFA through SE38 to update.
    Regards,

  • Purpose of maintaining classification view in material master

    Hi gurus
    can anyone explain Purpose of maintaining classification view in material master with example
    Regards
    Vishal...

    Hi
    One of the reason we maintain classification is for batch management where characteristics like shelf life expiry date is being attached to a class & that class is maintained in material master so whenever transactions takes place it will read from the characteristics value.
    the other purpose is with variant configruation, for a configurable material there will be more than one characteristics for ex: in a car it comes with A/C - non a/c, metallic - non metallic, normal steering - power steering all these are mainatained as characteristics & assigned to a class & we use that class in classification for materials.
    there is many more advantages & ways of using classification in material master.
    Regards
    Rang

  • Uploading TAX Classification data in material master

    Hi,
    I have to upload tax classification data in material master for countries DE,IT,FR,ES,CH and GB.
    I have used BAPI_MATERIAL_SAVEDATA and passing values to table TAXCLASSIFICATIONS.
    But bapi is uploading tax classification only for country DE.
    When I am creating through MM02 its getting updated.
    Can anybody tell me what is the problem ?

    Hi Ganga,
    Yes I am passing different countries to table .
    LOOP AT IT_STAX into WA_STAX.
           wa_taxclassifications-depcountry = wa_stax-aland.
            wa_taxclassifications-tax_type_1 = wa_tstl-tatyp.
            wa_taxclassifications-taxclass_1 = wa_stax-taxm1.
            wa_taxclassifications-tax_ind    = wa_stax-taxim.
            APPEND wa_taxclassifications TO it_taxclassifications.
    ENDLOOP.
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
          EXPORTING
            headdata           = wa_headdata
          TABLES
            taxclassifications = it_taxclassifications
            returnmessages     = it_return[].

  • How to add new value in Classification under General tab via MM02.

    Hello Experts,
    I've a requirement where I need to add a new material variant configuration value via MM02 as highlighted below. I've also attached the screen shot of CL02, the two characteristics which I need to add (highlighted in red).
    Can please anybody tell me the steps to add value in Classification under General tab via MM02.
    Many thanks in advance.

    zero cool,
    Use transaction CL02 , open class in PCL_222_PURO_BOX with class type 300
    add characterstic
    PCH_COSTING_WGT_DETERM
    PCH_COSTING_WGT_A_DETERM
    save it.
    Now use MM02 and go to classification view , now you would be able to see these characterstic there.
    Check and come back.
    Thanks
    Ritesh

  • Error in adding stock to the material

    Hi
    While adding stock to the material using MB1C I am getting an error "Fld selectn for mvmt type 561 / acct 399999 differs for Ext. GA amount in LC (023)"
    What can be the solution ??

    Option-1: Check Field status group in the create/bank/interest TAB for G/L in FS00 & check its assignments in OBC4 & Field Selection for status of Ext. GA amount in LC like optional/required/suppress
    Use OMJJ t.code - 561 mvt - field selection and check additional account assignment (here Ext. GA amount in LC  is optional/required/suppress.)
    Option-2: Can also run the programme RM07CUFA through SE38 to update.
    Regards,

  • BAPI needed  for  change material(Transaction : MM02)

    Hi all,
    We have a requirement where in we need to post the documents throuh BAPI for change material (Transaction: MM02).
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    CHECK THIS CODE
    *& Report  ZBAPI_MATERIAL_SAVEDATA
    REPORT  ZBAPI_MATERIAL_SAVEDATA NO STANDARD PAGE HEADING MESSAGE-ID (ZHNC).
    TYPES:BEGIN OF TY_MAT,
           MATERIAL(4),
           IND_SECTOR(1),
           MATL_TYPE(4),
           MATL_GROUP(9),
           BASE_UOM(3),
           BASE_UOM_ISO(3),
           PLANT(4),
           DEL_FLAG(1),
           PUR_GROUP(3),
           BASE_QTY(13),
           STGE_LOC(4),
           MRP_IND(1),
           SALES_ORG(4),
           DISTR_CHAN(2),
           DEL_FLAG1(1),
           MIN_ORDER(13),
           LANGU(2),
          MATL_DESC(40),
       END OF TY_MAT.
    DATA: IT_DATA TYPE TABLE OF TY_MAT,
          WA_DATA LIKE LINE  OF IT_DATA.
    *decalraing flag
    data: v_flag value ''.
    *DECLARING WORK AREAs  TO BE PASSED TO THE FUNCTION MODULE.
    DATA: BAPI_HEAD LIKE BAPIMATHEAD,
          BAPI_CLIENTDATA LIKE BAPI_MARA,
          BAPI_CLIENTDATAX LIKE BAPI_MARAX,
          BAPI_PLANTDATA LIKE BAPI_MARC,
          BAPI_PLANTDATAX LIKE  BAPI_MARCX,
          BAPI_STORAGELOCATIONDATA LIKE BAPI_MARD,
          BAPI_STORAGELOCATIONDATAX LIKE BAPI_MARDX,
          BAPI_SALESDATA LIKE BAPI_MVKE,
          BAPI_SALESDATAX LIKE BAPI_MVKEX,
          BAPI_MAKT LIKE BAPI_MAKT,
          BAPI_RETURN LIKE BAPIRET2.
    *INTERNAL TABLE TO HOLD THE MATERIAL DESCRIPTION
    DATA: BEGIN OF IT_MAKT OCCURS 0.
    INCLUDE STRUCTURE BAPI_MAKT.
    DATA END OF IT_MAKT.
    DATA:BEGIN OF IT_RET OCCURS 0.
    INCLUDE STRUCTURE BAPIRET2.
    DATA END OF IT_RET.
    *INTERNAL TABLE TO HOLD HEADER DATA
    DATA: IT_EXCEL TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    *SELECTION-SCREEN ELEMENTS
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER: FNAME TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT 'C:\Documents and Settings\Administrator\Desktop\MATMAS.XLS' .
    PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
                P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
                P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
                P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK B1.
    *DECLARATION OF EXCELAL TABLE
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FNAME.
    PERFORM F_GET_FILE USING FNAME.
    START-OF-SELECTION.
    PERFORM F_XLS_ITAB USING FNAME
                       CHANGING IT_EXCEL.
    PERFORM F_MOVE_DATA.
    perform F_GET_DATA.
    *&      Form  F_GET_FILE
          text
         -->P_FNAME  text
         <--P_SY_SUBRC  text
    FORM F_GET_FILE  USING    P_FNAME LIKE FNAME.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
       PROGRAM_NAME        = SYST-REPID
       DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
      STATIC              = ' '
      MASK                = ' '
      CHANGING
        FILE_NAME           = P_FNAME
    EXCEPTIONS
      MASK_TOO_LONG       = 1
      OTHERS              = 2
    IF SY-SUBRC <> 0.
    MESSAGE E006(ZHNC).
    ENDIF.
    ENDFORM.                    " F_GET_FILE
    *&      Form  F_XLS_ITAB
          text
         -->P_FNAME  text
         <--P_IT_EXCEL  text
    FORM F_XLS_ITAB  USING    P_FNAME
                     CHANGING P_IT_EXCEL.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = FNAME
        I_BEGIN_COL                   = P_BEGCOL
        I_BEGIN_ROW                   = P_BEGROW
        I_END_COL                     = P_ENDCOL
        I_END_ROW                     = P_ENDROW
      TABLES
        INTERN                        = IT_EXCEL
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " F_XLS_ITAB
    *&      Form  F_MOVE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM F_MOVE_DATA .
    DATA : LV_INDEX TYPE I.
    FIELD-SYMBOLS <FS>.
    *--- Sorting the internal table
    SORT IT_EXCEL BY ROW COL.
    CLEAR IT_EXCEL.
    LOOP AT IT_EXCEL.
    MOVE IT_EXCEL-COL TO LV_INDEX.
    *--- Assigning the each record to an internal table row
    ASSIGN COMPONENT LV_INDEX OF STRUCTURE WA_DATA TO <FS>.
    *--- Asigning the field value to a field symbol
    MOVE IT_EXCEL-VALUE TO <FS>.
    AT END OF ROW.
    APPEND WA_DATA TO IT_DATA.
    CLEAR WA_DATA.
    ENDAT.
    ENDLOOP.
    ENDFORM.                    " F_MOVE_DATA
    *&      Form  F_GET_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM F_GET_DATA .
    LOOP AT IT_DATA INTO WA_DATA.
    MOVE-CORRESPONDING WA_DATA  TO  BAPI_HEAD.
    BAPI_HEAD-BASIC_VIEW ='X'.
    BAPI_HEAD-SALES_VIEW ='X'.
    BAPI_HEAD-PURCHASE_VIEW ='X'.
    BAPI_HEAD-STORAGE_VIEW ='X'.
    MOVE-CORRESPONDING WA_DATA TO BAPI_CLIENTDATA.
    BAPI_CLIENTDATAX-MATL_GROUP = 'X'.
    BAPI_CLIENTDATAX-BASE_UOM = 'X'.
    BAPI_CLIENTDATAX-BASE_UOM_ISO = 'X'.
    MOVE-CORRESPONDING WA_DATA TO BAPI_PLANTDATA.
    BAPI_PLANTDATAX-PLANT = BAPI_PLANTDATA-PLANT.
    BAPI_PLANTDATAX-DEL_FLAG = 'X'.
    BAPI_PLANTDATAX-PUR_GROUP = 'X'.
    BAPI_PLANTDATAX-BASE_QTY = 'X'.
    MOVE-CORRESPONDING WA_DATA TO BAPI_STORAGELOCATIONDATA.
    BAPI_STORAGELOCATIONDATA-PLANT = BAPI_PLANTDATA-PLANT.
    BAPI_STORAGELOCATIONDATAX-PLANT = BAPI_STORAGELOCATIONDATA-PLANT.
    BAPI_STORAGELOCATIONDATAX-STGE_LOC = BAPI_STORAGELOCATIONDATA-STGE_LOC.
    BAPI_STORAGELOCATIONDATAX-MRP_IND = 'X'.
    MOVE-CORRESPONDING WA_DATA TO BAPI_SALESDATA.
    BAPI_SALESDATAX-SALES_ORG = BAPI_SALESDATA-SALES_ORG.
    BAPI_SALESDATAX-DISTR_CHAN = BAPI_SALESDATA-DISTR_CHAN.
    BAPI_SALESDATAX-DEL_FLAG = BAPI_SALESDATA-DEL_FLAG.
    BAPI_SALESDATAX-MIN_ORDER = 'X'.
    REFRESH IT_MAKT.
    IT_MAKT-LANGU = WA_DATA-LANGU.
    IT_MAKT-MATL_DESC = WA_DATA-MATL_DESC.
    APPEND IT_MAKT.
    CLEAR IT_RET.
    REFRESH IT_RET.
    PERFORM F_CALL_BAPI.
    READ TABLE IT_RET WITH KEY TYPE = 'S'.
    IF SY-SUBRC EQ 0.
    PERFORM F_BAPI_COMMIT.
    WRITE:/ 'MATERIAL CREATED OR UPDATED SUCESSFULLY WITH MATERIAL NO',WA_DATA-MATERIAL.
    ELSE.
    MESSAGE E000(ZHNC) WITH 'ERROR IN CREATING THE MATERIAL'.
    *WRITE: / 'ERROR IN CREATIN MATERIAL',IT_RET-MESSAGE.
    *PERFORM F_DOWNLOAD.
    ENDIF.
    *ENDIF.
    ENDLOOP.
    ENDFORM.                    " F_GET_DATA
    *&      Form  F_CALL_BAPI
          text
    -->  p1        text
    <--  p2        text
    FORM F_CALL_BAPI .
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        HEADDATA                   = BAPI_HEAD
       CLIENTDATA                 =  BAPI_CLIENTDATA
       CLIENTDATAX                =  BAPI_CLIENTDATAX
       PLANTDATA                  =  BAPI_PLANTDATA
       PLANTDATAX                 =  BAPI_PLANTDATAX
       STORAGELOCATIONDATA        =  BAPI_STORAGELOCATIONDATA
       STORAGELOCATIONDATAX       =  BAPI_STORAGELOCATIONDATAX
       SALESDATA                  =  BAPI_SALESDATA
       SALESDATAX                 =  BAPI_SALESDATAX
    IMPORTING
       RETURN                     =  IT_RET
    TABLES
       MATERIALDESCRIPTION        = IT_MAKT
      UNITSOFMEASURE             =
      UNITSOFMEASUREX            =
      INTERNATIONALARTNOS        =
      MATERIALLONGTEXT           =
      TAXCLASSIFICATIONS         =
      RETURNMESSAGES             =
      PRTDATA                    =
      PRTDATAX                   =
      EXTENSIONIN                =
      EXTENSIONINX               =
    APPEND IT_RET.
    ENDFORM.                    " F_CALL_BAPI
    *&      Form  F_BAPI_COMMIT
          text
    -->  p1        text
    <--  p2        text
    FORM F_BAPI_COMMIT .
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT         =
    IMPORTING
      RETURN        =
    ENDFORM.                    " F_BAPI_COMMIT

  • BAPI or FM to get open sales orders to material like TC VA05N

    Hi,
    i'm searching for a bapi or fm to get a list with all open sales orders to a material like the tc va05n this do. Maybe some of you know such a bapi or fm.
    I tried the fm SD_SELECT_SALES_DOCUMENTS but i don't get the result i hoped.
    Would be happy if someone could help me.

    Hello Alexander,
    To get Open Sales order has VA05N use the Function Module
    RV_SALES_DOCUMENT_VIEW_3
    We need to pass value to the Importing parameters VBCOM
    To get the open sales order
    VBCOM-VKORG = sales organisation
    VBCOM-ZUART  = 'A'
    VBCOM-TRVOG = '0'
    VBCOM-STAT_DAZU = 'X'
    VBCOM-NAME_DAZU = 'X'
    VBCOM-KOPF_DAZU = 'X'
    VBCOM-VBOFF = 'X'
    VBCOM-AUDAT = Begin Date
    VBCOM-AUDAT_BIS = end date
    By passing this variable you will get the all open sales for given sales organisation and given date.

  • I would like to see the added keywords under the picture like iPhoto does it. Is that possible? I cannot find an answer

    I would like to see the added keywords under the picture like iPhoto does it. Is that possible? I cannot find an answer in Aperture 3.2.1

    Hello Wontolla, I meant the Aperture main menu, there is a sub menu "View", see the Screenshot:
    Set all flags in the Metadata Display submenu as I did,  to show Metadata in Viewer and Browser, and then select "Customize"
    Pick the Metadata fields you want to display for all views.
    Make sure, that "Contents -> Keywords" is checked.
    Regards
    Léonie

  • Classification data in Material master

    Hi
    Is there any FM to read classification data in material master from buffer. I know there is a FM CLAF_CLASSIFICATION_OF_OBJECTS to read, but this reads from database tables. I want to know the FM, which would read this from buffer.
    Thanks
    Karthik

    Hi Ganga,
    Yes I am passing different countries to table .
    LOOP AT IT_STAX into WA_STAX.
           wa_taxclassifications-depcountry = wa_stax-aland.
            wa_taxclassifications-tax_type_1 = wa_tstl-tatyp.
            wa_taxclassifications-taxclass_1 = wa_stax-taxm1.
            wa_taxclassifications-tax_ind    = wa_stax-taxim.
            APPEND wa_taxclassifications TO it_taxclassifications.
    ENDLOOP.
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
          EXPORTING
            headdata           = wa_headdata
          TABLES
            taxclassifications = it_taxclassifications
            returnmessages     = it_return[].

  • How  to create classification view for material?

    HI All,
    How to create classification view for material? is there any function  module?
    pls let me know.
    Bandi

    check the standard include "LCLBPAU14" this is using the following F.M
    call function 'BAPI_OBJCL_CREATE'
    exporting
    objectkeynew = l_object
    objecttablenew = l_objecttable
    classnumnew = classnum_new
    classtypenew = l_classtype
    status = status
    standardclass = standardclass
    changenumber = changenumber
    keydate = keydate
    no_default_values = no_default_values
    importing
    classif_status = classif_status
    tables
    allocvaluesnum = allocvaluesnum
    allocvalueschar = allocvalueschar
    allocvaluescurr = allocvaluescurr
    return = return.

  • Need userexit while saving the material in MM02

    Hi folks,
    Need a userexit while saving the material in MM02 transaction.Kindly help me out.
    Regards,
    Raj.

    FM while saving the MM02 is 'MAFI_POPUP_TO_CONFIRM_SAVE'.
    Regards,
    Rajasekhar.

  • How to assign the vendor for Pipeline material like Oil,power etc.

    Dear All,
    Can anybody tell me , how tp  assign the vendor for Pipeline material like Oil,power etc.

    Dear,
    Create source list ME01 maintain vendor here if vendors are multiple.
    Create Info record ME11for vendor and material combination
    Regards,
    R.Brahmankar

  • Classification view for material

    Hi all
         I am creating materials using BAPI_MATERIAL_SAVEDATA. I need to fill the characteristics values of the material also.
    Can anyone please tell How to create the Classification view for material  using BAPI_MATERIAL_SAVEDATA.
    Thanks
    Neelima.

    Hi,
    1. First create the material using BAPI_MATERIAL_SAVEDATA.
    2. Create classification using bapi BAPI_OBJCL_CREATE
    Create the classification
        call function 'BAPI_OBJCL_CREATE'
          exporting
            objectkeynew    = v_object
            objecttablenew  = c_mara
            classnumnew     = wa_temp-klart
            classtypenew    = wa_temp-classtyp
          tables
            allocvalueschar = i_bapi_char_tmp
            return          = i_bapi_return.
    Thanks
    Subhankar

Maybe you are looking for

  • Problem restoring my library from backup DVD's

    Here is my situation. . . . I recently had an internal hard drive crash that contained all of my 45 GB of music. . . The hard drive that crashed was my secondary, internal hard drive (F drive). Luckily, I created a back-up DVD of my entire library la

  • Lookup dimension- plz help !!

    Hi all, Can anyone help me with the concept of " lookup dimension " ? How to use lookup dimension ..? My requirement is that, I need to use looked up value in import script, I do not want mapping to be applied at Validation stage, I want mapping at i

  • My credit balance is gone!

    I purchased a $25 credit last month. i only used $2. Now that a want to make a call, it showing that i have $0.00 balance. I check my acount billing history and it says i did'nt purchase anything. What am i suppose to do now! i am mad. Please help me

  • Can't pair iphone & ipad

    I can't seem to pair my iphone & ipad via bluetooth since the ios 7 update. I tried turning both devices on and off and even clicked on "forget this device and now the ipad just sits there saying "connecting". Not sure what to do. ?

  • Safari unexpectedly shutting down.

    4 times in the last week or i have been browsing on yahoo, when safari unexpectedly closes. i then get a message saying "safari has closed and this has not affected other programs, would i like to get more info and send a report to apple?" so i do th