2010 Mar 01 3:08 PM
Hi ,
I have created a maint view variant for a custome table using SM54 , and it works fine when i test it .
My question is how can i provide the user a transaciton to access this view, i want some thing similar to SM30 , as this view variant cannot be used in SM30 .
So please suggest what transaciton to use and how to use it.
Regards
Arun
2010 Mar 02 5:38 AM
Hi Arun,
Use this FM: CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
DATA : it_sellist TYPE TABLE OF vimsellist with header line,
it_cua_funct TYPE TABLE OF vimexclfun.
it_sellist-VIEWFIELD = 'FIELD_01'.
it_sellist-OPERATOR = 'EQ'.
it_sellist-value = pr_vkorg.
it_sellist-AND_OR = 'AND'.
append it_sellist.
it_sellist-VIEWFIELD = 'FIELD_02'.
it_sellist-OPERATOR = 'EQ'.
it_sellist-value = PR_WERB.
append it_sellist.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = 'U'
CORR_NUMBER = ' '
GENERATE_MAINT_TOOL_IF_MISSING = ' '
show_selection_popup = ' '
view_name = 'ZTABLE' " TABLE NAME
NO_WARNING_FOR_CLIENTINDEP = ' '
RFC_DESTINATION_FOR_UPGRADE = ' '
CLIENT_FOR_UPGRADE = ' '
variant_for_selection = ' '
COMPLEX_SELCONDS_USED = 'X'
check_ddic_mainflag = 'X'
SUPPRESS_WA_POPUP = ' '
TABLES
dba_sellist = it_sellist
excl_cua_funct = it_cua_funct
EXCEPTIONS
client_reference = 1
foreign_lock = 2
invalid_action = 3
no_clientindependent_auth = 4
no_database_function = 5
no_editor_function = 6
no_show_auth = 7
no_tvdir_entry = 8
no_upd_auth = 9
only_show_allowed = 10
system_failure = 11
unknown_field_in_dba_sellist = 12
view_not_found = 13
maintenance_prohibited = 14
OTHERS = 15
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE.
MESSAGE text-002 TYPE 'E'.
ENDIF.
Hope it helps you,
Regards,
Abhijit G. Borkar
Hi Arun,
Use this FM: CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
DATA : it_sellist TYPE TABLE OF vimsellist with header line,
it_cua_funct TYPE TABLE OF vimexclfun.
it_sellist-VIEWFIELD = 'FIELD_01'.
it_sellist-OPERATOR = 'EQ'.
it_sellist-value = pr_vkorg.
it_sellist-AND_OR = 'AND'.
append it_sellist.
it_sellist-VIEWFIELD = 'FIELD_02'.
it_sellist-OPERATOR = 'EQ'.
it_sellist-value = PR_WERB.
append it_sellist.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = 'U'
CORR_NUMBER = ' '
GENERATE_MAINT_TOOL_IF_MISSING = ' '
show_selection_popup = ' '
view_name = 'ZTABLE' " TABLE NAME
NO_WARNING_FOR_CLIENTINDEP = ' '
RFC_DESTINATION_FOR_UPGRADE = ' '
CLIENT_FOR_UPGRADE = ' '
variant_for_selection = ' '
COMPLEX_SELCONDS_USED = 'X'
check_ddic_mainflag = 'X'
SUPPRESS_WA_POPUP = ' '
TABLES
dba_sellist = it_sellist
excl_cua_funct = it_cua_funct
EXCEPTIONS
client_reference = 1
foreign_lock = 2
invalid_action = 3
no_clientindependent_auth = 4
no_database_function = 5
no_editor_function = 6
no_show_auth = 7
no_tvdir_entry = 8
no_upd_auth = 9
only_show_allowed = 10
system_failure = 11
unknown_field_in_dba_sellist = 12
view_not_found = 13
maintenance_prohibited = 14
OTHERS = 15
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE.
MESSAGE text-002 TYPE 'E'.
ENDIF.
Hope it helps you,
Regards,
Abhijit G. Borkar
2010 Mar 02 5:38 AM
Hi Arun,
Use this FM: CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
DATA : it_sellist TYPE TABLE OF vimsellist with header line,
it_cua_funct TYPE TABLE OF vimexclfun.
it_sellist-VIEWFIELD = 'FIELD_01'.
it_sellist-OPERATOR = 'EQ'.
it_sellist-value = pr_vkorg.
it_sellist-AND_OR = 'AND'.
append it_sellist.
it_sellist-VIEWFIELD = 'FIELD_02'.
it_sellist-OPERATOR = 'EQ'.
it_sellist-value = PR_WERB.
append it_sellist.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = 'U'
CORR_NUMBER = ' '
GENERATE_MAINT_TOOL_IF_MISSING = ' '
show_selection_popup = ' '
view_name = 'ZTABLE' " TABLE NAME
NO_WARNING_FOR_CLIENTINDEP = ' '
RFC_DESTINATION_FOR_UPGRADE = ' '
CLIENT_FOR_UPGRADE = ' '
variant_for_selection = ' '
COMPLEX_SELCONDS_USED = 'X'
check_ddic_mainflag = 'X'
SUPPRESS_WA_POPUP = ' '
TABLES
dba_sellist = it_sellist
excl_cua_funct = it_cua_funct
EXCEPTIONS
client_reference = 1
foreign_lock = 2
invalid_action = 3
no_clientindependent_auth = 4
no_database_function = 5
no_editor_function = 6
no_show_auth = 7
no_tvdir_entry = 8
no_upd_auth = 9
only_show_allowed = 10
system_failure = 11
unknown_field_in_dba_sellist = 12
view_not_found = 13
maintenance_prohibited = 14
OTHERS = 15
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE.
MESSAGE text-002 TYPE 'E'.
ENDIF.
Hope it helps you,
Regards,
Abhijit G. Borkar
2010 Mar 02 1:10 PM
You can create a dialog report and call the maintenance view using FM : VIEW_MAINTENANCE_CALL
While creating transaction for this report select the option with the option "program and selection screen" and pass the variant here .
2010 Mar 02 4:04 PM
2010 Mar 02 4:20 PM
2010 Mar 02 6:04 PM
he is asking how to assign the transaction code to maintenance view...
2010 Mar 03 8:18 PM
Hi All ,
Thanks for the response .
I will try using the FM mentioned in the posts , but as far as using SM30 is concerned , we cannot use it for Maintenance view variant , it is only for maintenance views not for varaints .
Regards,
Arun
2010 Mar 03 9:10 AM
Hi Arun,
Create a custom transaction code using se93 .
Ex, transaction name zXXXX
click create
choose the last radio button, Transaction with parameter and give short text.
u will enter another screen:
transaction = SM30
tick skip initial screen
set the below default values as
VIEWNAME 'UR view name'
UPDATE X
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |