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: 

hiding std infotype fields in coding.

Former Member
0 Kudos
302

HI all,

I have enhanced a standard infotype. I want to hide all the std fields when a particular subtype is selected. Instead, a new set of fields (fields added in the customer include structure) need to be shown.

I have added logic to hide the standard fields in the module pool pgm ZP000600. But the std fields are still displayed when i view the infotype in PA30.

loop at screen.

if screen-name = 'P0006-ZLOCAT1'.

screen-active = 0.

modify scren.

endif.

endloop.

But the same coding is working for custom fields..I.e. Custom fields are hidden.

Pls tell me how to hide the std fields through coding?.

3 REPLIES 3

Former Member
0 Kudos
84

Hi,

Write the logic in userexit. ( include ZXPADU01)

Regards,

Srini.

0 Kudos
84

HI,

If i write the coding in user exit, then the std fields are hidden only while i click 'CREATE' button and while clicking 'Change' or 'Display' button, again the standard fields are displayed again.

So i tried writing the coding in the PBO of BADI (HRPAD00INFTY) implementation and the standard fields are hidden even in display and change more. But still i have some problem.

That is, while i click create and enter the infotype start date, its ginving me some warning messages like 'This entry delimits the record'. 'This entry deletes a record'.. When i press enter after all these warning, again the standard fields are getting displayed in the screen. At this time, none of the coding in exit and badi is called.

Pls advice me how to solve this issue?

0 Kudos
84

Hi Shanthi,

I have a same requirement like this and I am facing the same problem as your above post. when I press enter the std fields are displayed again. Can you please tell me in what way you overcome this? It would be very helpful for me..

Thanks and Regards,

July