ABAP OO Class Methods

CB_SET_FIELD_CONTENT SAP Method - Callback: Set Field Content







Below is documentation, parameters and attributes of ABAP Method CB_SET_FIELD_CONTENT within SAP class IF_ISH_GUI_CB_STRUCTURE_MODEL. 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 IF_ISH_GUI_CB_STRUCTURE_MODEL 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 method belongs too

IF_ISH_GUI_CB_STRUCTURE_MODEL

Method Name

CB_SET_FIELD_CONTENT

Method Type

Instance Method:   This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.






Importing Parameters:

Below is a list of importing parameters associated with this method, including its name, description and data type


IR_MODEL " IS-H: GUI - Structure-Type Model TYPE REF TO IF_ISH_GUI_STRUCTURE_MODEL
I_CONTENT " New Field Content TYPE ANY
I_FIELDNAME " Field Name TYPE ISH_FIELDNAME

Returning Parameters:


R_CONTINUE " abap_true: Continue Processing TYPE ABAP_BOOL

Exceptions:


CX_ISH_STATIC_HANDLER - IS-H: Superclass for Static Exceptions



Example ABAP coding


DATA:
ld_IR_MODEL TYPE REF TO IF_ISH_GUI_STRUCTURE_MODEL ,
ld_I_CONTENT TYPE ANY ,
ld_I_FIELDNAME TYPE ISH_FIELDNAME ,
ld_R_CONTINUE TYPE ABAP_BOOL.

" ld_IR_MODEL = "
" ld_I_CONTENT = "
" ld_I_FIELDNAME = "

DATA: lo_MODEL TYPE REF TO IF_ISH_GUI_CB_STRUCTURE_MODEL .
CALL METHOD lo_MODEL->CB_SET_FIELD_CONTENT(
EXPORTING
IR_MODEL = ld_IR_MODEL
I_CONTENT = ld_I_CONTENT
I_FIELDNAME = ld_I_FIELDNAME
RECEIVING
R_CONTINUE = ld_R_CONTINUE
EXCEPTIONS
CX_ISH_STATIC_HANDLER = 1 ).

"Alternate coding for Method Call with returning parameter



ld_R_CONTINUE = lo_MODEL->CB_SET_FIELD_CONTENT(
EXPORTING
IR_MODEL = ld_IR_MODEL
I_CONTENT = ld_I_CONTENT
I_FIELDNAME = ld_I_FIELDNAME ).


ld_R_CONTINUE = lo_MODEL->CB_SET_FIELD_CONTENT(
EXPORTING
IR_MODEL = ld_IR_MODEL
I_CONTENT = ld_I_CONTENT
I_FIELDNAME = ld_I_FIELDNAME ).