OPEN_CURSOR SAP Method of class IF_RODPS_ODP_DIRECT_ACCESS









Below is documentation, parameters and attributes of ABAP Method OPEN_CURSOR within SAP class IF_RODPS_ODP_DIRECT_ACCESS. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_RODPS_ODP_DIRECT_ACCESS into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

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.

The following technical details of method OPEN_CURSOR can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method OPEN_CURSOR

.

NameTypeData TypeDescriptionDefault Value
IR_SELECTION_SETImportingTYPE REF TO
CL_RSMDS_SET
Selection as an Amount Object (FEMS = 0)
ITR_SELECTION_SETSImportingTYPE
RSMDS_TR_SETS
More Selections as an Amount Object (FEMS > 0)
IT_FIELD_AGGREGATIONSImportingTYPE
IF_RODPS_ODP_DIRECT_ACCESS=>TT_FIELD_AGGREGATIONS
Projection, Renaming and Aggregation
IT_SORT_DESCRIPTIONSImportingTYPE
IF_RODPS_ODP_DIRECT_ACCESS=>TT_SORT_DESCRIPTIONS
Sorting
I_FORCE_DIRECT_ACCESSImportingTYPE
ABAP_BOOL
I_MAXIMUM_ROWSImportingTYPE
I
Maximum Size of the Result Set in Data Records
I_NO_AGGREGATIONImportingTYPE
ABAP_BOOL
No Aggregation (Ignore Aggregate Function)
I_POINT_IN_TIMEImportingTYPE
SIMPLE
Key Date/Time For Time-Dependent Data
RR_CURSORReturningTYPE REF TO
IF_RODPS_ODP_CURSOR
Cursor



Exceptions of Method OPEN_CURSOR

CX_RODPS_NO_MORE_DATA -

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lo_class TYPE REF TO IF_RODPS_ODP_DIRECT_ACCESS.
DATA: lv_IR_SELECTION_SET TYPE CL_RSMDS_SET,
lv_ITR_SELECTION_SETS TYPE RSMDS_TR_SETS,
lv_IT_FIELD_AGGREGATIONS TYPE IF_RODPS_ODP_DIRECT_ACCESS=>TT_FIELD_AGGREGATIONS,
lv_IT_SORT_DESCRIPTIONS TYPE IF_RODPS_ODP_DIRECT_ACCESS=>TT_SORT_DESCRIPTIONS,
lv_I_FORCE_DIRECT_ACCESS TYPE ABAP_BOOL,
lv_I_MAXIMUM_ROWS TYPE I,
lv_I_NO_AGGREGATION TYPE ABAP_BOOL,
lv_I_POINT_IN_TIME TYPE SIMPLE,
lv_RR_CURSOR TYPE IF_RODPS_ODP_CURSOR,
lv_other TYPE c.

CALL METHOD lo_class=>OPEN_CURSOR(
EXPORTING
IR_SELECTION_SET = lv_IR_SELECTION_SET
ITR_SELECTION_SETS = lv_ITR_SELECTION_SETS
IT_FIELD_AGGREGATIONS = lv_IT_FIELD_AGGREGATIONS
IT_SORT_DESCRIPTIONS = lv_IT_SORT_DESCRIPTIONS
I_FORCE_DIRECT_ACCESS = lv_I_FORCE_DIRECT_ACCESS
I_MAXIMUM_ROWS = lv_I_MAXIMUM_ROWS
I_NO_AGGREGATION = lv_I_NO_AGGREGATION
I_POINT_IN_TIME = lv_I_POINT_IN_TIME
RECEIVING
RR_CURSOR = lv_RR_CURSOR )



"Alternate coding for Method Call with returning parameter
lv_RR_CURSOR = lo_class=>OPEN_CURSOR(
EXPORTING
IR_SELECTION_SET = lv_IR_SELECTION_SET
ITR_SELECTION_SETS = lv_ITR_SELECTION_SETS
IT_FIELD_AGGREGATIONS = lv_IT_FIELD_AGGREGATIONS
IT_SORT_DESCRIPTIONS = lv_IT_SORT_DESCRIPTIONS
I_FORCE_DIRECT_ACCESS = lv_I_FORCE_DIRECT_ACCESS
I_MAXIMUM_ROWS = lv_I_MAXIMUM_ROWS
I_NO_AGGREGATION = lv_I_NO_AGGREGATION
I_POINT_IN_TIME = lv_I_POINT_IN_TIME ).

Links to Related Class(s)

IF_RODPS...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!