Extend material codes
Dear Friends,
i want to extend more then 800 material codes from one plant to another.and some of them material are with different price as compared to exist price and i have no option to say the Abaper to write down the BDC about it....currently i am extending these maually one by one....Please suggest me if any other idea.
Thanks
Vijay Sharma
Hi,
Use LSMW to extend materials from one plant to another plant with t.code MM01 or MMZ1 (for used material).
For more check the links:
http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
http://moryhanry.com/sapbdctransferprocedure.html
http://moryhanry.com/sapbdcsample.html
Regards,
Biju K
Similar Messages
-
Extend material code to user id
Dear all
How to extend a material code to a user id? Is it MM module job?
Thanks in advance.
RegardsHi
Can you please elaborate on the meaning of extension of material code to user id.
Material code or material master can be only extended to different organizational objects like Plant, Storage location, Warehouse, Sales organization ...
Material extension is carried out with MM01 transaction.
Thanks & Regards
Kishore -
Extend the Material Code from One Business Area to other Business Area.
Dear All,
I have create some material codes in a business area XYZ with Storage Location AA11 in Company code ABC. There is another business area PQR with Storage Location BB22 in Company code ABC. How can I extend the Material Codes of the Business Area XYZ with Storage Location AA11 to Business Area PQR with Storage Location BB22 through LSMW.
I am waiting your reply.
Regards,
HemangTo extend material masters you can use anyone of the SAP given import methods in LSMW.
But I am a bit confused with the terms you are using, what do you mean by business area? and a material master is not created per company, the company is not among the organisation levels.
Are you talking about plant and sales area? -
To Extend material to plant using MATERIAL_MAINTAIN_DARK .
I am tryin to extend material into plants using MATERIAL_MAINTAIN_DARK function module.Can someone please check the code below and tell me how i should modify it to work.Is BDC a better option?
DATA: t_amara_ueb LIKE mara_ueb OCCURS 0 WITH HEADER LINE.
DATA: t_amarc_ueb LIKE marc_ueb OCCURS 0 WITH HEADER LINE.
t_amara_ueb-mandt = sy-mandt.
t_amara_ueb-matnr = it_reqdata-material.
t_amara_ueb-tcode = 'MM01'.
t_amara_ueb-tranc = 1.
APPEND t_amara_ueb.
CLEAR t_amara_ueb.
t_amarc_ueb-mandt = sy-mandt.
t_amarc_ueb-matnr = it_reqdata-material.
t_amarc_ueb-werks = it_reqdata-plant.
t_amarc_ueb-tranc = 1.
t_amarc_ueb-KZKRI = 'X'.
APPEND t_amarc_ueb.
CLEAR t_amarc_ueb.
call function 'MATERIAL_MAINTAIN_DARK'
exporting
flag_muss_pruefen = 'X'
p_kz_no_warn = 'N'
kz_prf = space
kz_verw = 'X'
kz_aend = 'X'
kz_dispo = 'X'
tables
amara_ueb = t_amara_ueb
AMARC_UEB = t_AMARC_UEB
EXCEPTIONS
KSTATUS_EMPTY = 1
TKSTATUS_EMPTY = 2
T130M_ERROR = 3
INTERNAL_ERROR = 4
TOO_MANY_ERRORS = 5
UPDATE_ERROR = 6
OTHERS = 7
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
COMMIT WORK.
ENDIF.
Thanks and Regards,
Pratima.Hi ,
Use the below code.
DATA : lt_mara_ueb TYPE TABLE OF mara_ueb INITIAL SIZE 0,
lt_marc_ueb TYPE TABLE OF marc_ueb INITIAL SIZE 0,
lt_errors TYPE TABLE OF merrdat INITIAL SIZE 0.
DATA : wa_mara_ueb TYPE mara_ueb,
wa_marc_ueb TYPE marc_ueb,
wa_messtab TYPE merrdat.
DATA : l_mstring(480).
parameters: l_matnr like mara-matnr.
* Set up I_MARA
REFRESH lt_mara_ueb.
wa_mara_ueb-mandt = sy-mandt.
wa_mara_ueb-tcode = 'MM01'.
wa_mara_ueb-matnr = l_matnr.
wa_mara_ueb-tranc = '0000000001'.
APPEND wa_mara_ueb TO lt_mara_ueb.
CLEAR wa_mara_ueb.
SELECT SINGLE * FROM marc INTO CORRESPONDING FIELDS OF wa_marc_ueb
WHERE matnr EQ l_matnr AND werks EQ '01FC'.
IF sy-subrc EQ 0.
MOVE '01BV' TO wa_marc_ueb-werks.
wa_marC_ueb-tranc = '0000000001'.
WA_MARC_UEB-PSTAT = SPACE.
APPEND wa_marc_ueb TO lt_marc_ueb.
ENDIF.
CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'
EXPORTING
* FLAG_MUSS_PRUEFEN = 'X'
* SPERRMODUS = 'E'
* MAX_ERRORS = 0
p_kz_no_warn = 'N'
kz_prf = 'W'
* KZ_VERW = 'X'
* KZ_AEND = 'X'
* KZ_DISPO = 'X'
* KZ_TEST = ' '
* NO_DATABASE_UPDATE = ' '
* CALL_MODE = ' '
* CALL_MODE2 = ' '
* USER = SY-UNAME
* SUPPRESS_ARRAY_READ = ' '
* FLG_MASS = ' '
* IMPORTING
* MATNR_LAST =
* NUMBER_ERRORS_TRANSACTION =
TABLES
amara_ueb = lt_mara_ueb
* AMAKT_UEB =
amarc_ueb = lt_marc_ueb
* AMARD_UEB =
* AMFHM_UEB =
* AMARM_UEB =
* AMEA1_UEB =
* AMBEW_UEB =
* ASTEU_UEB =
* ASTMM_UEB =
* AMLGN_UEB =
* AMLGT_UEB =
* AMPGD_UEB =
* AMPOP_UEB =
* AMVEG_UEB =
* AMVEU_UEB =
* AMVKE_UEB =
* ALTX1_UEB =
* AMPRW_UEB =
* AMFIELDRES =
* AMERRDAT =
EXCEPTIONS
KSTATUS_EMPTY = 1
TKSTATUS_EMPTY = 2
T130M_ERROR = 3
INTERNAL_ERROR = 4
TOO_MANY_ERRORS = 5
UPDATE_ERROR = 6
OTHERS = 7
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK.
Regards,
Raghav -
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-
AbhiHi,
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 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. -
Extend material master data from one plant to another plant
hi,
how can i extend material master data from one plant to another plant.
is there any sap standard transaction for this ie. bdc/t-code.
thanks in advance.......
rahulHi
If you want to extend the material form one plant to another then below are the possible options.
1) MM01 - Use the material in the reference and fill in copy from and to then press enter to complete the extention.This is recommended only if you want to extend very less records.
2) Use LSMW and record MM01 thru BDC recording available in LSMW and make the template in excel and convert it to .txt tab delimited format to upload more records.LSMW is the perfect tool and is used extensively in all the projects.
3) Get the help from ABAPer to create upload program and include the BDC recording.
There is no standard T code available in SAP becoz data mainatenance in the material master will be based on the industry.
Hope it will help.
Thanks/Karthik -
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
SukumarHi,
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 -
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 -
How to extend material to sto loc
Hi All
i have material at plant level
Now i want to extand the material at storage location level
Kindly let me know how i can do it
Thanks
regards
ManjuHi ,
1>
For extension of material individually for single material and plant go for MMSC
This will work for 1 material , 1 Plant and Multiple Slocs but these have to be given manually.
2>
For for mass extension at sloc level for Material Code use : MMSC_MASS
In this T Code extend all the matcodes to all Sloc of ONE respective Plant
Revert back for any querry -
Extend material by 'BAPI_MATERIAL_SAVEDATA'
Hi,
the code is as below(it is failed):
BAPIMATHEAD-MATERIAL = it_error-MATNR.
BAPIMATHEAD-BASIC_VIEW = 'X'.
BAPI_MARC-PLANT = IT_GOUJIAN-WERKS.
BAPI_MARCX-PLANT = 'X'.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = BAPIMATHEAD
PLANTDATA = BAPI_MARc
PLANTDATAX = BAPI_MARcx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
i just want to extend material created to more plants .
any advice?Hello,
DATA: BEGIN OF GT_TAR_ORG OCCURS 0,
WERKS TYPE WERKS,
WEART TYPE /RB04/OES_YL3_WERKT,
MTART TYPE MTART,
END OF GT_TAR_ORG.
LOOP AT GT_TAR_ORG.
HEADDATA-MATL_TYPE = GT_TAR_ORG-MTART.
GR_PLANTDATA-PLANT = GT_TAR_ORG-WERKS.
GR_PLANTDATAX-PLANT = GT_TAR_ORG-WERKS.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = HEADDATA
CLIENTDATA = GR_CLIENTDATA
CLIENTDATAX = GR_CLIENTDATAX
PLANTDATA = GR_PLANTDATA
PLANTDATAX = GR_PLANTDATAX
IMPORTING
RETURN = GR_RETURN
TABLES
MATERIALDESCRIPTION = MATERIALDESCRIPTION
UNITSOFMEASURE = UNITSOFMEASURE
UNITSOFMEASUREX = UNITSOFMEASUREX
RETURNMESSAGES = GT_RETURNMESSAGES
MATERIALLONGTEXT = GT_MATERIALLONGTEXT
EXTENSIONIN = GT_EXTENSIONIN
EXTENSIONINX = GT_EXTENSIONINX.
Append the return messages to the return table.
APPEND GR_RETURN TO RETURNMESSAGES.
APPEND LINES OF GT_RETURNMESSAGES TO RETURNMESSAGES.
RETURN = GR_RETURN.
ENDLOOP.
If the BAPI is unsuccessful the error flag is X.
IF GR_RETURN-TYPE CA 'AEX'.
GF_ERROR = 'X'.
ENDIF.
LOOP AT GT_RETURNMESSAGES.
IF GT_RETURNMESSAGES-TYPE CA 'AEX'.
GF_ERROR = 'X'.
ENDIF.
ENDLOOP.
Commit only if the updations were successfull
Commit only if the updations were successfull
IF GF_ERROR IS INITIAL.
COMMIT WORK AND WAIT.
ELSE.
ROLLBACK WORK.
ENDIF.
If useful reward.
Regards,
Vasanth -
Extend material and customer to other sales areas
can u please let me know?
How to extend material and customer to other sales areas? To extend material one plant to another plant what are the configuration you done in your project?<b>To Extend Customer master: T.code - XD01:</b>
In XD01, enter Account Group, Customer Code, Company Code, Sales Organization, Distribution Channel & Divission. Also ensure to maintain reference Customer, reference Company Code, reference Sales Organization, reference Distribution Channel & reference Division --> Enter. Most of the fields will be copied by default, but some fields will not be copied & they have to be maintained in the same manner how we create a new customer.
<b>To Extend Material Master: T.Code - MM01:</b>
In MM01, Enter the Material Code & reference Material Code --> Enter.
Select the Tab pages to be maintained & go to organization data & maintain the details like Delivering Plant & Reference plant, Storage location & reference storage location, Sales Organization & reference Sales Organization, Distribution Channel & reference Distribution channel & so on ... --> Enter. Most of the fields will be copied by default, but some fields will not be copied & they have to be maintained in the same manner how we create a new material.
Regards,
Rajesh Banka
reward point if helpful. -
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 -
Maintain new storage location for existing material codes
Dear,
We want to extend material master to more storage locations. Currently we have coding starting from 910000 for finish material and is configured for storage location FG01, now we want to extend all the codes with 91 series to storage location PR06 & QC01
The same needs to be done for many other material codes with different series.
Kindly give suggestions/solutions
Thanks
Vikram Sanghvi.Hi,
You can use extend the material from Plant to plant or from Storage location to storage location.
or 2nd is that Go to SE16 to get all material from MARD Table. then
export in Excel and go to Mass mainteince in material master to extend the material.
try this one
http://www.sap123.com/showthread.php?t=158
this may help U !
Regards,
Pardeep Malik -
Hi Experts,
I have a Z-table for a gatepass report which was already created by another developer. This table has many fields including plant, year, material code field. (MATNR) etc
Now the problem is in SE11, I run the table to display the entries, when I enter plant and year and execute many entries are displayed.properly including material codes(e.g.50008536).
But when I execute the same entering plant, year and material code(e.g.50008536) then this message is displayed. " No table entries found for specified key"
The same thing happens if I am writing a select query in my report to get the data of any particular material code. My internal table is not filled with the data including that particular material code.
Some more info :
1. The material code field in the Z-table is assigned the standard material code Data element. i.e. MATNR
2. Even if I enter '000000000050008536' as input it is still not working. it is automatically changed to '50008536' after executing.
So please help me where the problem is? I have spent alot of time on this but not able to find the problem..
Thanks,
Vishal .Hi Vishal,
Hope I understand that table content does not starts with zero for material, reply me if i am wrong.
Use this code before where condition.
loop at so_matnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = so_matnr-low
IMPORTING
OUTPUT = so_matnr-low.
if so_matnr-high is NOT INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = so_matnr-high
IMPORTING
OUTPUT = so_matnr-high.
endif.
MODIFY so_matnr.
endloop.
if table content is filled with zero use FM conversion_exit_alpha_input
Regards,
Venkat.
Maybe you are looking for
-
Invoice line items - inconsistant data returned from RV_BILLING_PRINT_VIEW
Hi there, We are using a modified version of SAP standard Print Program RVADIN01 for our invoices, for many years now. Everything works fine 99.9% of the time. Every now and again though, there is issue with the invoice, the root of which is data bro
-
Not getting Rate(%) of Tax
Hello Experts, I want to display in my report rate(%) of Tax for Excise , Sale Tax ,TCS,VAT.. etc against each material in invoice. I m getting amount for different condition types for diff taxes but not the % of Tax Plz suggest. Aastha
-
How to create XML element with out creating a document
I ve been looking for hours for a method to create an XML element without the need for the Document. I am trying to create objects that access the database, and I need in each of these objects a method that returns only an element (ie. getXMLData()).
-
How to set the default view (Alphabetic) in CCM ?
Hi guys, Easy question for smart guys =) In CCM we have 2 views: groups and index (alphabetic). How can I set the default view ? For example, I would like to have always the index view (alphabetic) Thanks for your help guys ! regards, Diego
-
Having trouble with if else when used with event.value... please help
Please can someone shed any light on where i'm going wrong. I have a pdf form that uses a drop down menu for the SubBrand and a series of checkboxes for the Location. the following code is placed as a custom calculation script in an address text fiel