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

Calling maintenance view from abap

Former Member
0 Likes
15,093

Hello SDNers,

I was trying to call a maintenance view from my abap program

Example :

Maintenance view name : ZNRD_MV1

Tables : ZNRD_MATERIAL and ZNRD_VENDOR

once we generate the maintenance view it creates 2 Function Module

1) VIEWFRAME_ZNRD_MV1

2) VIEWPROC_ZNRD_MV1

Can i use these function module within my abap program to call or display the maintenance view.

If not what is other way of it ?

Sample or example would help a lot.

Regards,

Ranjth N

Hello SDNers,

I was trying to call a maintenance view from my abap program

Example :

Maintenance view name : ZNRD_MV1

Tables : ZNRD_MATERIAL and ZNRD_VENDOR

once we generate the maintenance view it creates 2 Function Module

1) VIEWFRAME_ZNRD_MV1

2) VIEWPROC_ZNRD_MV1

Can i use these function module within my abap program to call or display the maintenance view.

If not what is other way of it ?

Sample or example would help a lot.

Regards,

Ranjth N

6 REPLIES 6
Read only

JozsefSzikszai
Active Contributor
0 Likes
5,870

use FM VIEW_MAINTENANCE_CALL:

CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
    EXPORTING
      action                               = 'U'
*   CORR_NUMBER                          = '          '
*   GENERATE_MAINT_TOOL_IF_MISSING       = ' '
*   SHOW_SELECTION_POPUP                 = ' '
      view_name                            = 'Z...' "here comes the name of the table/view (ZNRD_MV1 in this case)
*   NO_WARNING_FOR_CLIENTINDEP           = ' '
*   RFC_DESTINATION_FOR_UPGRADE          = ' '
*   CLIENT_FOR_UPGRADE                   = ' '
*   VARIANT_FOR_SELECTION                = ' '
*   COMPLEX_SELCONDS_USED                = ' '
*   CHECK_DDIC_MAINFLAG                  = ' '
*   SUPPRESS_WA_POPUP                    = ' '
* TABLES
*   DBA_SELLIST                          =
*   EXCL_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.

Read only

0 Likes
5,870

Alternatively, you can also create a transaction with parameters. And use SM30 as the transaction, check the skip initial screen check box and then maintain the parameters as VIEWNAME, specify the db table name or view name & maintain 'X' against parameter SHOW or UPDATE for directly starting the table maintenance in display mode or change mode respectively.

regards,

Advait

Read only

Former Member
0 Likes
5,870

Hi,

Call Maintenance View from a program using FM VIEW_MAINTENANCE_CALL

Read only

Former Member
0 Likes
5,870

Hi SDNers,

Thanking you all for your prompt reply.

What are these parameters for in the FM 'VIEW_MAINTENANCE_CALL'

  • TABLES

  • DBA_SELLIST =

  • EXCL_CUA_FUNCT =

Regards,

Ranjith N

Read only

0 Likes
5,870

did you read the documentation of the FM?

DBA_SELLIST ==> you can restrict the selection from the table/view

EXCL_CUA_FUNCT ==> you can exclude icons/menu options

Read only

Former Member
0 Likes
5,870

Answered