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 hide a field of the maintenance view?

Former Member
0 Kudos

I want to show not all fields of my table in maintenance view. How to realize it?

7 REPLIES 7

Former Member
0 Kudos

Hi,

if u r declaring like this then give 'X' in wa_layout-no_totline '.

wa_sort2-spos = 1.

wa_sort2-fieldname = 'SRNO'.

wa_sort2-up = 'X'.

wa_sort2-subtot = 'X'.

APPEND wa_sort2 TO i_sort2.*

*Hide the total line*<----


wa_layout-no_totline = 'X'.<----


Regards,

Sneha.

Edited by: sneha kumari on Jun 12, 2009 6:56 AM

Former Member
0 Kudos

hi,

When creating maintenance view, you can add those fields which are required, rest can be ignored.

Former Member
0 Kudos

Hi Yichao,

While creating a maintenance view, you have a fourth column which is named 'P'. Set this column to 'H' for the fields you want to hide while displaying the maintenance view.

However, please note, if you hiding the key fields of the maintenance view, you have to take care to fill them up using a event of the maintenance view which is event 21. If you miss this step, it might lead to some inconsistencies in the data handling.

Regards

Varsha

Former Member
0 Kudos

Hello,

Add following code in event 19 ( global variable init ) of maintenance view.

LOOP AT x_namtab.

IF x_namtab-viewfield = 'ZUSER' "This is name of field - Exact table field name to be hidden in Mview

MOVE 'H' TO x_namtab-readonly. " This is for not displaying the field in maint view.

MODIFY x_namtab.

ENDIF.

ENDLOOP.

Former Member
0 Kudos

Thanks all~

Can anyone give me a direction or document from the beginning part? A step by step is better.

Some of your code I can not understand.

0 Kudos

The maintenance attribute 'P' does not require any special coding, however, you need to regenerate the maintenance view once you change any thing in the view.

Check this link for more information.

http://help.sap.com/erp2005_ehp_04/helpdata/EN/80/808b57e12511d295f300a0c929b3c3/frameset.htm