06-10-2011 8:28 PM
i need to pass a value to the before calling a table maintenance view through a program.so when the table maintenance view open it displays only the value passed through the program.
Kindly help me resolve the same.
Thank you in advance
Dilip
06-10-2011 8:47 PM
Please check the below code to call SM30 with restrictions. S_FIELD is Select option declared in the program.
CALL FUNCTION 'VIEW_RANGETAB_TO_SELLIST'
EXPORTING
fieldname = 'FIELDNAME'
TABLES
sellist = gt_sellist
rangetab = s_field.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = 'U'
view_name = 'ZTABLE_NAME'
TABLES
dba_sellist = gt_sellist
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.
06-11-2011 5:59 AM
Hi Dilip,
Try using the events in the table maintenance generator.
Regards,
Himanshu
06-11-2011 7:49 AM
Hi Dilip,
please refer to the below linkas it might help you in solving your problem:
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc&overridelayout=true]
thanks,
jai