CREATE_REQUEST_OBJECTS SAP Method Generate Request Objects









Below is documentation, parameters and attributes of ABAP Method CREATE_REQUEST_OBJECTS within SAP class /SCTM/CL_RG_CONTROLLER. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

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_CONTROLLER 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 CREATE_REQUEST_OBJECTS can also be found below:

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


Parameters of Method CREATE_REQUEST_OBJECTS

.

NameTypeData TypeDescriptionDefault Value
IT_INPUT_HDRImportingTYPE
/SCMB/TT_RG_REQ_HD
SCTM: Request Header Data
IT_INPUT_LOCImportingTYPE
/SCMB/TT_RG_REQ_LOC
SCTM: RG Location Data Request
IT_INPUT_LOCRESImportingTYPE
/SCMB/TT_REQ_RESTRICT_LOC
SCTM: Location Restrictions Request
IT_INPUT_MTRRESImportingTYPE
/SCMB/TT_REQ_RESTRICT_MTR
Requests: Restrictions for Means of Transport
IT_INPUT_PRODImportingTYPE
/SCMB/TT_RG_REQ_PROD
SCTM: Product Information Request
IT_INPUT_RTRESImportingTYPE
/SCMB/TT_REQ_RESTRICT_ROUTE
Requests: Restrictions for Routes
IT_INPUT_SHIP_CONDImportingTYPE
/SCMB/TT_REQ_VSBED
Requests: Auxiliary Conditions for Shipping Conditions
IT_INPUT_TSPRESImportingTYPE
/SCMB/TT_REQ_RESTRICT_PARTNER
SCTM: Restrictions
ET_REQUESTExportingTYPE
/SCTM/TT_REQUEST
SCTM: Requests
ET_STRATEGY_REQUESTSExportingTYPE
/SCTM/TT_CON_REQUEST_STRATEGY



Exceptions of Method CREATE_REQUEST_OBJECTS

/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing Guide

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lo_class TYPE REF TO /SCTM/CL_RG_CONTROLLER.
DATA: lv_ET_REQUEST TYPE /SCTM/TT_REQUEST,
lv_ET_STRATEGY_REQUESTS TYPE /SCTM/TT_CON_REQUEST_STRATEGY,
lv_IT_INPUT_HDR TYPE /SCMB/TT_RG_REQ_HD,
lv_IT_INPUT_LOC TYPE /SCMB/TT_RG_REQ_LOC,
lv_IT_INPUT_LOCRES TYPE /SCMB/TT_REQ_RESTRICT_LOC,
lv_IT_INPUT_MTRRES TYPE /SCMB/TT_REQ_RESTRICT_MTR,
lv_IT_INPUT_PROD TYPE /SCMB/TT_RG_REQ_PROD,
lv_IT_INPUT_RTRES TYPE /SCMB/TT_REQ_RESTRICT_ROUTE,
lv_IT_INPUT_SHIP_COND TYPE /SCMB/TT_REQ_VSBED,
lv_IT_INPUT_TSPRES TYPE /SCMB/TT_REQ_RESTRICT_PARTNER,
lv_other TYPE c.

CALL METHOD lo_class=>CREATE_REQUEST_OBJECTS(
EXPORTING
IT_INPUT_HDR = lv_IT_INPUT_HDR
IT_INPUT_LOC = lv_IT_INPUT_LOC
IT_INPUT_LOCRES = lv_IT_INPUT_LOCRES
IT_INPUT_MTRRES = lv_IT_INPUT_MTRRES
IT_INPUT_PROD = lv_IT_INPUT_PROD
IT_INPUT_RTRES = lv_IT_INPUT_RTRES
IT_INPUT_SHIP_COND = lv_IT_INPUT_SHIP_COND
IT_INPUT_TSPRES = lv_IT_INPUT_TSPRES
IMPORTING
ET_REQUEST = lv_ET_REQUEST
ET_STRATEGY_REQUESTS = lv_ET_STRATEGY_REQUESTS ).

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!