ABAP OO Class Methods

DISABLEHISTORYFORFIELD SAP Method - Disables a Specific History Field







Below is documentation, parameters and attributes of ABAP Method DISABLEHISTORYFORFIELD within SAP class CL_GUI_FRONTEND_SERVICES. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name CL_GUI_FRONTEND_SERVICES into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class belongs too

CL_GUI_FRONTEND_SERVICES

Method Name

DISABLEHISTORYFORFIELD

Method Type

Static Method:  This is a Static Method so you can call it directly








Importing Parameters:
Below is a list of importing parameters associated with this method, including its name, description and data type
FIELDNAME " Field name to disable TYPE STRING

Exceptions:
FIELD_NOT_FOUND - Field does not exist in history list
DISABLEHISTORYFORFIELD_FAILED - Access denied
CNTL_ERROR - Control error
UNABLE_TO_DISABLE_FIELD - Field is read-only

Example ABAP coding


DATA:
ld_FIELDNAME TYPE STRING.

" ld_FIELDNAME = "

CALL METHOD CL_GUI_FRONTEND_SERVICES=>DISABLEHISTORYFORFIELD(
EXPORTING
FIELDNAME = ld_FIELDNAME
EXCEPTIONS
FIELD_NOT_FOUND = 1
DISABLEHISTORYFORFIELD_FAILED = 2
CNTL_ERROR = 3
UNABLE_TO_DISABLE_FIELD = 4 ).