LEG_READ_MULTI SAP Method Read multiple Legs









Below is documentation, parameters and attributes of ABAP Method LEG_READ_MULTI within SAP class /SCTM/CL_BAPI_LEG. 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 /SCTM/CL_BAPI_LEG 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 LEG_READ_MULTI can also be found below:

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


Parameters of Method LEG_READ_MULTI

.

NameTypeData TypeDescriptionDefault Value
IS_INCL_EXPORT_DATAImportingTYPE
/SCTM/BAPI_LEG_INCL_DATA
BAPI Leg: Specification of Required Data
IS_LEG_RANGEImportingTYPE
/SCTM/BAPI_LEG_HD_RANGE
Leg BAPI: Range for Header Data
IV_BU_SYSTEM_GROUPImportingTYPE
/SCMB/MDL_LOGQS
Business System Group
IV_LOG_SYSTEMImportingTYPE
/SCMB/MDL_LOGSYS
Logical System
IV_MAX_NUMB_LEGSImportingTYPE
INT4
maximum number of Schedules to be read
ET_LEG_CALExportingTYPE
/SCTM/TT_BAPI_LEG_CAL
BAPI Leg: Departure Calendar Data
ET_LEG_DEPARTUREExportingTYPE
/SCTM/TT_BAPI_LEG_DEPT_TIME
BAPI Leg: Departure Time Data
ET_LEG_HDExportingTYPE
/SCTM/TT_BAPI_LEG_HD
BAPI Leg: Header Data
ET_LEG_STOPExportingTYPE
/SCTM/TT_BAPI_LEG_STOP
BAPI Leg: Stop Data
ET_LEG_TSPExportingTYPE
/SCTM/TT_BAPI_LEG_TSP
BAPI Leg: Transportation Service Provider Data
EV_NUMB_LEGSExportingTYPE
INT4
number of read Schedules
EV_NUMB_LEGS_ALLExportingTYPE
INT4
number of available Schedules



Exceptions of Method LEG_READ_MULTI

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCTM/CL_BAPI_LEG.
DATA: lv_ET_LEG_CAL TYPE /SCTM/TT_BAPI_LEG_CAL,
lv_ET_LEG_DEPARTURE TYPE /SCTM/TT_BAPI_LEG_DEPT_TIME,
lv_ET_LEG_HD TYPE /SCTM/TT_BAPI_LEG_HD,
lv_ET_LEG_STOP TYPE /SCTM/TT_BAPI_LEG_STOP,
lv_ET_LEG_TSP TYPE /SCTM/TT_BAPI_LEG_TSP,
lv_EV_NUMB_LEGS TYPE INT4,
lv_EV_NUMB_LEGS_ALL TYPE INT4,
lv_IS_INCL_EXPORT_DATA TYPE /SCTM/BAPI_LEG_INCL_DATA,
lv_IS_LEG_RANGE TYPE /SCTM/BAPI_LEG_HD_RANGE,
lv_IV_BU_SYSTEM_GROUP TYPE /SCMB/MDL_LOGQS,
lv_IV_LOG_SYSTEM TYPE /SCMB/MDL_LOGSYS,
lv_IV_MAX_NUMB_LEGS TYPE INT4,
lv_other TYPE c.

CALL METHOD lo_class=>LEG_READ_MULTI(
EXPORTING
IS_INCL_EXPORT_DATA = lv_IS_INCL_EXPORT_DATA
IS_LEG_RANGE = lv_IS_LEG_RANGE
IV_BU_SYSTEM_GROUP = lv_IV_BU_SYSTEM_GROUP
IV_LOG_SYSTEM = lv_IV_LOG_SYSTEM
IV_MAX_NUMB_LEGS = lv_IV_MAX_NUMB_LEGS
IMPORTING
ET_LEG_CAL = lv_ET_LEG_CAL
ET_LEG_DEPARTURE = lv_ET_LEG_DEPARTURE
ET_LEG_HD = lv_ET_LEG_HD
ET_LEG_STOP = lv_ET_LEG_STOP
ET_LEG_TSP = lv_ET_LEG_TSP
EV_NUMB_LEGS = lv_EV_NUMB_LEGS
EV_NUMB_LEGS_ALL = lv_EV_NUMB_LEGS_ALL ).

Links to Related Class(s)

/SCTM/CL...
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!