Material Master extension to different Plants.
I am presently using BAPI_MATERIAL_SAVEDATA to create material master in a particular plant. Is there an easy way to extend these to another plant.
or
Do i need to use BAPI_MATERIAL_SAVEREPLICA and pass different plant numbers in the MARC table in the initial creation itself.
Thanks in advance
Hi every one,
By using bapi : Bapi_material_Savedata u can achieve it..
u have to pass only these values to extend material from one plant to another plant.
Example Requirement : Material 100-101 is available only in plant 1000, So lets Copy material 100-101 to a plant 1200.
Note : Pass values in block letters only
In headdata structure :
1.headdata-material " matnr : '100-101'
2.headdata-ind_sector " mbrsh : 'M'
3.headdata-matl_type " mtart : 'HALB'
4.headdata-basic_view " kzsel : 'X'
5.headdata-purchase_view "kzsel : 'X'
In Clientdata structure :
1.Clientdata-base_uom " meins : 'PC'
In Clientdatax structure :
1.Clientdatax-base_uom "meins : 'X'
In Plantdata Structure :
1. plantdata-plant "werks : '1200'
2. plantdata-countryori "herkl : 'DE'
In PlantdataX Structure :
1. plantdataX-plant "werks : 'X'
2. plantdataX-countryori "herkl : 'X'
By passing above data u can extend material from one plant to another plant..
Similar Messages
-
Material Master Extension to all the plants of same type
Hi
In the given scenario, we have almost 200 plants where same materials are required , now when we create material master using Tcode MM01 we want to extend this material master to all the plants of same type in one go .Is it possible , if yes , how to go about it ?? please help, this is the specific customer requirment .
ans will be rewarded
rgds
mojibHi,
Just go through the code
report ZMM_FERT_CREATE_EXT_PLANT
no standard page heading line-size 255.
*include bdcrecx1.
DATA : it_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE,
it_bdcmsgcoll LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
data : p_filex type string .
types: BEGIN OF t_mm01,
matnr(018),
MAKTX(040),
mtart(004),
matkl(009),
WGBEZ(020),
bklas(004),
vprsv(001),
werks(004),
vkorg(004),
vtweg(002),
sktof(001),
versg(001),
kondm(002),
ktgrm(002),
meins(003),
gewei(003),
j_1ichid(012),
j_1isubind(001),
j_1icapind(001),
j_1igrxref(001),
tragr(004),
ladgr(004),
mtvfp(002),
xchpf(001),
mtpos_mara(004),
mtpos(004),
ekgrp(003),
BWTTY(010),
meins1(003),
meins2(003),
meins3(003),
sales_txt(040),
purc_txt(040),
mbrsh(001),
verpr(015),
peinh(006),
stprs(015),
brgew(017),
ntgew(017),
j_1ivalass(018),
umrez1(006),
umren1(006),
umrez2(006),
umren2(006),
umrez3(006),
umren3(006),
lgort(004),
TAXKM1(001),
TAXKM2(001),
HERKL(003),
HERKR(003),
J_1IMOOM(018),
end of t_mm01.
DATA : it_mm01 type table of t_mm01 with header line initial size 0.
*Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE text-001.
PARAMETERS: p_file like IBIPPARMS-PATH obligatory.
SELECTION-SCREEN:END OF BLOCK B.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file .
PERFORM get_filename.
*START-OF-SELECTION
START-OF-SELECTION.
PERFORM upload_data.
PERFORM fill_data.
*& Form upload_data
* text
* --> p1 text
* <-- p2 text
form upload_data .
p_filex = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_filex
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = '#'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* NO_AUTH_CHECK = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
tables
data_tab = it_mm01
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
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. " upload_data
*& Form get_filename
* text
* --> p1 text
* <-- p2 text
form get_filename .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = p_file
IMPORTING
FILE_NAME = p_file .
if sy-subrc NE 0 .
write : / 'Enter File Name'.
endif.
endform. " get_filename
*& Form fill_data
* text
* --> p1 text
* <-- p2 text
form fill_data .
*perform open_group.
loop at it_mm01.
clear it_bdcdata.
refresh it_bdcdata.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MTART'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'RMMG1-MATNR'
it_mm01-matnr.
* '116100'.
perform bdc_field using 'RMMG1-MBRSH'
'C'.
perform bdc_field using 'RMMG1-MTART'
'FERT'.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(16)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(03)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(05)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(06)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(07)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(09)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(10)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(13)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(16)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '0080'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-VTWEG'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'RMMG1-WERKS'
it_mm01-werks.
* '9010'.
perform bdc_field using 'RMMG1-LGORT'
it_mm01-lgort.
* 'F901'.
perform bdc_field using 'RMMG1-VKORG'
it_mm01-vkorg.
* '1000'.
perform bdc_field using 'RMMG1-VTWEG'
it_mm01-vtweg.
* '03'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'MAKT-MAKTX'
it_mm01-maktx.
* 'Test ACEPHATE TECHNICAL 50kg'.
perform bdc_field using 'BDC_CURSOR'
'MVKE-MTPOS'.
perform bdc_field using 'MVKE-VERSG'
it_mm01-versg.
* '1'.
perform bdc_field using 'MVKE-KONDM'
it_mm01-kondm.
* '03'.
perform bdc_field using 'MVKE-KTGRM'
it_mm01-ktgrm.
* '01'.
perform bdc_field using 'MVKE-MTPOS'
it_mm01-mtpos.
* 'NORM'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'MAKT-MAKTX'
it_mm01-maktx.
* 'Test ACEPHATE TECHNICAL 50kg'.
perform bdc_field using 'MARC-MTVFP'
it_mm01-mtvfp.
* '01'.
perform bdc_field using 'MARC-XCHPF'
it_mm01-xchpf.
* 'X'.
perform bdc_field using 'BDC_CURSOR'
'MARC-LADGR'.
perform bdc_field using 'MARC-LADGR'
it_mm01-ladgr.
* '0003'.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'MAKT-MAKTX'
it_mm01-maktx.
* 'Test ACEPHATE TECHNICAL 50kg'.
perform bdc_field using 'MARC-HERKL'
it_mm01-HERKL.
* 'IN'.
perform bdc_field using 'MARC-HERKR'
it_mm01-HERKR.
* '01'.
perform bdc_field using 'BDC_CURSOR'
'J_1IASSVAL-J_1IVALASS'.
perform bdc_field using 'J_1IMTCHID-J_1ICHID'
it_mm01-J_1ICHID.
* '2913 00 90'.
perform bdc_field using 'J_1IMTCHID-J_1ISUBIND'
it_mm01-J_1ISUBIND .
* 'X'.
perform bdc_field using 'J_1IMTCHID-J_1ICAPIND'
it_mm01-J_1ICAPIND.
* 'F'.
perform bdc_field using 'J_1IMTCHID-J_1IGRXREF'
it_mm01-J_1IGRXREF .
* '2'.
if it_mm01-J_1IVALASS <> '0'.
perform bdc_field using 'J_1IASSVAL-J_1IVALASS'
it_mm01-J_1IVALASS.
* '0'.
endif.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'MAKT-MAKTX'
it_mm01-maktx.
* 'Test ACEPHATE TECHNICAL 50kg'.
perform bdc_field using 'BDC_CURSOR'
'MARC-EKGRP'.
perform bdc_field using 'MARC-EKGRP'
it_mm01-ekgrp.
* '002'.
perform bdc_field using 'MARC-XCHPF'
it_mm01-xchpf.
* 'X'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'MAKT-MAKTX'.
perform bdc_field using 'MAKT-MAKTX'
it_mm01-maktx.
* 'Test ACEPHATE TECHNICAL 50kg'.
perform bdc_field using 'MARC-STEUC'
it_mm01-J_1ICHID.
* '2913 00 90'.
perform bdc_field using 'MARC-HERKL'
it_mm01-HERKL.
* 'IN'.
perform bdc_field using 'MARC-HERKR'
it_mm01-HERKR.
* '01'.
perform bdc_field using 'J_1IMTCHID-J_1ICHID'
it_mm01-J_1ICHID.
* '2913 00 90'.
perform bdc_field using 'J_1IMTCHID-J_1ISUBIND'
it_mm01-J_1ISUBIND.
* 'X'.
perform bdc_field using 'J_1IMTCHID-J_1ICAPIND'
it_mm01-J_1ICAPIND.
* 'F'.
perform bdc_field using 'J_1IMTCHID-J_1IGRXREF'
it_mm01-J_1IGRXREF.
* '2'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'MAKT-MAKTX'.
perform bdc_field using 'MAKT-MAKTX'
it_mm01-maktx.
* 'Test ACEPHATE TECHNICAL 50kg'.
perform bdc_field using 'MARC-XCHPF'
it_mm01-xchpf.
* 'X'.
*perform bdc_field using 'MARA-IPRKZ'
* 'D'.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'MAKT-MAKTX'
it_mm01-maktx.
* 'Test ACEPHATE TECHNICAL 50kg'.
perform bdc_field using 'BDC_CURSOR'
'MBEW-STPRS'.
perform bdc_field using 'MBEW-BKLAS'
it_mm01-bklas.
* '7930'.
perform bdc_field using 'MBEW-VPRSV'
it_mm01-vprsv.
* 'S'.
perform bdc_field using 'MBEW-PEINH'
it_mm01-peinh.
* '1'.
perform bdc_field using 'MBEW-VERPR'
it_mm01-verpr.
* '273.75'.
perform bdc_field using 'MBEW-STPRS'
it_mm01-stprs.
* '207'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
CALL TRANSACTION 'MM01' USING it_bdcdata
MODE 'A'
UPDATE 'A'
MESSAGES INTO it_bdcmsgcoll.
CLEAR it_mm01.
endloop.
*perform bdc_transaction using 'MM01'.
*perform close_group.
endform. " fill_data
*& Form bdc_dynpro
* text
* -->P_0297 text
* -->P_0298 text
form bdc_dynpro USING prog scr.
CLEAR it_bdcdata.
it_bdcdata-program = prog.
it_bdcdata-dynpro = scr.
it_bdcdata-dynbegin = 'X'.
APPEND it_bdcdata.
endform. " bdc_dynpro
*& Form bdc_field
* text
* -->P_0687 text
* -->P_IT_MM01_VPRSV text
form bdc_field USING fnam fval.
CLEAR it_bdcdata.
it_bdcdata-fnam = fnam.
it_bdcdata-fval = fval.
APPEND it_bdcdata.
endform. " bdc_field
Regards,
Madhu. -
Dear All,
Now my requirement is to extend materials from one plant to another plant.So i used BAPI_MATERIAL_SAVEDATA which is working fine.But if I open the material in tcode MM02 then material master extension is not happening.
even if the material is opened , material master extension should happen.How to solve this?
Regards,
V.GaneshRaja.are u using COMMIT work in ur program or not ?
Regards
Peram -
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 -
Mass changes of Material Master field with different values
Hi,
How to change a field in Material Master for more than thousand materials. I think MM17 can only be used for mass changes of materials with same values. I need to upload different values for different materials. Is there any other way to do this.
Thanks,
K R Vishnu KumarHi Kumar.
I think you have to use LSMW for mass updation for Material Master fields with different values.
Regards,
Rahul. -
Error when I create the New material Master (MM01) for New Plant.
Dear experts,
I got the error when I create the New material Master (MM01) for New Plant.
Error: Valuation Area 2800 Not yet productive with Material Ledger.
So Pl send me the solution asap.
Venkata Raju KhottariHi,
Have u assinged Plant to Company code?
If u say no, use T.code OX18.
Regards,
Murali
Assign points if it is useful. -
WF - Error in Material Master extension
Hello friends
I have some changes to the coding(in ABAP not BOR) related to a workflow of Material Master creation and extension, there is a Z table from where it picks the profit centre to create and extend materials.
When Profit centre is there for a plant, the workflow executes without error but when profit centre is not there then workflow is not executed, it gives the following error.
ROLLBACK WORK executed (SWP_CALLBACK_WI_DONE item 8)
ROLLBACK WORK executed (SWP_CONTINUE_WITH_NEXT_NODES item 1)
stating that it could not find agents.
I have checked in MM01 Profit centre is not a obligatory field and neither is there any check in coding for the same.
I have no idea what to do, please guide.
Thanks
BhavnaDear Bhavna,
Please check if you are validating Profit Center before calling agent determination. It appears that Agent Determination is linked with Profit Center.
Hope this is helpful.
Regards,
Naveen. -
While assigning batch material get locked in different plant.
Dear Guru,
After implementation ,frequently facing problem, In CO02 we are assigning the batch manually to the material but one material is configured with valuation type domestic / import. while assinging the bacth to the material system showes to another user who iis entering the same material in different plant is xxxx user is locked the material so u cant assign the batch, but batch we are maintiaining in material level. (batch maintianed in material level.)
currently we are going in sm12 transcationa and removing the lock, but we want to know why it is happening. what is the root cause for the error.
Please advice.
Thx
NaraHI
It is Standard SAP at a time same material or its masters cannot be used by multiple users ids or with same user id also
system gives error material is locked.You can unlock it thru SM12 but be careful while soing so some the data which the another user using may be or may not be lost.
the better way is to ask the user to come out of that material or release it after doing his work
Regards
Anupam Sharma -
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
federicaHi,
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 -
Problems in having common material and batch in different plants
Hi all,
As the material with the same batch is existing in different plants, we are facing some problems in processing the Process Messages.
If some user who belongs to a different plant is processing the batch for the material, the Process messages are not being sent the destination as we get an error message that the reservation is currently processed by user (who actually belongs to a different plant). This is effecting the Business.
Can anyone tell me how we can prevent this? Could the reservation and Batch status set as plant level control via standard IMG change ?
Regards,
BrijeshYes Rajanikanth,
But can you please let me know whether it is not possible to restrict this so that the batch processed in different plants should not affect in our plant?
Thanks.
Regards,
Brijesh -
Material master extension for a particular material
hi everyone,
i got a requirement to add a customized screen for a particular material, i designed the screen and added that by going into spro. the screen is viewable now but for all materials. so could anyone tell me how to make it visible only for a particular material type.
Thanks heaps
SuryaHi mate
double click the material type in T.code oms2 and higlight the view in user department so it will be displayed in the material master creation,if not deselect the item so it wont be available in MM01 .
Hope this helps
cheers
Chellam -
Material extension in different plants
Sir,
My Client has 11 plants in india, he wants the same material in all 11 plants hence i suggested to go in mm01 and make an extension. but their view is that as there are 20 to 30 materials added ed every month. this procedure would be time consuming. hence i need way how to maintain same material in all 11 plants simultaneously.
Regards.Hi,
Use LSMW or BDC to extend these materials and also using tcode: MM50
Please refer the below links.
mass extension
Mass Extension of Materials to various Plants
material extension
Hope its helps you.
Thanks -
Material Supply Received in Different Plant
Dear Sir,
We have following scenario :
We have 2 plants , Plant 'A' and Plant 'B' . These Plants are located at differnt location and both Plant are on SAP .
Plant 'A' has placed the Purchase Order for a Material 'X' to some Vendor . Plant 'A' has also paid 50% advance to vendor . Vendor has to make the Material Delivery to Plant 'B' . Plant 'B' will now do some value addition on this material and the finished component will be invoiced to Customer by Plant 'B' itself .
Kindly guide us as what steps need to be followed in SAP to address the above scenario .
Pl help me .
Regards
SoniaHI,
This does not involve more complexity as such.
Please proceed with the following transactions.
1. Create a PO at plant A with the delivery address as plant B and release the PO to the vendor.
2. There should be an information flow between these two plants for the confirmation of delivery
3. Once delivery is confirmed, you can process the remaining 50% of payment to your vendor
4. Meanwhile after value addition in your plant B there should be definetely a product code change for the material which you can bill it to your customer upon successful delivery of the same.
Regards, -
Flag Material master for deletion at plant level using MM17
Hello Everybody,
Here is the issue.
We are trying to flag materials for deletion using MM17.
When we try to set deletion flag at client level everything looks good.
But when we try to set deletion flag at plant level we are getting the following error message.
Messages have been issued: number MASS172234000587
Message no. MK101
Diagnosis
During inbound processing for the IDoc, messages have arisen while checking material data.
System Response
The system has filed these messages in the form of an application log with the number
Any thoughts..
Regards
PravinIf you get such red message in MM17, then you can select it and click the button for detail.
This will get you into the application log where you can review the detailed error cases.
Alternative, you can access the log with transaction SLG1, enter as object: MASS and as sub object: BUS1001
Execute.
Double click the message text "Messages have been issued: number MASS172234000587
You get a pop-up from where you can disply the application log (hyperlink Execute at the very end of the text) -
Material group in material master for different plants
Warm greetings Masters of Material Management
We have one material master for three different plants example 1000, 2000 &3000 with same material group with different valuation class
If we change material group in plant 2000 it is reflected in 1000 & in 3000
My question is this the standard practice that material group changed in one plant will be reflected in other plants
Regards
shamul heqThank u Amola
The current situation, if user change material group for plant 2000, it is effected in plant 1000 & in 3000
the impact of this is in purchase requisition
As the release statergy is triggered from material group to different department
How can we solve this issue
regards
shamul heq
Maybe you are looking for
-
Lost Boot Camp partition after upgrading to OS X Mavericks
History: I had Windows 8 installed on Boot Camp. For some reason I had to enable Bit Locker in Windows that required me to create a partition using Windows Disk Utility. The Windows Disk Utility created the partition but then there was mismatch betwe
-
A script to help find the cause of recent upgrade breakage
This script accepts package names as arguments and will output both a full dependency tree for each package, including installation dates of each dependency, and a list of all dependencies arranged by installation date in descending order along with
-
Hi! Can someone tell me how can I merge data from one table in one clob? for example: I have table emp with columns id,name,iddept. Now I need those data in one clob column for each iddept. id name iddept 1 jack 01 2 joe 01 3 inna 02 4 blake 03and no
-
Having email trouble with iPad
All of a sudden I'm not receiving emails on my iPad, it just keeps on saying the mail server "imapgmail.com is not responding verify if I have entered the correct account into mail settings
-
[SOLVED] Changing Directory Display in NCMPCPP Browser
Is anyone familiar with an option to change how directories are displayed in NCMPCPP's file browser? The default surrounds a directory with brackets, i.e. [Boards of Canada] [Califone] [Department of Eages] I can't find an option to disable or change