cancel
Showing results for 
Search instead for 
Did you mean: 

disabling custom fields for equipment type 'M'

Former Member
0 Kudos

Hi all,

I modifeid the equipment application ie02 by adding 3 new fields.

Now the problem is for equipment type 'M' these 3 fields are not to be shown.

Is it possible? if possible please give me some hint.

regards,

sai chand pullepu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

normally it's a purpose you could use enhancement ITOB0001. And add in that enhancement a customer-specific subscreen. ( SAPLXTOB 1000 / 1001 / 1002 /1003 / 1004).

Since you get in that exit the Equipment data ( structures equi / eqkt / equz ), you could decide to process a subscreen with your own fields or without.

Anyway, the construction with 'Loop at screen' is always necessary, because the same screen are processed in IE01, IE02 and IE03.

And in IE03 there should be no fields a user could change.

Regards Wolfgang

Former Member
0 Kudos

Hi,

Thanks alot.I know itob0001 is the user exit for custom fields in ie02 appln.If i use that user exit then the fields come in other tab of equipment application.But my PM functional consultant insisted me to add the fields in the Location tab in equipment master application only.Thats why i used modification.

Now i got the problem with deactivation of fields if equipment type is 'M'.

thanks once again,

sai chand pullepu.

Former Member
0 Kudos

Hello,

In screen SAPLITO0 / 1050 you have fields of structure ITOB. Field ITOB-EQTYP should be filled at PBO time.

So, the logic of giving your own fields a special modification group and then the 'LOOP AT SCREEN' construction would be possible.

Check the form DYNPRO_FIELD_1050.

Regards Wolfgang

Former Member
0 Kudos

When you say you added three fields, was it using some SAP exit, or is it a modification?

If the fields you mention is on a screen where you already know whether the equipment type is M [ie it is on the detail screen and you already know the equipment no to get the type], then you can loop through the itab SCREEN to disable these fields in the PBO of the screen you modified [set screen-invisible = 'X' for these fields and it shall do. ]

cheers,

Former Member
0 Kudos

Hi,

I used modification not an user exit.

I modifeid the screen SAPLITO0 1050 by adding the new fields in layout and changing the element list form table

equi to itob.

In PBO i have 3 subroutines. Can u please eloberate ur logic where to implement.

thanks,

sai chand

Former Member
0 Kudos

I don't know what those subroutines are. Since this is the first thing that shall be done, you can probably add it in the very first (or add a subroutine for this work).

In your screen editor, you can assign some value in the property of the three screen fields you added : attribute GROUPS. Let us say, you assigned 999 in GROUP1 for these three fields.

In your PBO, try the following logic

select data from db to get the equipment type.

if eq_type = 'M'.

loop at screen where group1 = '999'.

screen-invisible = 'X'.

modify screen.

endloop.

endif.

This will make these fields invisible on this screem if equipment type is 'M'.

cheers,