MODIFY_LEG_TSP SAP Method Modify Leg TSP assignments









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

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


Parameters of Method MODIFY_LEG_TSP

.

NameTypeData TypeDescriptionDefault Value
IT_LEG_HD_INSERT_OKImportingTYPE
/SCTM/TT_SP_A_LEG_HD
Leg UI: Header
IT_LEG_TSP_XImportingTYPE
/SCTM/TT_BAPI_LEG_TSP_X
Leg API: Change Indicator for TSP Data
EV_REJECTEDExportingTYPE
BOOLE_D
Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
CT_LEG_TSP_BAPIChangingTYPE
/SCTM/TT_BAPI_LEG_TSP
Leg BAPI: Transportation Service Provider Data
CT_LEG_TSP_SPChangingTYPE
/SCTM/TT_SP_A_LEG_TSP
Leg UI: Transportation Service Provider



Exceptions of Method MODIFY_LEG_TSP

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCTM/CL_BAPI_LEG.
DATA: lv_CT_LEG_TSP_BAPI TYPE /SCTM/TT_BAPI_LEG_TSP,
lv_CT_LEG_TSP_SP TYPE /SCTM/TT_SP_A_LEG_TSP,
lv_EV_REJECTED TYPE BOOLE_D,
lv_IT_LEG_HD_INSERT_OK TYPE /SCTM/TT_SP_A_LEG_HD,
lv_IT_LEG_TSP_X TYPE /SCTM/TT_BAPI_LEG_TSP_X,
lv_other TYPE c.

CALL METHOD lo_class=>MODIFY_LEG_TSP(
EXPORTING
IT_LEG_HD_INSERT_OK = lv_IT_LEG_HD_INSERT_OK
IT_LEG_TSP_X = lv_IT_LEG_TSP_X
IMPORTING
EV_REJECTED = lv_EV_REJECTED
CHANGING
CT_LEG_TSP_BAPI = lv_CT_LEG_TSP_BAPI
CT_LEG_TSP_SP = lv_CT_LEG_TSP_SP ).

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!