disabling the history
i want to disable the history for the input field not for the all fields .
i disable through the settings but all the fields history are disable .
how to disable the history for the sing field in a screen ?
Chinnaiya Pandian replied
hi ashok ,
try this sample code . module CLEAR output.
CALL METHOD cl_gui_frontend_services=>disablehistoryforfield EXPORTING fieldname = 'USERID' " field name you want to disable bdisabled = abap_on changing rc = result EXCEPTIONS field_not_found = 1 disablehistoryforfield_failed = 2 cntl_error = 3 unable_to_disable_field = 4 others = 5 . IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. endmodule. " CLEAR OUTPUT