DISABLEHISTORYFORFIELD

Use

Provides functionality for activating or deactivating the history for a dynpro element programmatically, i.e. from within an ABAP program. Since a history is only maintained for edit fields and drop downs, calling this method for any other object has no effect.

Arguments

[IMPORTING] fieldname TYPE STRING

Name of Dynpro element for which history should be enabled or disabled.

[IMPORTING] bdisabled TYPE ABAP_BOOL

Flag indicating whether the history should be disabled or enabled for the specified object.

Possible values:

  • ABAP_FALSE

    history will be enabled for the specified object

  • ABAP_TRUE

    history will be disabled for the specified object

[CHANGING] rc TYPE I

Return code specifying whether the history was enabled/disabled successfully for the specified field.

Possible values:

  • 0

    history for specified was enabled/disabled successfully for field

  • 1

    history for field could not be enabled/disabled

Exceptions

CNTL_ERROR

Raised if the method called for a user not utilizing a Windows or Java GUI or when calling the front end method fails.

DISABLEHISTORYFORFIELD_FAILED

Currently not used since front end cannot determine cause for failure.

FIELD_NOT_FOUND

Thrown if history data base cannot be accessed.

UNABLE_TO_DISABLE_FIELD

Currently not used since front end cannot determine cause for failure.

ERROR_NO_GUI

This exception is raised if neither Windows nor Java is being used

NOT_SUPPORTED_BY_GUI

This exception is fired if the GUI used does not support this functionality