Application Development 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: 

Update a maintenance view.

Former Member
0 Kudos

Hi ,

I want to update a maintenance view.

Data is coming from a text file which i am uplaoding.

Which function module should I use to update the maintenence view.

Thanks,

Ram.

6 REPLIES 6

Former Member
0 Kudos

Hi,

Please find this similar link for your query.

https://forums.sdn.sap.com/click.jspa?searchID=25073804&messageID=5685168

Regards,

Venkatesh

Former Member
0 Kudos

Hello,

Use a BDC Program to maintain the data.

GUI_UPLOAD is the function module for uploading data from text file.

Regards,

Lijo.

former_member438956
Active Participant
0 Kudos

hi,

LSMW is more preferable instead of writing a BDC program as the data has to be uploaded in maintenance view.

Regards,

Anil N.

Former Member
0 Kudos

hi,

use this FM VIEW_MAINTENANCE_CALL

hope it will work.

use this code .

&----


& Report Z_TEST_PROGRAM&--
*& Demo program for blog http://abap-explorer.blogspot.com/&
--


REPORT z_test_program.DATA:i_sellist TYPE STANDARD TABLE OF vimsellist INITIAL SIZE 0,i_header TYPE STANDARD TABLE OF vimdesc INITIAL SIZE 0,i_namtab TYPE STANDARD TABLE OF vimnamtab INITIAL SIZE 0.PARAMETERS: p_view TYPE viewname MATCHCODE OBJECT viewmaint OBLIGATORY.AT SELECTION-SCREEN.CALL FUNCTION 'VIEW_GET_DDIC_INFO' EXPORTING viewname = p_view VARIANT_FOR_SELECTION = ' ' TABLES sellist = i_sellist x_header = i_header x_namtab = i_namtabEXCEPTIONS no_tvdir_entry = 1 table_not_found = 2 OTHERS = 3 .IF sy-subrc <> 0. data: l_message type NATXT. CONCATENATE 'Table/View' p_view INTO l_message SEPARATED BY space. MESSAGE e001(00) WITH l_message ' not in the Dictonary'.ENDIF.START-OF-SELECTION.CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action = 'S' view_name = p_viewEXCEPTIONS 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 i001(00) WITH 'Error while calling the view'. LEAVE LIST-PROCESSING.ENDIF.

Edited by: katigiri linganna on Apr 20, 2009 4:31 PM

Former Member
0 Kudos

Hi Ram,

check with the FM

VIEW_MAINTENANCE_NO_DIALOG

with parameter = 'SAVE'

Thanks!

Former Member
0 Kudos

answered