Below is documentation, parameters and attributes of ABAP Method QUERY 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
QUERY
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
IO_SESSION " Session Management for GRC APIs TYPE REF TO CL_GRFN_API_SESSION
IT_QCATEGORY_FILTER " Question category TYPE GRPC_T_API_QCATEGORY
IV_ONLY_ACTIVE " Flag (X or Blank) TYPE AS4FLAG
IV_PATTERN " API search pattern TYPE GRFN_API_SEARCH_PATTERN
IV_REGULATION_ID " Object ID TYPE GRFN_API_OBJECT_ID
Exporting Parameters:
ET_SURVEY " Survey Template TYPE GRPC_T_API_SURVEY_DATA
Exceptions:
CX_GRFN_EXCEPTION - Generic GRC API exception
Example ABAP coding
DATA:
ld_IO_SESSION TYPE REF TO CL_GRFN_API_SESSION ,
ld_IT_QCATEGORY_FILTER TYPE GRPC_T_API_QCATEGORY ,
ld_IV_ONLY_ACTIVE TYPE AS4FLAG ,
ld_IV_PATTERN TYPE GRFN_API_SEARCH_PATTERN ,
ld_IV_REGULATION_ID TYPE GRFN_API_OBJECT_ID ,
ld_ET_SURVEY TYPE GRPC_T_API_SURVEY_DATA.
" ld_IO_SESSION = "
" ld_IT_QCATEGORY_FILTER = "
" ld_IV_ONLY_ACTIVE = "
" ld_IV_PATTERN = "
" ld_IV_REGULATION_ID = "
- CALL METHOD IF_GRFN_API_SURVEY=>QUERY(
- EXPORTING
- IO_SESSION = ld_IO_SESSION
- IT_QCATEGORY_FILTER = ld_IT_QCATEGORY_FILTER
- IV_ONLY_ACTIVE = ld_IV_ONLY_ACTIVE
- IV_PATTERN = ld_IV_PATTERN
- IV_REGULATION_ID = ld_IV_REGULATION_ID
- IMPORTING
- ET_SURVEY = ld_ET_SURVEY
- EXCEPTIONS
- CX_GRFN_EXCEPTION = 1 ).