Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change screen attributes by using BADI_MATERIAL_REF ?

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

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.

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

kesavadas_thekkillath
Active Contributor
0 Kudos

You have the example class CL_EXM_IM_BADI_MATERIAL_REF for this badi. Please check it.

Former Member
0 Kudos

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

Former Member
0 Kudos

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