Value in MM01
Hi,
I heave request to put initial value 01 (division) first tab for field MARA-SPART in standard tr. MM01.
main prog SAPLMGD1, screen 2001.
what to do?
Nick,
just look at this BADi.
BADI_MATERIAL_REF Addition of customer-defined default data for material
Amit.
Similar Messages
-
Hello experts ,
I want to default a value in MM01 transaction for the field Volume Unit (ERVOE ) based on a particular material type
Can any one tell me how can I do this ?? Is it possible to do with any exits/BADI/Customization ...!!
I tried with couple of BADIs but all are populating the data in the field at the time of saving , but I want it by default in the specified field.
Please suggest .Hi John,
my name is Dieter?!
We have create the BADI via SE19
Implementation Name: ZBADI_MATERIAL_REF
Definition Name: BADI_MATERIAL_REF
Interface
Interface name: IF_EX_MATERIAL_REFERENCE
Name of implementing class : ZCL_IM_BADI_MATERIAL_REF
Method is CREATE_MATERIAL
in the CLASS ZCL_IM_BADI_MATERIAL_REF we have the Method
IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL which contails
the code.
The BADI is created under 4.6C and works also in ECC6.
Which release do you have?
Compare your creation with my values.
Regards, Dieter -
New custom field in MM01 - don't save value
Hello,
I create a custom append structure in mara ZBAR with the custom field ZBARCODE.
I followed the gudelines:
Implement screen exit for MM01/MM02/MM03 HOT
By Vijayanand Poreddy
Now the field is visible but it isn't saved in MARA when I save the value in MM01; I don't like the solution of ID SAP to save the value in the exit indicated in the guide, because the field is in MARA not in a custom table.
How I can save the value?? I tried also to update the view v_130F with the new field but the value isn't saved...
Any suggestion?resolved myself:
PROCESS BEFORE OUTPUT.
* Verarbeitung vor der Ausgabe
*MS17092009 Non eliminare modules standard.
MODULE set_propriety.
MODULE INIT_SUB.
MODULE GET_DATEN_SUB.
PROCESS AFTER INPUT.
* Verarbeitung nach der Eingabe
MODULE GET_DATEN_SUB.
CHAIN.
FIELD MARA-ZBARCODE.
ENDCHAIN.
MODULE SET_DATEN_SUB.
FIELD MARA-ZBARCODE MODULE BARCODE_0001 ON INPUT. -
Error creating a material in MM01
Dear,
While creating a material in MM01 the following error is appearing
"The Value 770190.60 is not allowed for the field control code".
MM01 -- Mat. No, Ind. Type, Finished Product, ENTER.
Selecting Views - BASIS DATA 1, BASIS DATA 2, & SALES : General / Plant Data, ENTER.
Entering PLANT, SALES ORG. & Dist. Channel, ENTER.
This Shows a message
" Material Already exists & will be extended".
Enter.
Save.
Then this error message is appearing
"The Value 770190.60 is not allowed for the field control code".
What will be the cause & solution of this error.Dear,
While creating a material in MM01 the following error is appearing
"The Value 770190.60 is not allowed for the field control code".
MM01 -- Mat. No, Ind. Type, Finished Product, ENTER.
Selecting Views - BASIS DATA 1, BASIS DATA 2, & SALES : General / Plant Data, ENTER.
Entering PLANT, SALES ORG. & Dist. Channel, ENTER.
This Shows a message
" Material Already exists & will be extended".
Enter.
Save.
Then this error message is appearing
"The Value 770190.60 is not allowed for the field control code".
What will be the cause & solution of this error.
This no. is seen in the error message only & we are not entering this value in MM01.
When i am looking at the Chapter ID (2nd option) through J1ID then this value can be seen.
But when i am at MM01 - Foreign Trade : Export Data - I find nothing mentioned in it.
The material is already created in Location 1 & now we are creating this material again in Location 2 in same plant.
The error message number is MG-142.
We are not copying material from 1 Plant to another but from 1 Loc to 2nd Loc.
Its not a new material but is already exists
say in Plant 5000 & Loc. RP01 & now we are creating it again in Plant 5000 & Loc SP01 & here we are receiving this error of Value xyz which can be seen in J1ID.
Thanks. -
How to manage variable conversion factor in UOM to order unit
Hi,
We have a material whose base unit is PC unit price is 8 Euro / PC
Order unit is Box now we do not have a standard conversion factor.
Means sometimes vendor send 8 pc/ Box ,10 pc /Box and 12 pc /Box
so when we create Material master and enter order unit as Box in purchasing view system ask for conversion rate
if we do not enter any the value in PC field its taking 1 Box =1 PC as default.
Example: Now while creating PO say we order for 10 box.(at this point we do not know exact conversion rate)
and in the conditions we maintain price against PC .system calculate.
Now when we receive the material then we actually know how much QTy we receive in SKU (PC) but that field is blur (no input) in 101 mvt type.
One more thing In MIGO we can enter the Qty in PO Price Unit say we enter 80 PC
system only creates stock value posting (80 * 8 =640 Euro ) but the stock qty in MMBE is still 10 piece ( from 1:1 conversion with box)
Please suggest how we can handle this variable conversion rate.
So that we can enter correct Qty in the time of GR ( MIGO ).
Thanks in advance.Hi,
Thanks for the valuable Input.
For our material base unit is PC order unit is Box.
Say we main a conversion factor 10 PC =1 Box ( a default value) in MM01
And we order 10 Box. but when we receive we found that vendor send 12 pc per Box so total 120 pc
[ Po price unit is in PC in condition details]
Now in MIGO we cannot modify that Qty ( from 100 to 120 in PC)
SO you are suggesting here we receive 12 box in MIGO. so that actual qty in PC is correct..
Thanks again -
Calling a Transaction from Selection screen of Z Program...
Hi,
I am trying to call a Standard transaction from a report when they clicked one push button on selection screen.
when i used CALL TRANSACTION 'MM01'. When i press save after entering the values in MM01, it is saving and coming out to selection screen of my Z program.
But my question is when they press in BACK button in MM01 then only it should come out from MM01 and it should display the my Z Program selection screen. suppose if they press SAVE button on MM01 it should save and screen should be MM01 only.
when i used LEAVE TO TRANSACTION 'MM01'. it is working fine but when i press BACK button from MM01 it is coming out and showing SAP EASY ACCESS screen. My requirement is when i press back button in MM01 then it must come to my Z program selection screen only.
I hope it is clear.
Regards,
Sunny>
sunny_143 wrote:
> Hi,
>
> I am trying to call a Standard transaction from a report when they clicked one push button on selection screen.
>
> when i used CALL TRANSACTION 'MM01'. When i press save after entering the values in MM01, it is saving and coming out to selection screen of my Z program.
>
> But my question is when they press in BACK button in MM01 then only it should come out from MM01 and it should display the my Z Program selection screen. suppose if they press SAVE button on MM01 it should save and screen should be MM01 only.
>
>
> when i used LEAVE TO TRANSACTION 'MM01'. it is working fine but when i press BACK button from MM01 it is coming out and showing SAP EASY ACCESS screen. My requirement is when i press back button in MM01 then it must come to my Z program selection screen only.
>
> I hope it is clear.
>
> Regards,
> Sunny
I'm not clear about what happens when you press the BACK button.
First, LEAVE TO TRANSACTION is no help. That ends your Z program. CALL TRANSACTION is your only option. If it doesn't work as you'd like, you're a bit stuck, as MMnn are standard SAP transactions, and you can't modify that. (well, you can, but that's a whole other tin of worms).
Perhaps if you told us what you're trying to achieve with the Z program, there might be another approach that will do that.
matt -
LSMW for material master upload
Hi gurus
i have one problem while uploading material master with LSMW.
I have murged 2 company codes in one so while creating material master system is asking me tax classification data in sales view for 2 country sales org and distrubition channel. I am using sap std LSMW for material master creation.
system is giving me error as " tax classification data not maintained completely".
need your valuable help to solve this problemTax classification data is mandatory field in Sales view of MM01.
Check out you mapping for the tax classification fields. usually classification value is 0 OR 1.
You can first test the values in MM01 Sales View with the legacy data you have and this way you will able to find the mandatory fields also and can see the valid values for the fields.
Remember you may have more than one Tax Classification values depending on the country code.
For that you can add those many columns in legacy data file and map them.
Hope it helps. -
dear goru
good eve
whenever i check material stock through mb5b for a some material specially finish goods it shows diffrent value for same material
suppose there is mat A having prise 10 Rs/Kg
some time for 10 kg it shows value 100
some time for 5 kg it shows 70
even for zero stock it shows some value
in mm01 under accounting tab prise control ( V ) and moving avg prise is zero maintained
material type is finish good
do the needful
ple help
thank u
prakashHi,
If MAV is set, the price changes when stock in/out, and when invoice posted also.
So, keep all these things into consideration when verifying the price and be more specific in your query.
regards
arun -
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 -
Default values for MVKE in MM01/MM02
Hi All,
If user changes any data in MM02/create material in MM01 , then I need to default some values in MVKE table( say MVKE-PRAT2, Standard SAP Field).
I have tried with User exits and badi, but nothing works .
EXIT_SAPLMGMU_001 ZXMG0U02 (cannot change MVKE fields)
BADI_MATERIAL_CHECK(same as the above user exit)
BADI_MATERIAL_REF ( looks to be works only when extending and creation of new material)
Can somebody help to advise , is there any other user exit/method to update the MVKE fields in MM01/MM02.?
Thanks a lot.
Regards
AgrudThere are many Implicit Enhancement points in the PBO modules of SAPLMGMM. You might want to play with one of those, see where MVKE is getting populated/initialized and pre-populate it there.
-
Set default value to a field in MM01
Hi Friends ,
Can anyone tell me that how can set a default value to field "Rounding Value" in tab "MRP1" when i go to transaction "MM01" . I tried to search user exit/Badi for the same but i didn't get OR can say not able to find.
PLEASE HELP ME.
THANKS IN ADVANCE.
KishorIn config, there is something called a rounding profile which I think will help you achieve what you want. Here is the path to the config task.
Implementation Guide for R/3 Customizing (IMG)
-->Logistics - General
-->Quantity Optimizing and Allowed Logistics Units of Measure
-->Maintain Rounding Profile
Here is the documentation related to that task.
<i>Maintain Rounding Profile
In this step you define rounding profiles for adjusting units of measure to match delivery or transport units.
Rounding profiles can be maintained on a general or plant-specific basis. General maintenance is recommended as this requires you to enter less data.
A distinction is made between static and dynamic rounding profiles.
A static rounding profile comprises the following:
Threshold value
Rounding value
The threshold value is the value from which the system rounds up to the next delivery quantity.
The rounding value is the value to which the system rounds up as soon as the threshold value has been reached.
Several combinations of threshold and rounding values can be defined for rounding profiles.
No logistics units of measure are taken into account with static rounding profiles. This means that the system rounds up statically to the rounding values entered in the profile and not to "full pallets", for example.
Dynamic rounding profiles comprise the following:
Rounding method
Rounding rule
Indicator to show that units of measure are to be condisered only if they are allowed for the vendor or recipient.
The rounding method controls how the system rounds off:
No rounding
Rounding to a multiple of the order or sales unit
Rounding to order or sales unit, and to logistics units
No rounding
You have to define an additional rounding rule if you want your profile to round off to whole logistics units. This rounding rule is the key used for grouping logistics units of measure. The group contains all the units to which the system can round off when using the profile.
You can also have the system include only those logistics units that are allowed for the vendor or recipient. Allowed units of measure are defined in unit of measure groups that can be used at material-vendor level or at material-plant level.
Example
a) Static rounding profile
A material has a base unit of measure of 1 piece. Purchases are made in cases (1 case = 5 pieces) or pallets (1 pallets = 8 cases or 40 pieces).
You maintain the static rounding profile as follows:
From To Rounded to
01 05 05
06 10 10
11 15 15
16 20 20
21 25 25
26 30 30
31 31 35
32 40 40
41 45 45
46 50 50
66 70 70
71 71 75
72 80 80
81 85 85
b) Dynamic rounding profile
To procure materials in lower price bands, you define rounding rules containing all pallets and cases that the relevant vendors can deliver. You enter a percentage for every pallet and case category that indicates the level to which a quantity is to be rounded up to the next unit of measure.
Rounding rule 01
Unit of measure Round up as of
Euro pallet 70% full
Pallet category 2 80% full
Case for euro pallet 65% full
Case category 2 75% full
You maintain a dynamic rounding profile using the rounding method "round to whole logistics units" and assign the profile rounding rule 01.
A material has a base unit of measure of 1 piece. Purchases are made in cases (1 case = 5 pieces) or pallets (1 pallet = 8 cases or 40 pieces). The system then rounds an order quantity of 68 pieces (= 40 + 28) to 2 Euro Pallets (= 80 pieces) because the second pallet is already 70% full.</i>
Hope this helps,
Srinivas -
User exits for mm01 to assign default value
experts,
when i have used exit MGA00002 and the corresponding function module EXIT_SAPLMG02_001 to assign the default values of mbrsh and mtart to the material number created during the course of the transaction mm01 i have written the following code in the INCLUDE ZXMG0U03
matnr+3 = matnr.
matnr+0(1) = mbrsh.
matnr+1(2) = mtart.
concatenate matnr0(1) matnr1(2) matnr+3 into matnr.
but default value is not getting assigned.
with regards.you just want to concatenate the mat type and indus sect to ur material num.
if it is then do this
go for MGA00001
in that u use
data: field1(18) type c,
concatenate the three fields using wmara like
wmara-matnr wmara-mbrsh wmara-mtart
into ur field field1
now write
cmara-matnr = field1.
if useful rewars
regards
Prakash Varun -
PARAMETER ID VALUE NOT DEFAULTED in CREATE MATERIAL MASTER (MM01)
Hi,
Currently when we create material master we like to defualt the field material group, using PARAMETER ID (MKL-Material group).
I have defined the parameter ID for MKL(material group) and assigned a material group value, log off and log in again.
When I create material master with MM01, the PARAMETER ID is not pickup, the field material group is not defaulted with value defiend for the parameter ID.
Anyone know why it did not works, and how to make the material master field defualted with PARAMETER ID??
best rgds,As suggested by Jurgen Parameter ID wont work for Data Maintenance screens.
You can go for Transaction Variant SHD0 and Set the Field as Default. -
Unable to enter value in Standard Price(MM01)
Hi,
In MM01 i am trying to create a service material with the Standard moving Price(S). Here when i try to maintain 0(Zero) INR , the system is not allowing me to enter zero value. But i can enter value greater then zero(say INR 5
But i can change the value to 0 in MR21 t code. Here i change the value 5 to 0.
So is it the right way to solve the problem?
DebasishNo...Whenever my screen is called, the focus is set on the 'VBELN' field but I can not enter the value.
See the code below:
Display the ALV report.
CALL METHOD grf_alv_popup->set_table_for_first_display
EXPORTING
is_layout = gs_layout
it_toolbar_excluding = gt_exclude
CHANGING
it_outtab = fp_output[]
it_fieldcatalog = gt_fieldcat_popup
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ls_row-row_id = 1.
ls_col-fieldname = 'VBELN'.
CALL METHOD grf_alv_popup->set_current_cell_via_id
EXPORTING
is_column_id = ls_col
is_row_no = ls_row.
With the method set_current_cell_via_id, the field VBELN displays as highlighted but to enter the value I need to click on the screen first. -
Default value for period indicator in MM01
Hello Gurus,
I have created a transaction for maintaining default value for period indicator in MM01 transaction. User has to maintain the period indicator for Material Type(MTART) and Plant(WERKS) before creating a material master. If it is not maintained, then error message will be generated saying that 'Maintain Period indicator for the Plant and Material Type'.
I have created an implementation for that in 'Y_BADI_MATERIAL_REF'. For Material type 'FERT' it is working fine.
But when i try to create a material of type 'RAW1' , im getting a error that 'Mandatory field Profit center is missing' which is already entered in the material master and is not in the part of forecast view i have created.
During my second testing, i got a different error MRP group 'Y0Y3' is not valid, though i entered it using F4 help.
When i commented my piece of code in the implementation, error disappeared..
Im very new to MM, please help me out gurus..
Thanks in advance.Thanks for your reply.
I know that it can be made as optional entry in OMS9 transaction. But when i deactivated my BADI, that error disappeared.
Is there any relation between the period indicator and profit centre ?
And also while creating a material, when i select the MRP group from the dropdown list(F4), whatever the group i select, im getting an error 'MRP group does not exists'. But when i deactivated my BADI, it disappeared.
Im really confused why am I getting such errors because of this BADI.
Please help me out...
Maybe you are looking for
-
Screen sharing and AIM account question
In the Apple docs it says: "You can share screens using AIM (including me.com and Mac.com), Jabber, Google Talk, and Bonjour. You can't share screens using iMessage or Yahoo!." I know I can simply create a free AOL/AIM account for this. But how does
-
ITunes won't sync music to my iphone.
A little context. I've always shared an itunes account with my cousin and all our songs would be the same. But to make this possible i would have to meet him and sync my iphone on his computer. But i have my own computer now with alot of differe
-
Modification of the SOAP Adapter
Hi all, my problem is still the same as posted in the last thread. I have a webservice request submitted to the XI, which has no header element. So i have the problem that the message does not reach the XI due to an authorization error. Now i had the
-
Infoset Query-concatenate fileds
Dear Experts, How to Concatenate two fields into a local field in an infoset query. Regards Jogeswara Rao
-
Front Row slows when loading 'Artists' from USB Drive
Just started using my Remote and Front Row, but when I select Artists, I get a blank screen for a couple of minutes, I'm assuming while it caches everything - the problem is pretty much the same as everyone posted about in http://discussions.apple.co