Exit while changing Material in MM01 or MM02
Hi gurus,
Im having some doubts with implementing an exit concerning TR. MM01 and MM02
I run TR. MM01 or MM02 , enter a Material Number, choose a view, then choose tab sales: sales org. 1. Every time that I change the field X-distr.chain status and DChain-spec. status with Z1 ( client specific restriction that allows blockING a material) I want to put the same Z1 but in tab Purchasing in field Plant-sp.matl status.
Im using EXIT  MGA00001 Material Master (Industry): Checks and Enhancements
I can put the Z1 in tab Purchasing field Plant-sp.matl status for a specific material number (MATNR), but my question is how can I confirm that the user choose a Z1 for a specific MATNR ? Im asking this because my code is triggered when the user push the save button, and at this time I dont have any modification in the table so I need to be sure that the user put the Z1 for a specific material?
Can u help me with this ?
TAB: sales: sales org.
X-distr.chain status = MARA-MSTAV
DChain-spec. status = MVKE-VMATA
TAB: Purchasing
Plant-sp.matl status = MARC MMSTA
Best regards,
Full reward points if helpful.
Mário.
HI Miki
Could you let us know for what purpose you want to use classification, ex: Define the charesteristic for material etc.
As it has many functionalities.
For creating the material with classification view, in the material type Classification view should be activated.
Goto OMS2, Select the material type & click on details.
Check for the material type Classification view is selected or not.
Select it if not selected.
Before creating the material master you need to maintain the Characteristics using CT04 & Class using CL02 with Class type 001 - Material class
Assigning the Characteristics to the Class in CL02
Goto MM01, create the material master selecting the Classification view & maintain the class maintained & the Characteristic Values.
From the Classification screen in the material master:
When you create classification data, the system asks you to choose a class type in a dialog box. If necessary, you can change the class type on the following screen, where you assign the material to one or more classes. Entries are made in the Description, Status, and Icon fields automatically on the basis of the classes you have chosen. If you have assigned the material to more than one class, you can flag one of the classes as the standard class. You can then assign values to the characteristics. For example, if the characteristic is color, you can assign it the value blue
Save the material after maintaining all the views required.
Also check the below link
http://help.sap.com/saphelp_46c/helpdata/en/ff/515d5849d811d182b80000e829fbfe/content.htm
Regards
Mascot
Edited by: Manish Kumar on Apr 11, 2011 5:44 AM
Similar Messages
-
User exit to change material availability date
Hi Gurus,
my requirement is like I need to change the material availability date based on some conditions.
Is there any User Exit to change the availability date so that I can dump my code in the user exit .
If not is there any alternative process to get the solution.
Thanks,
Sudhaa.............Hi Sudha,
Can you tell me your requirement clearly please.
Regards,
Dhanunjaya Reddy -
User exits while changing the PO Output Medium
Hello Champions,
Will anyone share me, is there any user exit which triggers while changing Purchase Order Output Medium in ME22N transaction. How to know list of user exits which are applicable for ME22N transaction?. will anyone guide me.
Reward with Full pointHi PV,
These are the list f User exits for ME22N:
Exit Name Description
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
Regards,
Maia -
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 -
Making ECR No. Compulsory While Changing Material BOM (T. Code CS02)
Hi,
In our business scenario, we want to make ECR No. compulsory while changing BOM using transaction code CS02. Process which we are looking at would be as below.
1) Default initial status of BOM will be set as u20182u2019 (Inactive) through customizing.
2) ECR No. should not be compulsory for transaction code CS01.
3) When BOM creation is completed, status of BOM will be changed to u20181u2019 (Active With History Requirements) by user.
4) When user goes to transaction code CS02 for changing BOM,
a. If BOM status is u20181u2019 & ECR No. is not entered, system should give error message (Message No. 29045) & should not allow user to go further.
b. If BOM status is u20182u2019, system should allow user to change BOM without entering ECR No.
5) Once BOM status is set to u20181u2019, system should not allow to change it.
Please guide me how this process can be achieved.Dear Abhijit,
If my understanding is correct then it seems you want to make change number as mandatory for CS02 alone.
apart from the configuration settings in OS27,setting the correct value for the authorization object C_STUE_NOH,normally it will be
made for all the T.Codes CS01/CS02.In your case you want to make it mandatory only for CS02 alone,So check in this way.
In this case you may have to create 2 different roles,one containing the authorization only for CS01 and for authorization object
C_STUE_NOH with Yes.
The other role for CS02 alone for the authorization object C_STUE_NOH with value set for No.
The same user should not be containing both these roles.(for Roles creation check with your admin consultant).
check whether this can help you.
Regards
Mangalraj.S -
Update Termination while creating Material Master MM01
Hello,
While creating the Material Master system is throwing the error Update was Terminated.
Before that we have client copied.
Can anybody throw some light??
Regards,
Kumar RayuduHi,
Check the material number ranges are copied ?
in SPRO>LOGISTICS GENERAL>MAT.MASTER>BASIC SETTING>NUMBER RANGES FOR MAETRIAL TYPES
BR
Diwakar -
Problem while creating Material Master (MM01)
Gurus,
I am novice to sap sd, and I am trying to create a Material (MM01) for a Customer, and have given the inputs 'Material', 'Industry sector' etc.
To my surprise, I am unable to see ' 'Sales org 1' , 'Sales org 2' ' Sales : General plant' tabs .
Should I need to enable something to view these tabs ?
All I could view is 'Organizational levels' ' check screen data' ' Additional data'
Kindly bare for this silly question!
Thanks,
KarthikHi,
Try to create a Material in this way. Check whether you are using same steps.
Go to MM01
Enter Industry sector & Material type (Eg: FERT - Finished Products)
Click on "Select view(s)" button option without pressing Enter key directly.
Then you should be able to see all tabs listed in "Select view(s)" pop up window.
Check whether "View selection only on request" tick box is marked. If it's marked, Un-tick it. If you have marked that, then this screen will not automatically appear.
Highlight relevant tabs.
Press "Organizational-levels" button in that pop up.
Enter relevant Sales Org/ DC & Division.
If "IOrg. Ievels/profiles only on request" is marked, then Un-tick that also. Its for same purpose as above.
Press Enter.
Now check whether you get those tabs in the Material Master.
Best regards,
Anupa -
Error while creating material thru MM01
when i try to create material with accounting and costing views , i am not able to save the material
i get an error message saying
" no cost estimate number could be assigned"
the explanation in help for this is
"If you create accounting data or costing data for a material for the first time, a so-called cost estimate number for the material is assigned by the system.
However, no such number could be assigned for this material."
any ideas on solving this problem
Regards
MangeshHi Mangesh,
Is the material you are dealing with related to REM?
Can you also type in the error message number.
Regards,
Prasobh -
Error while trying to change Material master
Hi ,
I am getting following error when I am trying to Change material master thru Tcode MM02
"Required parameter missing when calling up module MARA_SINGLE_READ"
In fact , I also couldn't select this Material in Purchase order .Error which i am getting is "Faulty Material"
Could anyone pls help me.
Regards
Sandeep marwhaI created a new material also , but for that also I am getting same error.
Regards
Sandeep -
Control to create or change material master
I want to let a group person to create or change material maters only with material group 16. I found an auth. obj. M_MATE_WGR, and set activity as *, while activity goups as 16. But the nothing happened when I change a material with material group 17. It seems this auth. obj. is not checked while change material master. Does any idea for this case? How to let the system check this auth. obj.?
Thanks great.HI,
Adding to what Sudipta has said, you can also use the workbook technique for accomplishing these type of changes. That way you can achieve all hover text changes in one shot across all MA tabs.
The 2 main tabs in the wokbook to be changed are: 'Localized Resource' and 'UI overrides' tab.
As an example, suppose you want to add the following text for Master Agreement External Category field:
"This field is a classification hierarchy to describe the products or services of the event and/or agreement."
So in the Localized resource tab, fill out the following:
BUNDLE: custom
RESOURCE_ID: xxx
RESOURCE_KIND: APP_TEXT
DEFAULT_VALUE: This field is a classification hierarchy to describe the products or services of the event and/or agreement.
Then refer the same attributes in the UI Overrides tab:
UI_ID: contracts.agreement.ui.buyside.default
FIELD: EXT_CAT
ATTRIBUTE: Description
VALUE: Same as Resource ID used in localized resource (xxx above)
Hope this helps,
Vikram Shukla -
Finding Userexit in MM01 and MM02
Hi,
I have to find the code given below to fit in which user exit and whether it can be added in exit or not
When executing MM01 and MM02 and entering the units of measure(via basicdata->Additionaldata->units of measure, a check needs to be implemented.when the unit measure(MARA-MEINH) entered is either ZPE,GPE or PAL)
1.Conversion factor (marm-umrez) must not be 1.
2.marm-umrez of GPE must be bigger than ZPE
3.marm-umrez of PAL must be bigger than GPE and bigger than ZPE.
4.marm-umrez of GPE must be a multiple of ZPE
5.marm-umrez of pal must be a multiple of GPE and ZPE.
Please reply to this question urgent.
Thanks & Regards,
sureshhi
you can copy below code into one program. it will find all user exists for all transactions.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
*---End of Program
Reward if it is ok
Siva Kumar. -
Is there any user exit to change the UOM of a material while creating sales
Hi experts,
I have a requirement to change the UOM of the item material in sales order while creating. Could anybody help me in finding the correct user-exit to change the UOM.
Thanks,
srinivas.Hi Ravish,
I am already changing the UOM in the same include and in the subroutine "USEREXIT_MOVE_FIELD_TO_VBAP". But it is again over writing in the standard program. What I need to do, to remain same UOM.
Thanks,
srinivas. -
Hi,
We have a requirement to add some custom fields as a new tab in additional data option(Descriptions, Unit of measure, etc.) in Basic data of Material master (MM01/MM02/MM03). I have successfully added and these custom fields and they are not part of standard(MARA, MARC) but a custom table and the updates are also done in custom table.
For new materials, I can see the new tab in additional data screens of basic data view and I could successfully create/change/display using MM01/MM02/MM03. However I cannot see the new tab/fields for existing materials in the system in all 3 tcodes (MM01/MM02/MM03). This is not a main view in material master so that I can extend it by MM01.
Is there any setting or mass generation program I have top perform so that I can see and maintain these new fields for existing materials. Appreciate any leads or help on this.
Thanks,
HarryHello Harry,
Goto t.code SPRO ---> Display IMG ---> Logistics - General --> Material master --> Configuring the material master --> Create program for customized screens
Use the above path and create the screen and assign it to the sequence using the below link as reference.
**************** - Tips - Implementing screen exits for MM01/MM02/MM03
Regards,
Thanga -
Material classification - Searching exit to change/add characteristic vals
Hi all,
I am searching for an exit or BADI what allows to change or add characteristic values. This shall happen on <enter> in MM01 or MM02 and would be great to word also in BAPI calls updating the classification.
Exit EXIT_SAPLCLFM_002 does not work on one hand since it is called after check for mandatory entries. Therefore there is no chance, to fill them before. Also the user will not see the result.
BADI IF_EX_CACL_VALUE_CHANGE~MODIFY_INPUT does not work since it has no chance, to manipulate content. It just offers changed values to check. A try to use CTMS functions to manipulate DDB was not succesful. I did not find any chance to react on a given changed value changing or inserting values for other characteristics within the allocated classes. Any call for CTMS_DDB_SET_VALUE lets the classifcation struggle - even if repetitive calls of the BADI are avoided.
Does anyone have an idea?
Thanks in advance.
AxelHi Vijay,
thank you for thinking about it.
My task is to react on an update to a characteristic in MM01, MM02 and any other more general transaction to maintain the material classification like mass updates etc. I want to derive from the entered value of several updated characteristics other ones from the allocated class. These derived characteristic values might be still empty but mandatory. I do not want to see any popups inquiring this content before my exit has the chance to fill it. I prefer that this is done on <enter> and not on <save> and want to show the user the enhanced class values. Optimum would be that this also happens in a BAPI call with the same logic.
I hope this clarifies the task.
Axel -
Add custom field in MRP area-MRP 2 in material master(MM01/MM02/MM03)
Hi
As per my requirementn we have to add one field in the Material master(MM01/MM02/Mm03). Mentioned path below.
MM01/MM02)--> MRP1 tab --> in the MRP areas > click on MRP AREAS button>Pop will come with MRP AREA --> double click on entry > MRP area screen will appear> In MRP2 data tab> i've to add a new custom field. Program Name> SAPLMD_MGD1
Screen --> 0040
Is there any exit/customization which can be used to do this?
i was unable to find a exit for the same.
Thanks,
GauriHi Gauri,
See Note 44410 - Integrating cust.-specific fields in matl master, I think that it will help you
Regards
Eduardo
Maybe you are looking for
-
Error message PG009 : no data stored for the period
During upgrade testing from 4.7 to ECC6 noticing an error message PG009 with a suggested solution "In table T582A maintain the indicators 'Choose with start', 'Choose with end', 'Choose without date' for each infotype" I am able to see recotds in 4.7
-
Freegoods(A+B=C)
Hi, In Free goods scenario.... EX : if Customer Orders A+B(Materials) then C(Material) should be Free. If the above said is possible in standard SAP, how can we Map this. if not is there is any other way to meet this Client requirement. Lakshmi
-
PI 7.0 to PI 7.1 - Migration or Upgrade?
Hi, When moving from PI 7.0 to PI 7.1 based on your experiences what is the best approach migrate or upgrade? Thanks in advance.
-
Maximum size for an HttpRequest? Set Content-Length?
Hi, I'm managing to get small strings sent from my applet to my servlet, but when I try anything bigger, I get problems. Oddly enough, the larger object can get sent to my applet from my servlet without any issues. Can anyone tell me if there is a ma
-
Openoffice + windows share + GNOME/Nautilus
Hi, I'm trying to edit a windows excel file which is located in a windows share. I've done this before using Ubuntu's OpenOffice without problems. When I'm trying to save the changes into the file (after say yes to the Excel format) I'm getting the f