BAPI changing Material Masterdata - EAN type unwillingly modified

Hello everybody!
I want to modify material units of measure with BAPI : BAPI_MATERIAL_MAINTAINDATA_RT
I fill
HEADDATA,
CLIENTDATA,
CLIENTDATAX,
PLANTDATA,
PLANTDATAX,
UNITSOFMEASURE  ,
UNITSOFMEASUREX
tables.
For some articles, the EAN (EAN11) and EAN category (NUMTP) are unwillingly changed, without dump or message.
Those articles look like this:
Before: 2124781000000 (6 nul positions), internal EAN category Z1.
After BAPi: 2124780000000 (7 nul positions), EAN cat : EA
There are 2 units of measure : ST and CAR (CAR = 20 ST for example)
I don't want the EAN to change. I suppose my selection is uncomplete in the BAPI.
I add that it was working fine before our ECC6 upgrade.
Can anyone please help ?
François Leyssenne

It is fixed at last , The problem was I was setting only
listParams.setValue("MATERIAL", "346"); to fetch standard data ( MATERIALVALUATIONDATA ) .
To fetch MATERIALVALUATIONDATA which consist of Standard Price and Currency  we need to set this parameters  also.
listParams.setValue("PLANT", "ZRP3");
listParams.setValue("VALUATIONAREA", "ZRP3");
And you will get the complete MATERIALVALUATIONDATA  data structure then .
|-|------------------------|------------------------|--------|-----|---|
| STRUCTURE 'BAPIMATDOBEW'
|-|------------------------|------------------------|--------|-----|---|
|P|MOVING_PR               |STD_PRICE               |PRICE_UN|CURRE|CUR|
|-|------------------------|------------------------|--------|-----|---|
|0|   1   2   3   4   5   6|   7   8   9   0   1   2|   3   4|56789|012|
|-|------------------------|------------------------|--------|-----|---|
|S|00000000000000000000000C|00000000000000000100000C|00001C00|INR  |INR|
|-|------------------------|------------------------|--------|-----|---|
{PRICE_UNIT=1, PRICE_CTRL=S, CURRENCY_ISO=INR, STD_PRICE=10.0000, MOVING_PR=0.0000, CURRENCY=INR}

Similar Messages

  • Change material master i.e MM02 using BAPI's

    Hi ,
    I need a BAPI which will change material master for changing MRP 2,Accounting 1 and Costing 1  View .
    Please provide me with code if possible .
    Thank you .
    Regards,
    Kumar.

    hi ,
    Use the fm SELECTION_VIEWS_FIND to get the list of active view for a particular materisl.
    The index of each record in the returned table will correspond to the position of that view in the list of views that is displayed in the bdc recording.
    The number of views maintained for a material is listed in field MARA-VPSTA.
    Each Letter in above fields indicate the views maintained. Following is the list.
    A Work scheduling
    B Accounting
    C Classification
    D MRP
    E Purchasing
    F Production resources/tools
    G Costing
    K Basic data
    L Storage
    P Forecasting
    Q Quality management
    S Warehouse management
    V Sales
    X Plant stocks
    for bdc check this,
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bdc%2btutorial
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/new%2bpage
    BDC:
    Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
    Features :
    BDC is an automatic procedure.
    This method is used to transfer large amount of data that is available in electronic medium.
    BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
    BDC uses normal transaction codes to transfer data.
    Types of BDC :
    CLASSICAL BATCH INPUT (Session Method)
    CALL TRANSACTION
    BATCH INPUT METHOD:
    This method is also called as ‘CLASSICAL METHOD’.
    Features:
    Asynchronous processing.
    Synchronous Processing in database update.
    Transfer data for more than one transaction.
    Batch input processing log will be generated.
    During processing, no transaction is started until the previous transaction has been written to the database.
    CALL TRANSACTION METHOD :
    This is another method to transfer data from the legacy system.
    Features:
    Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
    Updating the database can be either synchronous or asynchronous. The program specifies the update type.
    Transfer data for a single transaction.
    Transfers data for a sequence of dialog screens.
    No batch input processing log is generated.
    For BDC:
    http://myweb.dal.ca/hchinni/sap/bdc_home.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    Check these link:
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm
    http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
    http://www.planetsap.com/bdc_main_page.htm

  • To change material using BAPI

    Hi All,
    We are using BAPI_MATERIAL_SAVEDATA to change a material. But end user is not having the authorization to modify using this bapi. because this BAPI is used for both creation and for changing so it is checking creation object Authorization and  it is failing.
    Kindly suggest me some other BAPI to Change the material to avoid the above problem.

    try these..
    /SAPMP/BAPI_MATERIAL_SAVEDATA  Mill Products: Create and Change Material Master
    BAPI_MATERIAL_MAINTAINDATA_RT  Create and change material master data (retail)
    BAPI_MATERIAL_EDIT             Change Material

  • I want to change Material Type for mass upload.(MMAM)

    hi all,
    I want to change Material Type for mass upload.(MMAM)
    Suggestion pls? or Any BAPI is availablre?
    Edited by: abap_friends on Jan 6, 2011 7:12 AM
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Jan 6, 2011 11:27 AM

    This may be little tough for 10000 sales orders.
    1. You have to remove the output record for the irrelevant output record using tcode VV12 for the relevant document type. So now for the document type, the old output wont be triggered.
    2. Now, create output records for hte correct output type in VV11 tcode(for the output type BA03) for the document type. Now this output will be triggered for all the document types you are creating from now onwards.
    3. To trigger the output type BA03, in all the old orders, you just have to open these sales orders in change mode (VA02), and just save it. When u open it the output type BA03 will be automatically triggered as the master data is maintained in VV11. But because just opening all the 10000 sales orders in VA02 one by one be a mechanical task, you have to think of some tool for this.
    May be a CATT procedure can do the trick. Else, you can just create a small program, where you can upload these sales orders and the program will just open these orders in change mode and just saves it (without making any changes). Then the output will be retriggered.
    Here again, if you are printing the output directly, it is advisable to trigger the output in batch mode(Date/Time field is 1 in VV11), and then you can again trigger the printing again using the program RSNAST00 after office hours for these 10k orders.
    I hope I answered ur query.
    Pls lemme know if you need some more info. (You can reward me too...)

  • 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

  • Change return order(Doc type: RE) with BAPI

    Hi Experts,
    I am trying to change material quantity return document(Doc type: RE) through BAPI.
    I have tried using BAPI : BAPI_CUSTOMERRETURN_CHANGE, but not able to change quantity, though the BAPI returns success message.
    Is there any other BAPI/FM available to achieve same functionality.
    Thanks,
    Sri.

    Is there any one who can throw some lights on this..

  • Change material type

    When i am changing the material type i am getting this msg. In Po items were deleted.
    Change Material Type
    The material type cannot be changed.
    The reasons for this are:
    Valuated stock exists (see valuation areas below).
    However, account determination for the two material types differs.
    (different account category reference or no valuation data defined)
        Valuation area
        1030
    No open purchase order are there.

    hi
    plz check mmbe for the stock
    check for the open PR and PO in ME5A and me2m
    then try Change material type
    Material Type can be changed using transaction MMAM
    Menu: - Logistics > Material Management > Material Master > Material > Change Material Type
    u can also use MMZ2 to change material type and ind sec
    Refer following link for the same;
    http://www.sap123.com/showthread.php?t=21
    regards
    kunal

  • How to change the manual condition type value in change sales order BAPI

    Hi All,
    My scenario here is, i want to either add/change the manual condition type value during change of SO.
    When i'm trying to pass the  order_conditions_in and  order_conditions_inx tables in  'BAPI_SALESORDER_CHANGE'.
    Condition type is coming at item level but the value is setting to zero. Pls. help if anyone has any idea how to handle this.

    Siva,
       I guess you posted in Wrong Thread. You need to post in WAS section.
       check for any BAPI's available in CRM.
    Nagesh Ganisetti.

  • How to change material type and industrial sector of the exsisting material

    Hi,
    There is an issue where user wants to change material type and industrial sector of the exsisting material .Is  it posible to do so??
    IF not ,how can we delete that material from material master so that another material with same number and required material type and industrial sector  can be created.
    Points will be definitely rewarded.
    Thanks
    Rohit

    Hi Rohit,
    You can change the material type in MMAM trxn code if the material dosenot conatain any open purchase requisitions, open reservations & open purchase orders. Also material stock should be zero.
    Remember the new material type should have same attributes same as old material type.
    OLD Material New Material
    1) Standard Price 1) Standard Price
    2) Manufacture part 2) Manufacture part
    profile actvated profile actvated
    3) Quantity & Value 3) Quantity & Value
    Updation in all areas Updation in all areas
    4) should have same GL 4) Should have same GL acs
    acs
    It is not possible to change Industry sector once created.
    If you want to delete the Material, you can flag it in MM06 trxn code.
    Reg,
    Ashok
    Dont forget to Assign points if useful.

  • How to avoid changing material type in MIGO & J1IEX ?

    Dear all,
    How to avoid changing material type in MIGO & J1IEX ?

    hii
    i think u asking about the , if the material is excisable , then it will ask for material type , not all material type , onle like asset , raw material, consumable, non cenvatable , finished oods and tools.
    There i hope its standard SAP system setting , because some time the if do consumable procurement with excisable material .
    While doing Gr or J1IEX system will consider that material is capital item, that we cancahge to raw material and we can utilize the cenvate credit in the same year .
    so it cannot be hide or making gray mode is difficult in practical.
    So revert any clarification
    Thanks

  • Transaction MMAM - Change material type

    Does anybody have documentation on transaction MMAM - Change Material type?
    Many thanks,
    stefano MAzzarelli

    Hi Stefano
       Kindly go thru the below link, this might help you.
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ff/515b2449d811d182b80000e829fbfe/frameset.htm">Change Material Type</a>
    Thanks,
    Alexander

  • Change material Type - 'MMA'

    I am trying to Change Material Type using T-code - 'MMAM'.But Message is coming PO already exist.
    Problem is tat we have already created GIN for the PO & Reversed the GIN also,but still PO is not getting release to Change any data.It is giving error,that GIN already exist.
    I want to Change the MAterial Type.How can i do that.??
    Viru.

    Please note that both the new material type and the old material type must have the      
    same characteristics eg. quantity based material management is one of   
    the characteristic. The R/3 Online Help provides a very good explanation 
    on all the pre-requisites before you can change a material type.        
    (Logistics Gen>Logistics Basic Data > LO Managing Material Master Data >
    Material Master Record > Material Type > Change Material Type)          
    Please check if you have set the deletion flag for any PO's as              
    these need to be physically deleted for MMAM to work. You will also         
    need to check if there are ANY open items for this order. The purchase      
    orders need to be ARCHIVED. You should complete the invoice receipt for     
    this position BEFORE you set the deletion flag in the purchase order.       
    Also, if the material is already in stock, or if reservations or           
    purchasing documents exist for it, the following conditions must also be   
    met:                                                                       
    >The stock values of the material of the new material type must be         
    updated in the same G/L account as the stock values of the material of    
    the old material type.                                                                               
    >Quantities and values of the material of the new material type must be    
    updated in exactly the same way in all plants as quantities and values    
    of the material of the old material type.                                                                               
    >If there is a transfer requirement for the material and if quantities     
    of the material exist, the new material type must also allow the          
    material data to be maintained from the Warehouse Management view.

  • Change material type and valuation class

    hi
    my client want to change material type and valuation class in their production system. but the material no. and some transaction had done by this material. anything i need to concern? especially, in FI part. thank

    Hey Changing of Material Type is one step
    Changing of valuation class is other
    and underneth that changing of account is another attached to the valuation class.
    The basic requiremnt will be that client want to change the G/L code attached to the valuation class.
    If you have already done some transaction it is not fininacialy right to move valuation classes.
    Tell in detail what is the requiremnt.

  • How to change Material Type

    Hi All,
    I have created new material type as ZINS ( Insurance spares ).
    Now,I have to change ZSPR ( Spares) material to ZINS material type.
    In system there are no liabilities for this material.But ,I am getting following error while executing T-code :-MMAM.
    Error :- " Change Material Type
    The material type cannot be changed.
    The reasons for this are:
    QM inspection data exists for the material. In this inspection data,
    it is defined that a plan is required for the inspection. However,
    inspection plans are not allowed for the new material type.
        Plant
        1100
        6001
    Task lists already exist for specific TL types for the material
    The new material type does not allow assignment of task lists for these TL types "
    I want to know is there any settings required while creating new material type in quality module,as this error seems to be related to Quality module.
    Please help,as this is very much urgent.
    Thanks.
    With Best Regards,
    Rajesh

    Hi Vivek and Murali,
    Thanks for your answers.
    In my question ,I mentioned that,
    In system there are no liabilities for this material.I want to know is there any settings required while creating new material type in quality module,as this error seems to be related to Quality module.
    I got answer,while creating new material type it was not assigned to in quality module.I need to assign the task list type ‘Q’ to the new Material type.
    I have done configuartion as follows, ( Path: SPRO -> Quality management -> Quality Planning -> Inspection planning -> Assign Task List Type to Material types).
    Once again thanks for your help and support.
    Regards,
    Rajesh

  • BAPI to change material assignment with serial number (IQ02)

    Hi Experts,
    Please let me know the BAPI to change material assignment with serial number in IQ02. I am using BAPI_EQUI_CHANGE, but this does not work. Waiting for Your valuable inputs...
    Thanks in advance,
    Birendra

    Hello Birendra,
    Honestly, I do not have good experience with the BAPI for serialnumber change...
    would suggest to explore function module:
    SERIALNUMBER_LIST_UPDATE
    or
    SERIALNUMBER_LIST_SAVE
    Also run ST05 to trace what kind of data it passed to these function modules by running IQ02!
    Cheers
    Krish

Maybe you are looking for