06-10-2009 10:50 AM
I want to show not all fields of my table in maintenance view. How to realize it?
06-10-2009 11:15 AM
Hi Yichao,
Chk these links
https://help.sap.com/saphelp_nw04/helpdata/en/5a/0c889a4d5911d2a5fb0000e82deaaa/content.htm
http://help.sap.com/saphelp_45b/helpdata/en/cf/21ec5d446011d189700000e8322d00/frameset.htm
thanks and regards
srikanth.p
06-10-2009 11:20 AM
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
06-10-2009 11:40 AM
hi,
When creating maintenance view, you can add those fields which are required, rest can be ignored.
06-11-2009 9:12 AM
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
06-11-2009 11:03 AM
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.
06-12-2009 4:52 AM
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.
06-15-2009 5:45 AM
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