QUERY SAP Method TransportationLane: Query
Below is documentation, parameters and attributes of ABAP Method QUERY within SAP class /SCMB/CL_LDM_TRL. 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 /SCMB/CL_LDM_TRL 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 QUERY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method QUERY
.| Name | Type | Data Type | Description | Default Value |
| ES_TRANSPORTATION_LANE | Exporting | TYPE /SAPAPO/SMD_TR | Transportation Lanes | |
| ET_LOCATION_MAPPING | Exporting | TYPE /SAPAPO/LOCMAP_TAB | Location: Mapping Table Type | |
| ET_MATERIAL_MAPPING | Exporting | TYPE /SAPAPO/MATMAP_TAB | Product Mapping | |
| ET_SPECIAL_RULE | Exporting | TYPE /SAPAPO/TR_TDB_TRPRODM | Product-Specific Means of Transport | |
| ET_VALID_MATERIALS | Exporting | TYPE /SAPAPO/TR_TDB_TRPROD | Product-Specific Transportation Lane | |
| ET_VALID_TRANSPORT_MEANS | Exporting | TYPE /SAPAPO/TR_TDB_TRM | Means of Transport | |
| CT_RETURN | Changing | TYPE BAPIRET2_T | Return parameter table |
Exceptions of Method QUERY
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/CL_LDM_TRL.
DATA: lv_CT_RETURN TYPE BAPIRET2_T,
lv_ES_TRANSPORTATION_LANE TYPE /SAPAPO/SMD_TR,
lv_ET_LOCATION_MAPPING TYPE /SAPAPO/LOCMAP_TAB,
lv_ET_MATERIAL_MAPPING TYPE /SAPAPO/MATMAP_TAB,
lv_ET_SPECIAL_RULE TYPE /SAPAPO/TR_TDB_TRPRODM,
lv_ET_VALID_MATERIALS TYPE /SAPAPO/TR_TDB_TRPROD,
lv_ET_VALID_TRANSPORT_MEANS TYPE /SAPAPO/TR_TDB_TRM,
lv_other TYPE c.
CALL METHOD lo_class=>QUERY(
IMPORTING
ES_TRANSPORTATION_LANE = lv_ES_TRANSPORTATION_LANE
ET_LOCATION_MAPPING = lv_ET_LOCATION_MAPPING
ET_MATERIAL_MAPPING = lv_ET_MATERIAL_MAPPING
ET_SPECIAL_RULE = lv_ET_SPECIAL_RULE
ET_VALID_MATERIALS = lv_ET_VALID_MATERIALS
ET_VALID_TRANSPORT_MEANS = lv_ET_VALID_TRANSPORT_MEANS
CHANGING
CT_RETURN = lv_CT_RETURN ).
Links to Related Class(s)
/SCMB/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects