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.

Similar Messages

  • How to produce Material output message when use bapi function?

    Dear Experts :
    I use bapi BAPI_GOODSMVT_CREATE to receive stock.
    I find the output message can't create automatically even when I have set the type in MR21.
    Hope someone can teach me how to produce the message when I create the material document by BAPI function.
    Thanks a lot.

    Hi,
    The messages are stored in the return table of the bapi.
    You can search in SCN or Google for BAPI error handling.

  • How to extend material/customer

    Hello Experts
                         If I want to extend one material for different plant/sales org/storage location then how can i do this . Same for the customer , if i want to extend that customer for other sales areas then how can i do that ?
    Regards-
    Abhi

    Hi,
    You can extend material to different plant and sales organisation by using the T.Code "MM01".
    Enter the material number you want to extend and enter the same under copy from.Press Enter.
    Select the required views and enter new the plant and Sales organisation you want to extend.
    In a similar way,you can extend customer data as well.
    Regards,
    Krishna.

  • How to extend material to new sto loc

    Hi All
    Let me know how to extend material to new storage location
    Tks
    Manju

    Dear,
    You can extend material for new storage location via MMSC.
    Ans if you want to extend list of material for storage location you can use MMSC_MASS.
    If you want to extend material for plant you can use MM01 - for single material and MM50 - For multiple materials.
    Regards,
    Mahesh Wagh

  • How to extend material master product Hierarchy

    Hi,
    How to extend material master product Hierarchy
    Define Product Hierarchies (SAP Library - Material Master)
    In SAP help, the procedure is given, But in procedure we need to change standard structures and data elements.
    Need to know, This is only the possibilty?
    Need to change structure and data elements by Access key only or there is some other way.
    Regards
    Sukumar

    Hi,
    Use t.code:MM01 and in Copy From Field Give Material No ( u wan to copy) and in Next Screen Give Extending Plant & Storage Location and in Copy From Fields give Reference Plant & Storage Location.
    For more check the links for material extension.
    http://www.copacustomhelp.state.pa.us/infopak/nav/procurement/pr%20master%20data/file1434/index.htm
    http://www.copacustomhelp.state.pa.us/infopak/standard/fastpaths/mm01_content.htm
    Regards,
    Biju K

  • Extend material to another plant

    hi all,
    I want to extend materials to another plant using copy from...  Someone knows  which BAPI  Can I  use
    to do  this?
    thanks.
    marisol

    u can use "BAPI_MATERIAL_SAVEDATA".
    Suppose u have to Extend material from 1000 to 1100 plant.
    so ur template will be like this:
    Material Number,Current_Plant,extend_plant,valuation area ,Type
    Using Material Number,Current_Plant , valuation arear , Type and pass it to
    BAPI_MATERIAL_GET_DETAIL
    u will get all data 4 , BAPI_MATERIAL_SAVEDATA.

  • How to get Default Activity(Infotype 0315) using BAPI

    Hi Everyone,
    I have a task to get Default Activity by Personal number for my third party application. Unfortunately function HR_READ_INFOTYPE is not allowed for Remote Call.
    Is there any simple way how to get this value from system using BAPI? E.e. using RFC_READ_TABLE function(but i don't know table name ).
    Thanks,
    Roman.

    Table -> PA0315        Field ->LSTAR (Activity Type)
    Class :CL_HRPT_INFOTYPE_0315
    You can also use FM "CATS_GET_INFOTYPE_0315" RFC Enable
    Good luck !
    ~Saquib

  • How to extend material in storage location automatically???

    Dear Gurus,
    We have 9 plants in this company.
    Every time we create a material we have to extend it in all plants.
    Because it takes to long to do this one by one with MM01 we use mm17 and we created there a variant that extends the materials in all plants automatically.
    Then we have 3 storage locations for each plant. we use MMSC: enter storage locations collectively, to extend each the material in all the storage locations of the company 9x3 = 27. This takes too long as a procedure.
    Is there a way to automate this procedure, via rutines, codes, variants, ABAP etc??? and how should I do that??
    Thank you in advance

    Dear Friend,
    In customization spro>>MM>>inventory management>>Plant parameters>>select your plant >>click on create storage location automatically
    click that one, if your not extended the material to the particular storage location and doing the goods receipt to the particular storage location  system  will allow you to do that
    Regards
    Pramod

  • How to extend material master?

    to extend storage location we can use T-code MMSC. similarly to extend material master any T-code or any other  procedure is there? please help me

    Hi,
    Use t.code:MM01 and in Copy From Field Give Material No ( u wan to copy) and in Next Screen Give Extending Plant & Storage Location and in Copy From Fields give Reference Plant & Storage Location.
    For more check the links for material extension.
    http://www.copacustomhelp.state.pa.us/infopak/nav/procurement/pr%20master%20data/file1434/index.htm
    http://www.copacustomhelp.state.pa.us/infopak/standard/fastpaths/mm01_content.htm
    Regards,
    Biju K

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

  • Extending material in new plant

    I have mainteined the mm related views (basic data 1,2,Plnt storage data 1,purchasing accounting)for some materials and want to add FICO related views for the same material.But after gouing to MM02 ,im getting an error msg' Material not fully maintained for this transaction/event'.plz help as soon as possible.

    Hi,
    Some Material views extended through T.code MM50 provide the following input datas are
    Maintenance Status             :    ___ ( select drop down menu & select require material view )
    Material code                       :   ___________
    Plant                                    :   ___________
    after provided input datas and then executed. Now, one line item show and first small box tick mark and press maintenance button. The  view extended to the particular material.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • How to upload material text  in mm02 using bdc table control

    i have problem to upload material Description in mm02 using bdc.
    my text file is like
    2000251     AF     A12345               
    2000251     AR     B12345               
    2000251     BG     C12345               
    2000252     AF     F12345               
    2000252     AR     G12345               
    2000252     AF     H12345     
    i want to upload material number, language, and material description, how can i upload pls help me.

    Hi,
    Try with bapi , bapi_material_save_data.. didn't exactly remember it,Please check the same.
    Regards,
    Nagaraj

  • Extending Material to new plants - Legal Control

    Hi All.
    I am extending a material to new plants by copying the data froma particular plant.
    Whats happening is for some plants the LEGAL CONTROIL data (Foreign Trade Import view) is automatically getting copied and populated but for some plants it is not.
    What could be the reason?
    Poitns are assured !!!

    Hi , Thanks for the reply.
    But the plants for which data is automatically getting populated , I am selecting only the Foreign Trade view and not all the views.
    Regards

  • How to extend material ....

    hi all...
    Please let me know how to extend a material if the material and customer sales organization is matching and their distribution channel is not matching....
    I need to convert material distribution channel to customer distribution channel.
    Please let me know how to do this..if there is coding for it .please send to me.
    thanks in advance

    Hi Manu,
    Let's illustrate yourrequirement with an example as under:
    Say there is one sales organizaion - 1000, 2 distibtion channel - (10 & 20) & 1 division (10). With this combination I have 2 Sales Area: 1000/10/10 &1000/20/20. Say we have Company Code 1000.
    Material Master:
    Material Master can be extended to a combination of Sales Organization & Distribution Channel. Material cannot be extended to Division, as material forms apart of the Division. Suppose, I have alreadey created Material XXXXX for combination of Sales Org. 1000 & Distribution Channel 10. Now I have an requirement of material in combination Sales Org. 1000 & Distribution Channel 20.
    Through Transaction Code MM01, we can extend an material. In Transaction Code MM01 enter material as XXXXX & reference Material as XXXXX & enter. Most of the fields will be copied from Material Master maintained earlier. Now Maintain & modifiy relevant fields & save the Material. Material Master is extended.
    Customer Master:
    Cuatomer Master can be extended to a combination of Sales Organization, Distribution Channel & Division. Suppose, I have alreadey created Customer XXXXX for combination of Sales Org. 1000, Distribution Channel 10 & Division 10. Now I have an requirement of material in combination Sales Org. 1000, Distribution Channel 20 & Division 10. Through Transaction Code XD01, we can extend an material. In Transaction Code XD01, Select Account Group, say Sold to Party (0001), enter Customer as XXXXX, Company Code 1000, Sales Organization 1000, Distribution Channel 10, Division 10 & in reference enter  Customer as XXXXX, Company Code 1000, Sales Organization 1000, Distribution Channel 20, Division 10 . Most of the fields will be copied from Customer Master maintained earlier. Now Maintain & modifiy relevant fields & save the Customer Master. Customer Master is extended.
    Hope this clarifies your doudts.
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • T.code for extend material master to  plant

    Hi
    Is there any t.code  (other than mm01) to  extend the material master to plants?
    regards
    sesidhar

    Hi
    RAj
    THANK U so much fro ur information ,,and i want extend to storagelocation...i think it is not possible in MM50 T.code
    in mm50 stor.loc option is not there
    regards
    sesidhar

Maybe you are looking for