Field exits in MM01
Hi Gurus,
i have a problem, in MM01(Basic data1) there is field called Prod.hierarchy(dataelement is prodh_d), for this data element how to create Field Exits and how to assign to MM01 Tcode.
the code part i have to write is
1. To validate MARA-PRDHA field length (field exit can handle this). the field length should be 18 char.
2.Copy the value of MARA-PRDHA to MVKE-PRODH (the code of the field exit above, you can do field-symbol technique to transfer value from mara-prhda to mvke-prodh).
plz. do the needfull information with all the steps ASAP.
Thanks & Regards,
Sudheer.
Hi sudheer,
I didn;t get your question..
Do you want to add a field to the standard screen basic data 1 and have a screen exit to handle that field?
If this is the case check out SAP note 44410 .It talks about intergrating customer-specific fields in the material master maintenance.
Award points if useful.
Regards
Parag
Similar Messages
-
How to make a field default in mm01 while coping from other material
hi all,
i want to make a field default in mm01 ....mara-mstae -
say value 'A', when
i am coping from other material.
normally a T.variant is working in the scenario when im creating a material
but not when i am coping from other material.
Any field exits would work on that .if so how?
thanks in advance,\
sgi have to make the x-plant material status as 'BE' in mm01 basic view 1 ,when the material is created or copied from .<b>but it should be only default for the user might change it</b>
now when the material was created its workin---- coz a transaction variant has been created.
but when im coping it from other material its picking the properties of the old material ( from which im coping) ..not the field value which i want to display as default.
field exit only validates. can we give default value by it ,before saving a material??????
thanks,
sg -
Hi Gurus
i have a problem, in MM01/MM02(Basic data1) there is field called Prod.hierarchy(dataelement is prodh_d), for this data element how to create and change Field Exits and how to assign to MM01/MM02 Tcode.
the code part i have to write is
1. To validate MARA-PRDHA field length (field exit can handle this). the field length should be 18 char.
2.Copy the value of MARA-PRDHA to MVKE-PRODH (the code of the field exit above, you can do field-symbol technique to transfer value from mara-prhda to mvke-prodh).
plz. do the needfull information with all the steps with codeASAP.
I am using Ecc 6.0 Version.
Thanks & Regards,
Sudheer.Hello,
If you want to create a user exit execute report RSMODPRF with out parameters and create the FM to the field you need, and active it.
But before doing that, check if there is a user exit or badi implementation availavle, it will be a better solution.
Check for instance, the following:
USER EXIT
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Business Add-in
BADI_EAN_SYSTEMATIC BAdI for Internal Control of EAN Logic
WRF_DISCONT_PARAMS_I BAdI: Parameters in Fashion Discontinuation
WRF_DISCONT_FACT_E BAdI: Follow-Up Actions in Discontinuation
WRF_DISCONT_CHECKS_I BAdI: Scope of Check in Material Reorganization
MG_MASS_NEWSEG User-Specific Fields & Segments in Mass Maintenance
MATGRP_SKU_UPD BAdI for Article Hierarchy Connection
CDT_CHECK_MATERIAL Checks for Existence of a Material in a CDT
BADI_MM_MATNR Modification-Free Archiving Enhancement of MM_MATNR
BADI_MAT_F_SPEC_SEL BAdI for Material Special Field Selection
BADI_MATNR_CHECK_PVS Check Material for Use in iPPE
BADI_MATERIAL_REF Addition of customer-defined default data for material
BADI_MATERIAL_OD Integration of New Objects in Material or Article Master
BADI_MATERIAL_CHECK Enhanced Checks for Material Master Tables
BADI_GTIN_VARIANT User Exit for Customer-Specific GTIN Variant Check
Hope this helps,
Dont forget to reward. -
Hi Gurus,
i have a problem, in MM01(Basic data1) there is field called Prod.hierarchy(dataelement is prodh_d), for this data element how to create Field Exits and how to assign to MM01 Tcode.
the code part i have to write is
1. To validate MARA-PRDHA field length (field exit can handle this). the field length should be 18 char.
2.Copy the value of MARA-PRDHA to MVKE-PRODH (the code of the field exit above, you can do field-symbol technique to transfer value from mara-prhda to mvke-prodh).
plz. do the needfull information with all the steps ASAP.
Thanks & Regards,
Sudheer.You can create a field exit to the data element by running the report RSMODPRF.
You will then have to assign the the program name & screen No. (In this case the program name & screen No. in MM01 transaction.)
You will have to write a field exit for MARA-PRDHA and within that ensure that the field length is 18char.( The input value you read should be of 18 char).
You can read the screen field value by using the fn. module to read the screen values & put that value inside MVKE-PRODH. This can be written in another exit.
Important Things to Note.
1.You cannot debug a field exit.
2. Assign the correct program name & screen no. to activate the field exit.
3. This is written at data element level.
Hope this helps...
Let me know if you need any further details.
Regards
Deepu.
Reward Points if it helps. -
Badi for making gross weight field mandatory in MM01.
Hi,
Pls tell me the Badi for making gross weight field mandatory in MM01/MM02.
Thanks in Advance.Hi!
if it is not working with customizing I would do it in this userexit (CMOD)
MGA00001
it is the user exit before saving the material master data.
have fun
Flo -
Hi,
I need an user exit that will enable me to default some of the fields on the MM01 transaction while creating a material.
The user requirement is... Whenever we create a material using another material as template (copy from material) the Material Price Group (MVKE-KONDM) should NOT be copied from the reference material AND it should be defaulted to a value based on some business logic.
Need an user-exit or BADI where it is possible to put these logic.
Regards,
MilanHi Rishi,
Thanks for replying. I have already tried this exit but the problem is we can change only fields in CMARA structure (TYPE MARU) through this user exit.
I tried modifying the KONDM field in WMVKE structure but this does not get updated in the table.
Did I miss something?
Regards,
Milan -
Hi,
Our consultant wants to use field exit as a way to validate a certain field in a screen for tcode MB1B.
I tried to follow the steps below to create a field exit but it seems that I'm missing a step or two because it doesn't work.
1. Run program RSMODPRF in se38.
2. Enter the data element and the number of field exit
3. create and activate the function module
After this I run tcode MB1B but it seems that it did not pass through the field exit.
Do I need an extra step to make the field exit work? And how do I assign a field exit to a certain screen?
Hope to hear from you guys soon.
Thanks!Hi Jackie,
1.Enter the tcode SE38
2.In the ABAP Editor enter the program name RSMODPRF
3.Execute
4.Then you will get a screen with Data Element and Number of Field Exit
Here enter the Data Element(for example MATNR for material no.) and
enter 0 to 9 or A to Z in the second field(I am taking 0 in my example)
5. Execute
6.Then you will be navigated to the Function Builder screen(se37) with FM name FIELD_EXIT_MATNR_0
The FM name contains the Data Element(MATNR) and No. of Field Exit (0) (in this case)
7.Then click on CREATE.
8.Give the Fun. Grp name and SAVE
9.It will take youn to the Source code wherein ypu have to write the code asb per your requirement
For Example:
FUNCTION FIELD_EXIT_MATNR.
IF INPUT BETWEEN 125 AND 150.
MESSAGE E000(ZMM) WITH "Material not allowed".
ENDIF.
ENDFUNCTION.
10.Then if you try to enter the values in MM01 for Material no.,this effect comes into picture
If you enter Material no between 125 and 150 you will get "Material not allowed".
Follow the above procedure with your requirements(data element,screen name)
And to assign a screen name and program to a Field Exit:
In the 'Field Exits for Data elements' screen, in the application tool bar you can assign the Program name and Screen no. by clicking Assign Prog. /Screen.
You will get the above screen by
1. goto tcode CMOD
2. Enter PRFB in the command prompt and press ENTER
Another procedure for implementing the Field Exit:
One more way to do this is goto tcode CMOD.
Enter PRFB in the command prompt and press ENTER
In the screen select the menu Field exit --> Create and follow the same procedure as above.
Please see the below links hich might be useful
http://www.****************/Tutorials/ExitsBADIs/MK01/FieldExit.htm
****Reward points if found useful
Regards,
Naresh -
How do I de-activate a field exit?
All,
A field exit has been implemented for the material field at TCODE MM01/02/03 which does not allow me to access to these 3 TCODE. I know field exit can't be debugged. Is there anyway for me to exclude/deactivate this field exit? THanks in advance.Hello,
First Go tcode in CMOD in the command window enter tcode =PRFB , this would give list of all the Field Exit development in the system, click on any of the checkboxes go to menu FieldExit in that select Deactivate
regards
Suresh Nair -
Hi All,
I'd the requirement of giving a warning message for transaction VA01 if user enters some specific order type.
So I'd created a field exit for AUART for this screen. But i am able to give error message only and found out that warning & info messages can't be given in a field exit.
Please help me out. Is there any way I can give a warning message in field exit or suggest some other sol. for it.
Thanks,
ManuHi,
Thanks f or your answers, but the issue is that i need to give this message as User enters the details on VA01 screen & presses enters.SO i can't use user exit like move_field_to_Vbak & others.
Also, using a FM to give pop up message will ultimately make use of statement CALL SCREEN which is not allowed in field exit, i also tried FMs which displays messages normally means not in pop up screen, but again through it also i can only give error messages.
Please suggets if there is any other option.
Thanks,
Manu Parihar -
Hi All,
We have a FM which throws an error message. When that is executed in report, it works fine and the error message is displayed.
We have implemented this FM in FIELD EXIT for PRCTR. But it is not throwing any message. We checked the data, it is fine.
Can any one know how to solve this??
Thanks,
SreedharAlso you need to check whether this is assigned to any program/screen. As you know it will only trigger in the attached program.
See the documentation of RSMODPRF program.
Regds
Manohar -
Query on Field exits in ECC 6.0
Hi All,
We have implemented field exits in SAP R/3 4.6c and now we have upgraded to ECC 6.0.
I need to know the following information:
Are field exits obsolete in ECC6.0?
Can we create new field exits in ECC 6.0 ?
Going forward, what is the alternative technology/concept to be used - enhancement sports, BADIs etc for field validations(or instead of field exits)?
Regards
ShivaHi,
Though it is obsolete, SAP does not say dont you field exit. You can still use field exit. You can still create field exits.
Whatever is already existing will definitely work. Creating a field exit is much more simpler and easy than the BADIs or Enhancement points.
Yes you are right, going forward, you will have to use BADIs or Enhancement points.
Regards,
Subramanian -
How to call an include in a field Exit?
Hi Guys,
i am having a doubt ,How to call an Include in a field Exit function module.
i wrote as "include zxx_incl." but if i wrote like this in my Field Exit i am getting a Suntax error
"Recursive INCLUDE nesting in program "ZFLDEXIT_INCL". It contains an
INCLUDE statement which calls itself or a previously read program
("ZFLDEXIT_INCL ").
' i am having other doubt while creating an include program does we need to write a 1st statement as include zxx-incl within the same include ZXX_incl? if not i am getting a syntaxt error.
thanks,
Gopi.Yes, thats the problem.
Your include is named ZFLDEXIT_INCL and in the first line of that include you probbaly wrote
include ZFLDEXIT_INCL.
Delete that, includes don't need a reserved word like programs and reports -
Field Exit with DYNP_VALUES_UPDATE
Hello, I am trying to develop a validation in a SAP transaction (XD01) to check some field values and if them are right then fill automatically the rest of the field in the screen, using a Function Modulo and the FM DYNP_VALUES_READ I am able to retrieve the field values correctly, my problem is when a try to fill the rest of the screen's fields with FM DYNP_VALUES_UPDATE it doesn't work. Does anybody have used this FM? is possible what I am trying to do?
Thanks in advice for your help.Hi Fernando,
Using Field exit we can't populate multiple fileds, One filed exit is applicable for only one input filed.If you want to implement the
filed exit for multiple fileds you have to implement the one exit for one filed.
Regards,
Mahender Reddy -
Error while activating field exit
hi all
while activating field exit iam getting error
like system is not configuted for field exit
solution is Set the abap/fieldexit parameter to YES in the system profile and restart your SAP system
then in which tcode i can set the parameter
thanks in advance1)Login to R/3
2)Tcode RZ10
3)Select instance profile
4)click extended maintenance
5)change
6)Add parameter
7)Abap/fieldexit -> save and activate the changes.
Then restart you r/3 system. -
Hi All,
I am looking for a User Exit for MM01
I need to catpure the Document data in MM01>Additional data>Document data tab
I checked with the following enchancements but no use
MGA00001
MGA00002
MGA00003
BADI_Material_Check.
Can any one help me in finding the suitable enhancemet?
Thanks
BhaskerHi Bhasker
Go to Se18 Tcode
and give the definition name is "DOCUMENT_MAIN01"
check the definition in display mode because it is Sap Standard Definition.
there you will find a "TYPE" Tab
under this you have two check boxes
<b>1) Multiple Use</b>
2) Filter-Depend
if you want multiple implementations check this Check box
after this you need to create a request and the system asks Access Key for Changes
for that you will catch that Key from your Basis Team.
Regards
Sreeni
Maybe you are looking for
-
How to run IE8 on windows 7 professional that already have IE10 ?
Dear all, I am using windows 7 professional and it already have Internet explorer 10 , but i want internet explorer 8 .>>....>> how to make it possible? Please give some valuable suggestion. Regards, Vinay Yadav
-
Why can't I edit or delete Address Book "On My Mac" or sync with iCloud?
Why can't I edit or delete Address Book cards on my Macs, now that I've migrated to iCloud? I can edit/delete if I go to iCloud, but the changes don't sync with my Macs. What's happening, and what's a solution? Just wait for Apple to fix a bug?
-
Mail will not download large (28 MB) attachment
I received a ~28 MB attachment -- a PowerPoint presentation -- which Mail refuses to download. It was sent from and received by my Exchange account which has handled ~50 MB attachments before, so no problem there. More specifically, the server is run
-
Dear All We need to create Plant wise balance sheet to meet statutory requirement . And we have maintained our manufacturing units as segment and as profit centre both. As per process Manufacturing units send goods to Selling Depots and selling dep
-
Having problems with EMU Xboard-49 drivers and FL Studio (updated)
Hi there, i'm new here. I'm having a problem with drivers or whatever. <strike>Sometime ago when i installed the Midi controller, Windows installed automatically so i didn't even need to install the website ones, which it was ok to me. It was working