CONSTRUCTOR SAP Method Constructor
Below is documentation, parameters and attributes of ABAP Method CONSTRUCTOR within SAP class /SCTM/CL_RG_REQUEST. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is a Class Constructor so it is called automatically when the class is accessed for the first time.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_RG_REQUEST 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 CONSTRUCTOR can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CONSTRUCTOR
.| Name | Type | Data Type | Description | Default Value |
| IS_IN_LOCFROM | Importing | TYPE /SCMB/S_RG_LOC | SCTM: RG Identification of Location | |
| IS_IN_LOCTO | Importing | TYPE /SCMB/S_RG_LOC | SCTM: RG Identification of Location | |
| IT_IN_LOCRES | Importing | TYPE /SCMB/TT_RESTRICTION_LOC | SCTM: Location Restrictions Request | |
| IT_IN_MTRRES | Importing | TYPE /SCMB/TT_RESTRICTION_MTR | Restrictions for Means of Transport | |
| IT_IN_PROD | Importing | TYPE /SCMB/TT_RG_PROD | SCTM: Product Information Request | |
| IT_IN_RTRES | Importing | TYPE /SCMB/TT_RESTRICTION_ROUTE | Restrictions for Routes | |
| IT_IN_SHIP_CONDS | Importing | TYPE /SCTM/TT_SHIP_COND | Quantity of Shipping Conditions | |
| IT_IN_TSPRES | Importing | TYPE /SCMB/TT_RESTRICTION | SCTM: Restrictions | |
| IV_FORMAT_UID | Importing | TYPE /SCTM/DE_FORMAT_UID | Unique Identification of Context Format | |
| IV_IN_END_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_IN_PROD_GIVEN | Importing | TYPE BOOLE_D | Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ') | |
| IV_IN_REQ_CREATE_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_IN_REQ_TYPE | Importing | TYPE /SCMB/DE_TYPE_REQUEST | Classification of Requests | |
| IV_IN_SCHD_DIRECTION | Importing | TYPE /SCMB/DE_SCHD_DIRECTION | SCTM: Scheduling Direction | |
| IV_IN_SHIPTYPE | Importing | TYPE /SCMB/DE_TYPE_SHIP | Classification of Shipments | |
| IV_IN_START_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_REQUEST_ID | Importing | TYPE /SCTM/DE_REQUEST_ID | SCTM: Transfer Requirement Indicator |
Exceptions of Method CONSTRUCTOR
/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing GuideExample ABAP coding
As the method is a Class Constructor the below code doesnt really make sense as it cant be executed as a stand alone method but this is how it would look if it was a normal static method.DATA: lo_class TYPE REF TO /SCTM/CL_RG_REQUEST.
DATA: lv_IS_IN_LOCFROM TYPE /SCMB/S_RG_LOC,
lv_IS_IN_LOCTO TYPE /SCMB/S_RG_LOC,
lv_IT_IN_LOCRES TYPE /SCMB/TT_RESTRICTION_LOC,
lv_IT_IN_MTRRES TYPE /SCMB/TT_RESTRICTION_MTR,
lv_IT_IN_PROD TYPE /SCMB/TT_RG_PROD,
lv_IT_IN_RTRES TYPE /SCMB/TT_RESTRICTION_ROUTE,
lv_IT_IN_SHIP_CONDS TYPE /SCTM/TT_SHIP_COND,
lv_IT_IN_TSPRES TYPE /SCMB/TT_RESTRICTION,
lv_IV_FORMAT_UID TYPE /SCTM/DE_FORMAT_UID,
lv_IV_IN_END_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_IN_PROD_GIVEN TYPE BOOLE_D,
lv_IV_IN_REQ_CREATE_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_IN_REQ_TYPE TYPE /SCMB/DE_TYPE_REQUEST,
lv_IV_IN_SCHD_DIRECTION TYPE /SCMB/DE_SCHD_DIRECTION,
lv_IV_IN_SHIPTYPE TYPE /SCMB/DE_TYPE_SHIP,
lv_IV_IN_START_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_REQUEST_ID TYPE /SCTM/DE_REQUEST_ID,
lv_other TYPE c.
CALL METHOD lo_class=>CONSTRUCTOR(
EXPORTING
IS_IN_LOCFROM = lv_IS_IN_LOCFROM
IS_IN_LOCTO = lv_IS_IN_LOCTO
IT_IN_LOCRES = lv_IT_IN_LOCRES
IT_IN_MTRRES = lv_IT_IN_MTRRES
IT_IN_PROD = lv_IT_IN_PROD
IT_IN_RTRES = lv_IT_IN_RTRES
IT_IN_SHIP_CONDS = lv_IT_IN_SHIP_CONDS
IT_IN_TSPRES = lv_IT_IN_TSPRES
IV_FORMAT_UID = lv_IV_FORMAT_UID
IV_IN_END_TIME = lv_IV_IN_END_TIME
IV_IN_PROD_GIVEN = lv_IV_IN_PROD_GIVEN
IV_IN_REQ_CREATE_TIME = lv_IV_IN_REQ_CREATE_TIME
IV_IN_REQ_TYPE = lv_IV_IN_REQ_TYPE
IV_IN_SCHD_DIRECTION = lv_IV_IN_SCHD_DIRECTION
IV_IN_SHIPTYPE = lv_IV_IN_SHIPTYPE
IV_IN_START_TIME = lv_IV_IN_START_TIME
IV_REQUEST_ID = lv_IV_REQUEST_ID ).
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