04-20-2009 2:40 PM
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.
04-20-2009 2:53 PM
Hi,
Please find this similar link for your query.
https://forums.sdn.sap.com/click.jspa?searchID=25073804&messageID=5685168
Regards,
Venkatesh
04-20-2009 2:57 PM
Hello,
Use a BDC Program to maintain the data.
GUI_UPLOAD is the function module for uploading data from text file.
Regards,
Lijo.
04-20-2009 3:25 PM
hi,
LSMW is more preferable instead of writing a BDC program as the data has to be uploaded in maintenance view.
Regards,
Anil N.
04-20-2009 3:31 PM
hi,
use this FM VIEW_MAINTENANCE_CALL
hope it will work.
use this code .
&----
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
04-20-2009 3:36 PM
Hi Ram,
check with the FM
VIEW_MAINTENANCE_NO_DIALOG
with parameter = 'SAVE'
Thanks!
06-18-2010 7:00 AM