Application Development and Automation 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: 
Read only

Work with screen for IT0021

Former Member
0 Likes
419

Hello everyone,

I am working on hiding some fields from IT0021, to do that I went to the particular screen related to IT0021 and made the required fields invisible. Now when I was testing it.. I went to PA30 and tried to display one record for infotype 21 and expected the fields which I hide didn't show up, but when I went to PA30 and tried to go into change mode i could see the structure/frame/box of the fields which I hide.... so I am not sure why this is happening..... can anyone guide me through with this.

Thank you ...

Rajat

1 ACCEPTED SOLUTION
Read only

hadiman_ngoei
Product and Topic Expert
Product and Topic Expert
0 Likes
390

The alternative way of doing it is by using Transaction Variant. Check out the documentation :

http://help.sap.com/saphelp_nw70/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm

Thanks & regards,

Hadiman

2 REPLIES 2
Read only

hadiman_ngoei
Product and Topic Expert
Product and Topic Expert
0 Likes
391

The alternative way of doing it is by using Transaction Variant. Check out the documentation :

http://help.sap.com/saphelp_nw70/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm

Thanks & regards,

Hadiman

Read only

Former Member
0 Likes
390

Hi,

This is because internally in code SAP makes all field visible.

To achieve your requirement you assign the group to all the fields that you want to hide.

Then in PBO in last module define under it, you write following code,

loop at screen.
if screen-<groupno> = <groupname>."there four group numbers in screen layout and it depends on the where you have placed your group name.
screen.invisible = '1'.
modify screen.
endif.
endloop.

Hope it helps.