‎2012 Aug 11 8:04 AM
i have searched alot but didnt find any matching discussion.
here is my query.
i want to attach parameter id to standard data element,
i.e MARA-XCHPF (Batch Management Field).
i know hoe to create custom parameter id but dont know how to
assign it to standard data element.
i dont have access key.
please suggest how to achieve this..
‎2012 Aug 13 10:25 AM
‎2012 Aug 11 8:18 AM
Hi,
Using Z data element with same functionality and put that parameter id in further characteristics can solve your problem?
Gourav.
‎2012 Aug 11 8:32 AM
no, not at all.
i want to know how to attach parameter id to standard data element.
not the custom one.
‎2012 Aug 11 9:25 AM
Hi,
<< Link farming removed>>
Gourav.
Moderator message: When providing links , add your own supportive texts,explanations etc. and let the OP know the portion you are trying to explain.
Message was edited by: Kesavadas Thekkillath
‎2012 Aug 13 10:21 AM
both of these links are not of any use to me.
these provide information for how to set parameter id to custom data element or in report/selection screen.
but i want to set parameter id for std data element.
for table mara-xchpf (Batch management requirement indicator).
‎2012 Aug 13 10:25 AM
‎2012 Aug 13 10:36 AM
Exactly!!
the actual requirement is while creating the material master record i want on Plant Data / Stor 1. tab,
there is a option of check at Batch managment.
i want to set this check tick as default.
‎2012 Aug 13 10:52 AM
Hi
Just as Raymond says it needs to change the standard data element (so you need the access key) in order to add a parameter ID:
Now are you sure that will solve your problem?
I mean even if you assign a parameter ID to that data element, that doesn't mean it will be used in the program (without any modification).
Max
‎2012 Aug 13 10:55 AM
You see how important it is to provide as many details as possible in your first post. Obviously what you had in mind is not the best solution to the underlying requirement.
Instead look for other ways to default material master data, a quick research brought up BADI_MATERIAL_REF, for example.
Maybe this can even be handled by customizing only, so also speak to a functional expert.
Thomas
‎2012 Aug 13 10:57 AM
i dont know, i just want to check batch managment tick.
i dont have access key . then what is sol'n?
‎2012 Aug 13 11:51 AM
As Thomas Zloch wrote, check Csutomizing or BADI_MATERIAL_REF for default values in MM01.
Regards,
Raymond
‎2012 Aug 14 7:58 AM
hello all,
as you have said, i implemented badi BADI_MATERIAL_REF.
(although there was no existing implementation of this badi).
this is the code which i have written in badi implimentation.
METHOD IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL.
BREAK-POINT.
I_MARA-XCHPF = 'X'.
I_MARC-XCHPF = 'X'.
ENDMETHOD.
but still i am not getting tick on batch managment.
i know spoon feeding is an offence here,
but still i ask you to give it a try once and come up with
some furthur hint.
‎2012 Aug 14 8:18 AM
Hiii ,
I_MARA and I_MARC is importing parameter as you can see in method ...... you have to set
E_MARAU-XCHPF = 'X'.
E_MARCU-XCHPF = 'X'.
just do this
‎2012 Aug 14 8:24 AM
thanks ashish,
i am done.feeling little bit insulted for this stupidity.
but thnks alot.
‎2012 Aug 14 8:37 AM
Hiii,
It's ok dude .... you had done almost In future whenever put break point just view local and global parameter or view definition of method ..... just do smart debugging
‎2012 Aug 14 8:44 AM
The code could look like
method if_ex_material_reference~create_material.
data: l_ptab type sptap
.
* Main loop
loop at it_material_tables into l_ptab.
case l_ptab-tbnam.
* - MARA
when 'MARA'.
if i_material_status ca 'K'
and l_ptab-biststat na 'K'.
e_marau-xchpf = 'X'.
endif.
* - MARC
when 'MARC'.
if i_material_status ca 'L'
and l_ptab-biststat na 'L'.
e_marcu-xchpf = 'X'.
endif.
endcase.
endloop.
endmethod.
(I let you check the exact value for material status to test)
Regards,
Raymond
‎2012 Aug 14 9:07 AM
thanks raymond....came to learn few new concept of material master.