BAPI to copy a material to other plant

Hi Forum,
   I need to copy a material from the plant(werks) 2000 to the plant 2300, but i need to use the same material number, wich BAPI can copy this material?
Thanks in advance,
John P.

Hi John,
Use the BAPI BAPI_MATERIAL_SAVEDATA, but pass the material number in the HEADDATA as well as providing the new PLANTDATA.
If you supply the material number, it will extend the material, rather than creating a new one.
Cheers,
Brad

Similar Messages

  • MM01 -- Update Was terminated while copying the material from one plant

    Hi Experts,
    While I am trying to copy the material from one plant like ETPE to another plant ETPZ , its telling that material created.
    But when we try to display the created material in MM02 for plant ETPZ , it says that material does not exist.
    Note : After creating the material , if we try to move any transaction code it shows the error message box and  says that Update was terminated .
    Kindly help us to resolve this.
    Regards,
    Vijay

    Hi rob,
    we have put the debugging , if there is any badi , enhancement the debugger would have gone to exit or enhancement line but its not going to any where.
    and I have checked in sm13 ..
    its giving the error like update was terminated
    from funtion module : MATERIAL_UPDATE_DB
    Report name :      LGRAPU37
    row : 360.
    ABAP/4 processor: POSTING_ILLEGAL_STATEMENT
    but if we go and see in the row 360 ...
    CALL SCREEN 100 line only
    is there , even if we put the breakpoint in this line , while we are debugging , debugger is not going to that line .
    Note : if we see the screen 100 it shows the empty screen.

  • BAPI - To extend material to other plants (z program).

    Dear Friends,
    Please help to know the relevant BAPI can be used for below requirement:
    Material created one plant (Plant1).
    Same has to be extended to other plants (Plant2 & Plant3). Including price and all other data as is needs to be extended. I need to create u2018zu2019 transaction. Please help to know the correct BAPI that I can use.
    Thanks in advance for your help.
    Best regards,
    Lainel.

    Dear Wolfgang Valtin,
    You are right.
    Tested, Working fine.
    Thank you verymuch for your help.
    Resolved my query. Given points- 10.
    Thanks & Regards,
    Lainel.

  • Extend material master in other plants

    Hi there,
    I have 5 plants, one of them (e.g. Plant P001) is the main distributor for supplying all the materials for the rest. I´m using valuation at plant level.
    When I create a new material, I do it initially in the main plant and I have to extend it to the rest of the plants.
    My doubt is, there is a way to extend the material to other plants automatically including the sales views?
    I would like to minimize the possibilities of errors for manual entry, for example, enter the average cost of the material, which have to be the same for all plants.
    Thanks in advance,
    Mairo.

    Hi
    Please find below web links for information and procedure for Legacy system migration workbench
    link:[http://www.sap-img.com/sap-data-migration.htm]
    link:[http://www.sap-basis-abap.com/sapgeneral/step-by-step-legacy-system-migration-workbench-lsmw.htm]
    link:[http://www.sapdb.info/wp-content/uploads/2008/08/lsmw.pdf]
    Hope this help
    Regards
    Vikrant

  • Material extension to other plants

    Hi,
    Is there any easy way to extend material to other plants in
    SAP R/3.
    Regards,
    Fawaz

    Sorry I should have been more precise.
    For Mass Extension of Material to a plant.....
    Has anyone made a Z prog for doing the same....
    Regards,
    Fawaz

  • Transfer of cenvat credit to other plant

    Hi,
    I have a plant AAAA.I have recieved raw materials and availed cenvat credit.
    Now I'm transferring the material to other plant BBBB.
    Is it possible to transfer the cenvat credit availed in plant AAAA to plant BBBB.
    Regards,
    Venkatesh

    Hi Lakshmi,
    During intra company STO process,when materials are transferred does the cenvat availed at one plant is transferred to other plant?
    FI consultant is not clear on this so i posted.
    So kindly request you to transfer this post to FI forum if it is not relevant to MM,as i don't know how to do it.
    Edited by: Venkatesh DY on Jan 18, 2012 11:54 AM

  • MIC from one plant to be Extend in other Plant Codes

    Dear SAPians,
    I want to extend the MIC from one plant to other 7 plant codes. Please guide how can i do it?
    Thanks in Advance.

    Hi Atul,
    As suggested by Kundan, it is recommended to use the MICs created in one plant in other plants, to reduce the duplication of master data.
    If  the MIC parameters / control indicators are different in other plant, then you can change in the inspection plan or create new MIC by copying the MIC from other plant, but you cannot extend MIC from one plant to other plant.
    If your business  says all the MICs should be plant specific, then create MICs in all the plants by copying from the existing plant. You can use master data uploading tools for large volume of data.
    With Best Regards,
    Vithal

  • StockTransfer Finished product of one plant to other plant as a packingmate

    HI,
      CAN ANY ONE PLEASE HELP ME AS TO IS IT POSSIBLE THROUGH   STO    TO TRANSFER A FINISHED PRODUCT OF
      ONE PLANT AS A  PACKING MATERIAL TO OTHER PLANT .
      WE ARE DOING THIS TO AVOID THE SALE AND PURCHASE ENTRIES. WE WANT ALSO THE PROPER EXCISE ENTRIES TOBE
    GENREATED.
    PLEASE REPLY IF IT IS POSSIBLE.
    REGDS
    MS PUSHPI BOSCO

    Hello
    As per my knowldge, it is not possible to maintain same material code in this scenario.
    All you can do is to make 2 matrial codes for finished and semifinshed material and at the time of STO betweem the plants, Do material to material transfer (movement type 309) either before issuing for STO from plant 1 or after receiving in plant 2.
    Will explain the steps:
    Material code M0001- finished good (handle) in plant A.
    Material code M0002- Semifinished goods (handle) to be maintained in plant A and plant B.
    STO (material code M0002) for stock to be transferred from Pant A to Plant B.
    Material to material transfer (M0001 to M0002)in plant A using movement type 309.
    GI (Material M0002) from Plant A against STO.
    GR (Material M0002) at Plant B.
    Hope it is clear.
    Regards

  • Copying one material attributes to another material thro' FM or BAPI

    Hi,
    My requirement is :
    To copy a material attributes from one material(old) to an another material(new). Can anybody suggest a FM or BAPI for this?
    Thanks,
    Kaarthick

    Hi,
    These answers never helped me. I can reformat my quesion : Pls. suggest a BAPI/RFC/FM used to create a new material with reference to an old material.
    Hope this is understandable one.
    Thanks,
    Kaarthick

  • How to duplicate material master record to other plants

    Dear Experts,
    I created a material (by transaction MM01).
    Since I have 9 different plants, I'd like to duplicate it for each plant. The only way I found is by transaction MM01 using the section "copy from...".
    Do you have any more quick solution?
    thank you all
    federica

    Hi,
    Goto transcation MM17
    Select tables MBEW & MARC and click on fileds tab
    Select your fields, what ever you want in the purchase and accounting view. If you are using split valuation, then select valuation category.  But first time, don't select valuation type.
    Execute
    Click on    DATA RECORD TO BE CREATED tab
    Enter Material no and Plant code ( For this plant, you need to be extend material)
    Put on crusher on the field VALUATION TYPE and click on the very first icon SELECTION OPTIONS (which is at end of the section and adjust to the delete icon). Double click on the SINGLE VALUE. So, in this case Valuation type is equal to blank value.
    specify allready existing material number and plant code in the reference section ( these are at end of the screen) .
    click on execute and enter values. click on save. Material number is extended.
    If are you using split valuation, then do  same process/excersie once again.
    This time select table only MBEW and filed Valuation type.
    Regards
    KRK

  • How to extend material cross many plants using BAPI?

    Hi.
    when i use BAPI 'BAPI_MATERIAL_SAVEDATA' to extend material cross plants, i can not extent accounting view.
    code as below:
                BAPI_MARC-PLANT = IT_GOUJIAN-WERKS.
                BAPI_MARCX-PLANT = IT_GOUJIAN-WERKS.
                CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
                  EXPORTING
                    headdata            = BAPIMATHEAD
                   CLIENTDATA          = BAPI_MARA
                   CLIENTDATAX         = BAPI_MARAx
                    PLANTDATA           = BAPI_MARc
                    PLANTDATAX          = BAPI_MARcx
                   VALUATIONDATA       = BAPI_MBEW
                   VALUATIONDATAX      = BAPI_MBEWX
                  IMPORTING
                    RETURN              = IT_RETURN.
                 TABLES
                   MATERIALDESCRIPTION = IT_MATERIALDESC.
    i just change the plant data.
    any advice?

    You can extend the material in several plants using
    BAPI_MATERIAL_SAVEDATA
    All you need to do is populate the import parameter
    WA_HEADDATA-MATERIAL
    WA_HEADDATA-IND_SECTOR
    WA_HEADDATA-MATL_TYPE
    and check the views that you want to maintain in the new plant.
    Suppose you want to maintain only Basic view than..
    WA_HEADDATA-BASIC_VIEW = 'X'.
    And based on selected views , you need to populate other
    parameters.
    like I want to maintain basic view in another plant than
    I need to populate the plant data.
    WA_PLANTDATA-PLANT = <PLANT>.
    populate other fields, if required.
    WA_PLANTDATAX-PLANT = <PLANT>.
    populate flags, if required.
    and pass these parameters to the Function module.
    It should work.
    Please reward, if you find the answer useful.

  • Bapi  to mark a material for deletion in a particular plant and a particula

    Hi all,
    can any send me the code for bapi  to mark a material for deletion in a particular plant and a particular storage location
    Thnaks

    I would assume that it is something pretty close to this.
    report zrich_0001 .
    data: headdata type bapimathead.
    data: plantdata type bapi_marc.
    data: plantdatax type bapi_marcx.
    data: sldata type bapi_mard.
    data: sldatax type bapi_mardx.
    data: return type  bapiret2 .
    data: returnm type table of bapi_matreturn2 with header line.
    data: xmara type mara.
    parameters: p_matnr type mara-matnr,
                p_werks type marc-werks,
                p_lgort type mard-lgort.
    select single * from mara into xmara
              where matnr = p_matnr.
    headdata-material        = xmara-matnr.
    headdata-ind_sector      = xmara-mbrsh.
    headdata-matl_type       = xmara-mtart.
    headdata-STORAGE_VIEW = 'X'.
    plantdata-plant    = p_werks.
    plantdata-del_flag =  'X'.
    plantdatax-plant   = p_werks.
    plantdatax-del_flag = 'X'.
    sldata-plant    = p_werks.
    sldata-stge_loc = p_lgort.
    sldata-del_flag =  'X'.
    sldatax-plant    = p_werks.
    sldatax-stge_loc = p_lgort.
    sldatax-del_flag = 'X'.
    call function 'BAPI_MATERIAL_SAVEDATA'
         exporting
              headdata             = headdata
              plantdata            = plantdata
              plantdatax           = plantdatax
              storagelocationdata  = sldata
              storagelocationdatax = sldatax
         importing
              return               = return
         tables
              returnmessages       = returnm.
    check sy-subrc  = 0.
    Regards,
    Rich Heilman

  • Copy BOM Material History to new plant

    Hi All,
            My requirement is to copy BOM Material with their history regardless of validation to new plant .I had tried with FM CSAP_MAT_BOM_CREATE and this CSAP_MAT_BOM_MAINTAIN but getting the error message Engineering change mgmt called with datathat could not be interpreted.
           Help me out ,if you have any suggestion to achieve this requirement.
    Regards,
    Albert Tigga

    Here`re some FMS
    CM_CL_P_COM_COPY_BY_BOM                                   
    CM_CL_P_COM_COPY_UPDATE_BY_BOM                            
    CP_CC_S_COPY_BY_BOM                                       
    CS_CL_S_MAT_BOM_COPY                                      
    CS_CL_S_MAT_BOM_CREATE_BY_COPY                            
    CS_RT_BOM_COPY                 Copy bill of material      
    CUCPOBOM_COPY_CONFIGURATION                               
    CUMCOBOM_COPY_INFORMATIONS                                
    API_DOCUMENT_COPY_BOM                                                                               
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Knowledge comes but wisdom lingers!!"

  • How to restrict other plant material assigned to SA BOM explosion

    Dear Experts
    One of our client havea issue of assigning wrong material to the scheduling agreement BOM explosion.
    Actually there are two different plant code one for manufacturing plant and another one trading.Subcontractor activity will be carried out in trading plant , but users assigning the BOM components from manufacturing plant material.
    So they are sending material to vendor from manufacturing plant and receiving material to trading plant.But finance guy don't want do like that.
    How to restrict other material (material not part of SA plant)assignment to SA BOM explosion
    Thanks in advance
    Regards
    SS

    Thanks for your reply.
    In BOM creation CS01 , if plant is differ from header to line item system will give error message M3 351
    "Material &&&&&& not maintained in plant &&&&".
    Like that i want to make it in ME38 BOM explosion also.If plant is differ from scheduling agreement line item to BOM line item system should give error message.
    For the above scenario I need the solution
    SS

  • Sale wrt STO of raw material from a manufacturing plant to other plant

    Hi Gurus,
    My scenario is that, I have procured a raw material for PLANT A. At the time of procurement it  hits RG23A PART1 AND RG23A PART2 registers. Now I want to sell this raw material without any value addition to other PLANT B of the same company code.
    Here the excise requirement is that at the time of delivery it should hit RG23A PAR1 AND PART2 and should not hit RG1 register.
    i request you to pls guide me how to execute this process in SAP so that it satisfies excise requirements.
    Thanks and Regards
    ujwal

    Seems you need new mov type- ( in place of 641)
    is this requirement is only for Raw material STO??
    Generally , even when you do STO for Raw Material,as per excise it should hit RG1- Not sure,why you want it to be posted in RG23A reg.

Maybe you are looking for

  • How to view individual art board in Bridge CS4?

    Hi. Can somebody tell me how to configure the Adobe Bridge CS4 so that it shows/views/displays individual art boards (that I can scroll thru) and NOT the whole *.ai file (which contains ALL the art boards)? I want to preview the individual art boards

  • Workflow issue in SC (WS10000276) - Value limit 1 step approval

    Dear Experts, We are configuring 1 step value limit approval in SRM 7.0 for SC. We have maintained the attribute SLAPPROVAL for the employee who raises the shopping cart with the manager. For the roles assigned to Manager and employee we have specifi

  • FM to validate a date

    Hi! I have a text field which may store a date or some text. I need to validate if the contents of field is a valid date or not. Is there a function module for the same? Also what are the commonly used FM for date validations or conversions? Thanks a

  • How to replicate "NOT IN" functionality

    I have SQL code that looks like this: SELECT A, B, C, D FROM TABLE_A WHERE (A, B) NOT IN (SELECT A, B FROM TABLE_B); What's the best way to replicate this functionality in an OWB mapping? Thank you, Douglas Faust Long Island University

  • I just installed Mountain Lion in my MacBook Pro '12 and keeps restarting and restarting (Here's the Report Log)

    Here's the problem log: Interval Since Last Panic Report:  20998 sec Panics Since Last Report:          6 Anonymous UUID:                    3A61E6C0-CB97-4FB4-808C-F0A408A7E642 Sun Jul 29 09:04:19 2012 panic(cpu 1 caller 0xffffff8000cb7b95): Kernel