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

Maintenance View Variant

Former Member
0 Likes
1,773

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,288

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,289

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

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,288

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 .

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,288

Hi,

Check out below locked thread. It has answer as well as forum guide lines. Didn't notice this.

Thanks,

Vinod.

Read only

0 Likes
1,288

Hi Vinod,

Its something different right ?

Read only

0 Likes
1,288

he is asking how to assign the transaction code to maintenance view...

Read only

0 Likes
1,288

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

Read only

Former Member
0 Likes
1,288

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