ABAP OO Class Methods

UPDATE SAP Method - Update







Below is documentation, parameters and attributes of ABAP Method UPDATE within SAP class IF_GRFN_API_SURVEY. 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_GRFN_API_SURVEY 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_GRFN_API_SURVEY

Method Name

UPDATE

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


IS_SURVEY " Survey Template TYPE GRPC_S_API_SURVEY_DATA
IT_QUESTION " Survey Question TYPE GRPC_T_API_SRV_QUESTION_DATA
IT_SURVEY_CHOICE " Survey Question Choices TYPE GRFN_T_API_SRV_QUESTION_CHOICE
IV_FULL_CHECK " Flag (X or Blank) TYPE AS4FLAG
IV_REGULATION_ID " Object ID TYPE GRFN_API_OBJECT_ID
IV_VALUATION_DATA " Valuation Data TYPE GRFN_VALUATION_DATA

Exceptions:


CX_GRFN_EXCEPTION - Generic GRC API exception



Example ABAP coding


DATA:
ld_IS_SURVEY TYPE GRPC_S_API_SURVEY_DATA ,
ld_IT_QUESTION TYPE GRPC_T_API_SRV_QUESTION_DATA ,
ld_IT_SURVEY_CHOICE TYPE GRFN_T_API_SRV_QUESTION_CHOICE ,
ld_IV_FULL_CHECK TYPE AS4FLAG ,
ld_IV_REGULATION_ID TYPE GRFN_API_OBJECT_ID ,
ld_IV_VALUATION_DATA TYPE GRFN_VALUATION_DATA.

" ld_IS_SURVEY = "
" ld_IT_QUESTION = "
" ld_IT_SURVEY_CHOICE = "
" ld_IV_FULL_CHECK = "
" ld_IV_REGULATION_ID = "
" ld_IV_VALUATION_DATA = "

DATA: lo_SURVEY TYPE REF TO IF_GRFN_API_SURVEY .
CALL METHOD lo_SURVEY->UPDATE(
EXPORTING
IS_SURVEY = ld_IS_SURVEY
IT_QUESTION = ld_IT_QUESTION
IT_SURVEY_CHOICE = ld_IT_SURVEY_CHOICE
IV_FULL_CHECK = ld_IV_FULL_CHECK
IV_REGULATION_ID = ld_IV_REGULATION_ID
IV_VALUATION_DATA = ld_IV_VALUATION_DATA
EXCEPTIONS
CX_GRFN_EXCEPTION = 1 ).