2008 Nov 18 7:23 AM
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
2008 Nov 18 7:32 AM
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.
2008 Nov 18 8:03 AM
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
2008 Nov 18 7:35 AM
Hi,
Call Maintenance View from a program using FM VIEW_MAINTENANCE_CALL
2008 Nov 18 8:54 AM
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
2008 Nov 18 8:59 AM
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
2008 Nov 19 4:44 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |