UserExit in MM02
Hi all. I need a user exit in transaction MM02. I've tried using the exit MGA00001 but it doesn't seem to work, i activate it and nothing happened.
If anyone knows another exit, i'm using SAP ECC 5.0.
Thanx.
Go to SE37, enter the function module name as EXIT_SAPLMGMU_001. Look at the source code, did you create that include program ZXMG0U02. If not, you need to create it. Double click on it, the system will ask if you want to create it. Put the code inside this include program. To check if it is being fired, put a breakpoint on a line of code inside the include program.
Make sure that the enhancement is activated via SMOD/CMOD.
REgards,
Rich HEilman
Similar Messages
-
Userexit in MM02 transaction?
Hi,
I want to modify the value of MVKE-PRODH ( Product hierarchy field present in Sales-org data 2 view).
This userexit/BADI should get triggered on Save of MM02.
Thanks & Regards,
Navneeth K.check this
Enhancement name : MGA00001
FM : EXIT_SAPLMGMU_001
Include : ZXMG0U02
Create project at CMOD and use enhancement. -
i'm using a BAPI inside a userexit in MM02 but problem is that this BAPI itself calls MM02 that is making this BAPI calling recursive and that material remain locked even i come out .how to eradicate it.
i mean how to know that user is calling bapi or system is calling bapi.
Edited by: Vivek Gaur on Apr 9, 2008 11:56 AMresolved by using database tables as check flag
-
Need userexit while saving the material in MM02
Hi folks,
Need a userexit while saving the material in MM02 transaction.Kindly help me out.
Regards,
Raj.FM while saving the MM02 is 'MAFI_POPUP_TO_CONFIRM_SAVE'.
Regards,
Rajasekhar. -
BADI or userexit for MM01 and MM02
Hi All,
My requirment is that when the user create a new material, the profit center field should be auto populated from the input Plant. For example, if the plant for this new material is A, then profit center PCA will be populate. The mapping between plant and profit center is very simple.
Furthermore, when the user try to save the material with invalid profit center, the system should create a warning message and automatically change the profit center to the valid one as well.
Right now, i'm looking for either BADI or userexit that would be suitable for my requirement. Does anyone know which BADI or userexit, I should use. Thanks in advanceHi
Check the following
Enhancement
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Business Add-in
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
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
Reward points if useful
Regards
Anji -
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. -
Protecting long text in MM01 MM02
Hi all
my requirements is to protect material basic data long text (trx MM01, MM02) for a specific user. How can I do that?
Note that I can't use authority object M_MATE_MAN, cause only long text need to be protected.
My SAP release is 4.6C
RegardsHi Stefano,
We had a similar requirement and we used the userexit to do prevent the changes. You can create a dummy auth and then if the field changes you can check this object to allow or disallow the changes.
EXIT_SAPLMGMU_001
Hope this helps
Deep -
Userexit/BADI change MARA at save
Hi experts,
i need an userexit or a badi to change the mara-table before i save in MM01/MM02. Can anybody help me?
Thx.
Cheers
Hannes
Moderator Message: Please search before posting.
Edited by: Suhas Saha on Jan 14, 2012 3:54 PMSearching in SDN can help you the best. there are many threads for this. please search
-
Userexit For TCODE J1IJ depot excise invoice
hi
I want to know is there any userexit for depot excise invoice. That we can use to check weather excise entry date that is (J_1IRG23D-CPUDT) is equal to likp-WADAT_IST . Any info will be really helpful.
Thank youHi,
Use this program SAPMJ1IJ in this program there are 4 includes.
First try with MJ1IJF01
So check with your abaper which exit is working in this include.you can do it by setting break-point.
Also check other includes MJ1IJTOP MJ1IJO01 MJ1IJI01
Thank you, -
How to get the values inputted by the user in Classification view of MM02
Hello,
Does anyone know how to get the inputted values in Classification view of MM02/MM01? I tried to use CLAF_CLASSIFICATION_OF_OBJECTS but this gets the values that is currently saved in the tables and not the values that the user recently inputted in the screen.
Regards,
Alfredhi
try this...
How to Display the Batch Characteristics in BOM? -
Upload Purchase order text using BDC while updating Material Master MM02
Hi All,
Please help me out with sample code upload PO Txt ( long text...which is more than 72 chars)using MM02. Its very urgent
I am not able to pass data into following fields seen in recording,
RSTXT-TXLINE(02),
RSTXT-TXLINE(03),
RSTXT-TXLINE(04),
RSTXT-TXLINE(05), as we can see only RSTXT-TXLINE field in the RSTXT structure......
how to split the long text into 72 chrs each and pass into data into the RSTXT-TXLINE(02), RSTXT-TXLINE(03), RSTXT-TXLINE(04)....correspondingly........
Thanks in advance.....
Reagards,
Prasad KR.Hi
see the sample program
REPORT zmm_longtext
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab1 OCCURS 0,
matnr LIKE mara-matnr, " Material
text1 LIKE tline-tdline, " Long Text
text2 LIKE tline-tdline, " Long Text
text3 LIKE tline-tdline, " Long Text
text4 LIKE tline-tdline, " Long Text
text5 LIKE tline-tdline, " Long Text
text6 LIKE tline-tdline, " Long Text
text7 LIKE tline-tdline, " Long Text
text8 LIKE tline-tdline, " Long Text
text9 LIKE tline-tdline, " Long Text
text10 LIKE tline-tdline, " Long Text
text11 LIKE tline-tdline, " Long Text
text12 LIKE tline-tdline, " Long Text
text13 LIKE tline-tdline, " Long Text
text14 LIKE tline-tdline, " Long Text
text15 LIKE tline-tdline, " Long Text
text16 LIKE tline-tdline, " Long Text
text17 LIKE tline-tdline, " Long Text
text18 LIKE tline-tdline, " Long Text
text19 LIKE tline-tdline, " Long Text
text20 LIKE tline-tdline, " Long Text
text21 LIKE tline-tdline, " Long Text
text22 LIKE tline-tdline, " Long Text
text23 LIKE tline-tdline, " Long Text
text24 LIKE tline-tdline, " Long Text
text25 LIKE tline-tdline, " Long Text
END OF itab1.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras, " Language
gv_matnr TYPE matnr.
Constants
CONSTANTS:
Object ID for Long Text of Material Basic Data 1
c_best TYPE thead-tdid VALUE 'GRUN',
c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
Parameters
PARAMETERS p_file LIKE rlgrap-filename.
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab1
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
SORT itab1 BY matnr.
LOOP AT itab1.
CLEAR gv_matnr.
SELECT SINGLE matnr INTO gv_matnr
FROM mara WHERE bismt = itab1-matnr.
IF itab1-text25 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text25.
APPEND itab.
ENDIF.
IF itab1-text24 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text24.
APPEND itab.
ENDIF.
IF itab1-text23 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text23.
APPEND itab.
ENDIF.
IF itab1-text22 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text22.
APPEND itab.
ENDIF.
IF itab1-text21 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text21.
APPEND itab.
ENDIF.
IF itab1-text20 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text20.
APPEND itab.
ENDIF.
IF itab1-text19 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text19.
APPEND itab.
ENDIF.
IF itab1-text18 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text18.
APPEND itab.
ENDIF.
IF itab1-text17 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text17.
APPEND itab.
ENDIF.
IF itab1-text16 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text16.
APPEND itab.
ENDIF.
IF itab1-text15 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text15.
APPEND itab.
ENDIF.
IF itab1-text14 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text14.
APPEND itab.
ENDIF.
IF itab1-text13 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text13.
APPEND itab.
ENDIF.
IF itab1-text12 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text12.
APPEND itab.
ENDIF.
IF itab1-text11 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text11.
APPEND itab.
ENDIF.
IF itab1-text10 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text10.
APPEND itab.
ENDIF.
IF itab1-text9 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text9.
APPEND itab.
ENDIF.
IF itab1-text8 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text8.
APPEND itab.
ENDIF.
IF itab1-text7 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text7.
APPEND itab.
ENDIF.
IF itab1-text6 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text6.
APPEND itab.
ENDIF.
IF itab1-text5 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text5.
APPEND itab.
ENDIF.
IF itab1-text4 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text4.
APPEND itab.
ENDIF.
IF itab1-text3 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text3.
APPEND itab.
ENDIF.
IF itab1-text2 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text2.
APPEND itab.
ENDIF.
IF itab1-text1 NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text1.
APPEND itab.
ENDIF.
CLEAR itab.
ENDLOOP.
DELETE itab WHERE matnr EQ ' '.
Upload the Texts
SORT itab BY matnr.
LOOP AT itab.
dt_lines-tdformat = 'ST'.
dt_lines-tdline = itab-text.
APPEND dt_lines.
dl_lan = sy-langu.
dl_name = itab-matnr.
Call the Function Module to Create Text
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Material'(001),
itab-matnr.
ELSE.
WRITE:/ 'Long Text Created Successfully for Material'(002),
itab-matnr.
ENDIF.
AT END OF matnr.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
Reward points for useful Answers
Regards
Anji -
BADI/UserExit for MIGO in Stock Transfer
Hi Gurus,
I have a requirement.
When posting a GR in MIGO, if the material has been flagged to go through inspection, MIGO post the batch to quality inspection.
Now, when a batch has already gone through inspection (for example in another plant) and its released (passed) and its been transferred to another plant, if we are receiving this batch doing a post GR in MIGO, it automatically post it to quality inspection again.
Is there a BADI, UserExit or way to skip this inspection and post the batch to unrestricted stock since its already gone through inspection in the previous plant and has a Decision Code A0 (accepted etc).
We don't want to change the material master for this because we still want the material/batch to go through quality inspection if its hasn't already been.
Thanks..
Baz
Edited by: Basil Balogun on Sep 23, 2010 1:49 AMHi,
Try the possibilities of MB_MIGO_BADI. I think in method LINE_MODIFY, POST_DOCUMENT and perhaps PAI_DETAIL.
I hope this helps you
Regards,
Eduardo -
Sales Order Costing. Error values, need BAPI or Userexit or Enhancements
Hi Experts,
I have a situation to solve the Errors in Sales Order Costing.
My Error is, its not splitting values equally,,, (BOM Item Price Values)
for example...
let i have a parent Item A.
and Child Items as A1, A2, A3.
Now the Qty of A is 100. for each item the price value is 50. so the total value is 5000/-
Now If i need one A, then I need 8 A1's, 4 A2's, 3 A3's.and let think A1 value and A2 value and A3 value (single Unit ) are equal. and let the value be 100.
but in BOM i can see all the values of A1, A2, A3 as same. (500, 500, 500) but it should be (800, 400, 300)
The single Unit Price is not multiplying with Quantity, but its equally splitting.
Please tell me Can I find and BAPI or Userexit or any enhancements or any Configurations to do.
Thanks & Regards
Dileep .Cno replies and my thread was dead.
-
Hi
My user wants that date in J1IJ that is excise from depot sale should same as PGI date. If it is not same it should throw some error. Is there any userexit available for the same.
Any information will be of great help.
Regards
JalajHi Jalaj,
Use any one of these user exits
MJ1IJI01.
MJ1IJF01.
Regards
Ram -
In MM02 taking long time to open views
Hi,
In MM02 I had taken the material T-BBD09,and select views i selected Basic Data1 and executed its taking very long time to open its going to time out after 1 hr,how to rectify the same to open.
ThankuHI,
In MM02 I had taken the material T-BBD09,and select views i selected Basic Data1 and executed its taking very long time to open its going to time out after 1 hr,how to rectify the same to open.
Remaining all tr.codes working fine in my server,any inputs for the same.
Thanku
Maybe you are looking for
-
Please help me!! Error: Ipod cannot be updated because it contains files
I keep on getting the error: "Ipod cannot be updated because it contains files that are use by another application" I try to restore and I get "Ipod cannot be restored because it contains files that are use by another application." I have Itunes 7.0
-
How to import, merge old and new personal dictionaries?
I have DW CS4. Upgraded from DW8. How do I get all the "learned" words in the DW8 personal dictionary into the new DW CS4 dictionary? Thanks. Ed
-
I am in the market for an HD video camera in about 1-2 months and was looking for some input. I don't know much about the current models but was wondering about a few things. I would really like to stay away from mini DV. 1) Is there any way to get t
-
Unable to increase table space
Hi, i am getting this error on sap apoo 3.1 ides sytem ORA-001653 Unable to increase table space PSAPEL46DD # Can any one tell me who do i increase the tables space step by step Thanks Priya
-
Change ItmCatg of Phantom to prevent Production Order?
When receiving data from an external ordering system via an interface, at order creation time, I don't know if the components are spare parts being ordered individually or if the components must be assembled (production order). If I could initially s