CONSTRUCTOR SAP Method CONSTRUCTOR









Below is documentation, parameters and attributes of ABAP Method CONSTRUCTOR within SAP class /SCMB/CL_PB. 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 /SCMB/CL_PB 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

.

NameTypeData TypeDescriptionDefault Value
IO_PB_ANALYZERImportingTYPE REF TO
/SCMB/IF_PB_ANALYZER
Package Building Analyzer
IO_PB_ENHANCEImportingTYPE REF TO
/SCMB/IF_PB_ENHANCE
Package Builder Enhancement
IO_PB_FOOTPRINT_QUA_DETImportingTYPE REF TO
/SCMB/IF_PB_FOOTPRINT_QUA_DET
Package Builder Footprint Quantity Determination
IO_PB_MSG_HANDLERImportingTYPE REF TO
/SCMB/IF_PB_MSG_HANDLER
Package Builder Message Handler
IO_PB_OPTIMIZERImportingTYPE REF TO
/SCMB/IF_PB_PBO
Package Builder Optimizer Call
IO_PB_PKG_TYPE_DETImportingTYPE REF TO
/SCMB/IF_PB_PKG_TYPE_DET
Item Package Type Determination
IO_PB_PROFILEImportingTYPE REF TO
/SCMB/IF_PB_PROFILE
Access to Package Builder Profile
IO_PB_ANALYZERImportingTYPE REF TO
/SCMB/IF_PB_ANALYZER
Unified Package Building Analyzer



Exceptions of Method CONSTRUCTOR

This method does not have any exceptions

Example 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 /SCMB/CL_PB.
DATA: lv_IO_PB_ANALYZER TYPE /SCMB/IF_PB_ANALYZER,
lv_IO_PB_ENHANCE TYPE /SCMB/IF_PB_ENHANCE,
lv_IO_PB_FOOTPRINT_QUA_DET TYPE /SCMB/IF_PB_FOOTPRINT_QUA_DET,
lv_IO_PB_MSG_HANDLER TYPE /SCMB/IF_PB_MSG_HANDLER,
lv_IO_PB_OPTIMIZER TYPE /SCMB/IF_PB_PBO,
lv_IO_PB_PKG_TYPE_DET TYPE /SCMB/IF_PB_PKG_TYPE_DET,
lv_IO_PB_PROFILE TYPE /SCMB/IF_PB_PROFILE,
lv_IO_PB_ANALYZER TYPE /SCMB/IF_PB_ANALYZER,
lv_other TYPE c.

CALL METHOD lo_class=>CONSTRUCTOR(
EXPORTING
IO_PB_ANALYZER = lv_IO_PB_ANALYZER
IO_PB_ENHANCE = lv_IO_PB_ENHANCE
IO_PB_FOOTPRINT_QUA_DET = lv_IO_PB_FOOTPRINT_QUA_DET
IO_PB_MSG_HANDLER = lv_IO_PB_MSG_HANDLER
IO_PB_OPTIMIZER = lv_IO_PB_OPTIMIZER
IO_PB_PKG_TYPE_DET = lv_IO_PB_PKG_TYPE_DET
IO_PB_PROFILE = lv_IO_PB_PROFILE
IO_PB_ANALYZER = lv_IO_PB_ANALYZER ).

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



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!