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

Screen exit issue

Former Member
0 Likes
511

Hi Forum,

I added a custom field in purchase order and contracts ( ME21N and ME31K) using the enhancement 'MM06E005'.

My problem is the same field is appearing in ME21 and ME31 also..

I want to hide this field for ME21 and ME31 transactions. In PBO of screen exit, i tried the following code

if sy-tcode = 'ME21'.

loop at screen.

if screen-name = 'Custom_field'.

screen-invisible = '1'.

modify screen.

endif.

endloop.

It is still displaying the field..

Please help me out how to proceed..

Thanks

Mallika

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
471

Try like

if screen-name = 'CUSTOM_FIELD'.

Read only

0 Likes
471

thanks for the reply..but it is not due to incorrect/case mismatch..

Read only

0 Likes
471

Did you debug and check.

Check the values in SCREEN, where it doesnt satisfy the condition.