on 09-13-2022 11:42 AM
Hi Experts,
My requirement is When I enter the T-Code MM03 and give a material number and hit enter. Then in the Costing 1 tab there is field called Costing lot size which value is by default 1.
I want to set it as 100.
How can I achieve that?
Regards
Hi shahad009
In the BAdi
You will have the interface - method CREATE_MATERIAL.
Implement that method as below example
method IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL.
* BREAK-POINT.
IF i_mara-mtart eq 'ZFRT' OR i_mara-mtart eq 'ZSMI'.
e_marcu-losgr = '100'.
ENDIF.
endmethod.
You may modify the if statement as per your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
shahad009 What means "not working"? Did you debug? Do you reach the line e_marcu-losgr = '100' ?
NB: 1) please embed the screenshots as below, not hyperlinks, 2) code is better shared using text as below rather than screenshot.
method IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL.
* BREAK-POINT.
IF i_mara-mtart eq 'ZGMT'.
e_marcu-losgr = '100'.
ENDIF.
endmethod.
hi venkat,
I tried it in sandbox and my mm consultant created a new material with ZGMT material type but still it is showing 1 he is saying.
can you tell me how can i debug this ?
I mean i tried to debug it after giving a material number in mm03 and di '/h' but i am not getting where the value is getting set as 1 or 100.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.