SELECT_LEG_HEADER_DATA SAP Method Read multiple Legs (Header)
Below is documentation, parameters and attributes of ABAP Method SELECT_LEG_HEADER_DATA 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 SELECT_LEG_HEADER_DATA can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SELECT_LEG_HEADER_DATA
.| Name | Type | Data Type | Description | Default Value |
| IS_LEG_RANGE | Importing | TYPE /SCTM/BAPI_LEG_HD_RANGE | Leg BAPI: Range for Header Data | |
| IV_MAX_NUMB_LEGS | Importing | TYPE INT4 | Natural number | |
| ET_LEG_HD | Exporting | TYPE /SCTM/TT_SP_A_LEG_HD | Leg BAPI: Header Data | |
| EV_NUMB_LEGS | Exporting | TYPE INT4 | Number of read schedules | |
| EV_NUMB_LEGS_ALL | Exporting | TYPE INT4 | Number of available schedules | |
| EV_REJECTED | Exporting | TYPE BOOLE_D | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') |
Exceptions of Method SELECT_LEG_HEADER_DATA
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCTM/CL_BAPI_LEG.
DATA: lv_ET_LEG_HD TYPE /SCTM/TT_SP_A_LEG_HD,
lv_EV_NUMB_LEGS TYPE INT4,
lv_EV_NUMB_LEGS_ALL TYPE INT4,
lv_EV_REJECTED TYPE BOOLE_D,
lv_IS_LEG_RANGE TYPE /SCTM/BAPI_LEG_HD_RANGE,
lv_IV_MAX_NUMB_LEGS TYPE INT4,
lv_other TYPE c.
CALL METHOD lo_class=>SELECT_LEG_HEADER_DATA(
EXPORTING
IS_LEG_RANGE = lv_IS_LEG_RANGE
IV_MAX_NUMB_LEGS = lv_IV_MAX_NUMB_LEGS
IMPORTING
ET_LEG_HD = lv_ET_LEG_HD
EV_NUMB_LEGS = lv_EV_NUMB_LEGS
EV_NUMB_LEGS_ALL = lv_EV_NUMB_LEGS_ALL
EV_REJECTED = lv_EV_REJECTED ).
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