MODIFY_LEG_HEADER SAP Method Modify Leg Header









Below is documentation, parameters and attributes of ABAP Method MODIFY_LEG_HEADER 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 MODIFY_LEG_HEADER can also be found below:

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


Parameters of Method MODIFY_LEG_HEADER

.

NameTypeData TypeDescriptionDefault Value
IT_LEG_HD_XImportingTYPE
/SCTM/TT_BAPI_LEG_HD_X
Leg BAPI: Change Indicator for Header Data
IT_LEG_STOP_XImportingTYPE
/SCTM/TT_BAPI_LEG_STOP_X
Leg BAPI: Change Indicator for Stop Data
ET_LEG_HD_INSERT_OKExportingTYPE
/SCTM/TT_SP_A_LEG_HD
Leg UI: Header
EV_REJECTEDExportingTYPE
BOOLE_D
SP action rejected
CT_LEG_HD_BAPIChangingTYPE
/SCTM/TT_BAPI_LEG_HD
Leg BAPI: Header Data
CT_LEG_HD_SPChangingTYPE
/SCTM/TT_SP_A_LEG_HD
Leg UI: Header
CT_LEG_STOP_BAPIChangingTYPE
/SCTM/TT_BAPI_LEG_STOP
Leg BAPI: Stop Data



Exceptions of Method MODIFY_LEG_HEADER

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCTM/CL_BAPI_LEG.
DATA: lv_CT_LEG_HD_BAPI TYPE /SCTM/TT_BAPI_LEG_HD,
lv_CT_LEG_HD_SP TYPE /SCTM/TT_SP_A_LEG_HD,
lv_CT_LEG_STOP_BAPI TYPE /SCTM/TT_BAPI_LEG_STOP,
lv_ET_LEG_HD_INSERT_OK TYPE /SCTM/TT_SP_A_LEG_HD,
lv_EV_REJECTED TYPE BOOLE_D,
lv_IT_LEG_HD_X TYPE /SCTM/TT_BAPI_LEG_HD_X,
lv_IT_LEG_STOP_X TYPE /SCTM/TT_BAPI_LEG_STOP_X,
lv_other TYPE c.

CALL METHOD lo_class=>MODIFY_LEG_HEADER(
EXPORTING
IT_LEG_HD_X = lv_IT_LEG_HD_X
IT_LEG_STOP_X = lv_IT_LEG_STOP_X
IMPORTING
ET_LEG_HD_INSERT_OK = lv_ET_LEG_HD_INSERT_OK
EV_REJECTED = lv_EV_REJECTED
CHANGING
CT_LEG_HD_BAPI = lv_CT_LEG_HD_BAPI
CT_LEG_HD_SP = lv_CT_LEG_HD_SP
CT_LEG_STOP_BAPI = lv_CT_LEG_STOP_BAPI ).

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!