04-27-2012 4:12 PM
Hi,
I am using BADI_MATERIAL_REF during MM01 and wants to change some input fields to be output fields, so do not want if those would be editable ones. I thought IT_FIELD_SELECTION table is good for that (since there are screen attribute flags inside), but just realized that when BADI finished and processing goes back to the caller point my changes in IT_FIELD_SELECTION disappeared. (Yes, because this Int. table is an import table..:)
But I can not see any other opportunity in BADI's documentation. Anybody has an idea / experient relating to this topic.
If so, please tell me.
Thx in advance.
Br,
Peter
04-27-2012 6:51 PM
Follow these the steps in the link below to change the output field to display field (the document shows how to make the field obligatory you just need to change the context):
http://www.sapfunctional.com/MM/Fields/Mandatory.htm
In the BADI BADI_MATERIAL_REF you pass the values to fields that will be displayed.
Regards,
Felipe
04-29-2012 10:20 AM
Yes, SPRO is a common place to do that, I know. But during MM01 I'd change some fields to be output ones only if some conditions are given. So I woudn't like change those's attributes all the time.
Anyway, thank you.
P.
05-02-2012 1:08 AM
This may be a little tricky, depending on what screens do you need to deal with while processing the material...
Try to look into enhancement spot ES_SAPLMGMM, enhancement point LMGMMO0T_01 to influence how the internal table FAUSWTAB is built. You may be able to achieve the settings you need this way.
Take a look at include LMGMMO0T, module ANF_FELDAUSWAHL. That seems to be the primary PBO module controlling field selection. This is the location the suggested enhancement point is also included.
05-02-2012 7:58 AM
You have the example class CL_EXM_IM_BADI_MATERIAL_REF for this badi. Please check it.
05-03-2012 2:45 PM
HI,
Thanks for both of you. Yes, of course I have checked sample program code but there is no any reference for changing field attributes in it. However I closed the by checking the values of reelvant fields and blocked by a popup message if there is any change..Thx for all. Peter
05-04-2012 3:37 AM
Hi ,
in addition to tamas , try to look at ES es_lmgd1019 of EP lmgd1019_01 inlclude program LMGD1O19 , i was using the same ES To modify screen field properties ,so far no issues if user selects diff combination of material views.
reagrds
Prabhu