NEXT SAP Method Get next data package by last object id









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

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_BADI_ESH_IF_OBJECT_DATA 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 NEXT can also be found below:

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


Parameters of Method NEXT

.

NameTypeData TypeDescriptionDefault Value
IT_OBJECT_EXTRACTIONImportingTYPE
ESH_T_IF_EXTRACT_NODES
Extraction of nodes
IV_LAST_OBJECT_IDImportingTYPE
ESH_E_IF_GENERAL_ID
General ID
IV_LAST_OBJECT_ID_STRINGImportingTYPE
ESH_E_IF_IDENTIFIER_STRING
Unique unlimited identifier
IV_OBJECT_TYPE_BACKEND_NAMEImportingTYPE
ESH_E_OM_BACKEND_NAME
Backend Name
IV_OBJECT_TYPE_IDImportingTYPE
ESH_E_OM_OBJECT_TYPE
Object Type
IV_PACKAGE_SIZEImportingTYPE
ESH_E_IF_PACKAGE_SIZE
Package size
IV_CLIENTImportingTYPE
SYST-MANDT
Client for client specified selects if <> sy-mandt
ET_MESSAGESExportingTYPE
BAPIRETTAB
Table with BAPI Return Information
EV_LAST_OBJECT_IDExportingTYPE
ESH_E_IF_GENERAL_ID
General ID
EV_LAST_OBJECT_ID_STRINGExportingTYPE
ESH_E_IF_IDENTIFIER_STRING
Unique unlimited identifier
EV_NO_MORE_DATAExportingTYPE
XFELD
Checkbox



Exceptions of Method NEXT

CX_ESH_IF_PROVIDER_ERROR - General error in provider

Example ABAP coding


DATA: lo_class TYPE REF TO IF_BADI_ESH_IF_OBJECT_DATA.
DATA: lv_ET_MESSAGES TYPE BAPIRETTAB,
lv_EV_LAST_OBJECT_ID TYPE ESH_E_IF_GENERAL_ID,
lv_EV_LAST_OBJECT_ID_STRING TYPE ESH_E_IF_IDENTIFIER_STRING,
lv_EV_NO_MORE_DATA TYPE XFELD,
lv_IT_OBJECT_EXTRACTION TYPE ESH_T_IF_EXTRACT_NODES,
lv_IV_LAST_OBJECT_ID TYPE ESH_E_IF_GENERAL_ID,
lv_IV_LAST_OBJECT_ID_STRING TYPE ESH_E_IF_IDENTIFIER_STRING,
lv_IV_OBJECT_TYPE_BACKEND_NAME TYPE ESH_E_OM_BACKEND_NAME,
lv_IV_OBJECT_TYPE_ID TYPE ESH_E_OM_OBJECT_TYPE,
lv_IV_PACKAGE_SIZE TYPE ESH_E_IF_PACKAGE_SIZE,
lv_IV_CLIENT TYPE SYST-MANDT,
lv_other TYPE c.

CALL METHOD lo_class=>NEXT(
EXPORTING
IT_OBJECT_EXTRACTION = lv_IT_OBJECT_EXTRACTION
IV_LAST_OBJECT_ID = lv_IV_LAST_OBJECT_ID
IV_LAST_OBJECT_ID_STRING = lv_IV_LAST_OBJECT_ID_STRING
IV_OBJECT_TYPE_BACKEND_NAME = lv_IV_OBJECT_TYPE_BACKEND_NAME
IV_OBJECT_TYPE_ID = lv_IV_OBJECT_TYPE_ID
IV_PACKAGE_SIZE = lv_IV_PACKAGE_SIZE
IV_CLIENT = lv_IV_CLIENT
IMPORTING
ET_MESSAGES = lv_ET_MESSAGES
EV_LAST_OBJECT_ID = lv_EV_LAST_OBJECT_ID
EV_LAST_OBJECT_ID_STRING = lv_EV_LAST_OBJECT_ID_STRING
EV_NO_MORE_DATA = lv_EV_NO_MORE_DATA ).

Links to Related Class(s)

IF_BADI_...
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!