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: 

disabling the history

Former Member
0 Kudos

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 ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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