Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

disabling the history

hi guys,

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 ?

Former Member
Former Member 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

regards

chinnaiya .P

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question