GET_PB_DATA SAP Method Get Package Builder Data









Below is documentation, parameters and attributes of ABAP Method GET_PB_DATA within SAP class /SCMB/IF_PB_DATA. 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/IF_PB_DATA 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 GET_PB_DATA can also be found below:

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


Parameters of Method GET_PB_DATA

.

NameTypeData TypeDescriptionDefault Value
IS_SETTINGSImportingTYPE
TY_S_SETTINGS
IT_ITEM_PACKAGE_TYPE_KEYSImportingTYPE
/SCMB/IF_PB_PRD_PKG_ASSIGN=>TY_T_PRD_PKG_TYPE_ASGN_KEY
IT_MAT_IDS_CUSTOMImportingTYPE
TY_T_MAT_IDS
Material IDs
IS_SETTINGSImportingTYPE
TY_S_SETTINGS
PB Data Settings
ET_ITEM_PACKAGE_TYPESExportingTYPE
/SCMB/IF_PB_PRD_PKG_ASSIGN=>TY_T_PRD_PKG_TYPE_ASGN
ET_MAT_ALT_QUANTITYExportingTYPE
/SCMB/IF_PB_DATA=>TY_T_MAT_ALT_QUANT
ET_MAT_ORIENTATION_PROFILEExportingTYPE
/SCMB/IF_PB_DATA=>TY_T_MAT_ORIENTATION_PROFILE
ET_MAT_ROOTExportingTYPE
/SCMB/IF_PB_DATA=>TY_T_MATERIAL
ET_PACKAGE_ATTRIBUTESExportingTYPE
/SCMB/IF_PB_DATA=>TY_T_PACKAGE_ATTRIBUTES
EV_PACKAGE_HIERARCHY_EXISTSExportingTYPE
BOOLE_D
Package Hierarchy exists
ET_MAT_ALT_QUANTITYExportingTYPE
/SCMB/IF_PB_DATA=>TY_T_MAT_ALT_QUANT
Alternative Quantities for Material
ET_MAT_ORIENTATION_PROFILEExportingTYPE
/SCMB/IF_PB_DATA=>TY_T_MAT_ORIENTATION_PROFILE
Material Orientation Profiles
ET_MAT_ROOTExportingTYPE
/SCMB/IF_PB_DATA=>TY_T_MATERIAL
Materials
ET_PACKAGE_ATTRIBUTESExportingTYPE
/SCMB/IF_PB_DATA=>TY_T_PACKAGE_ATTRIBUTES
Package Attributes
CT_MESSAGESChangingTYPE
BAPIRET2_TAB
Error Messages



Exceptions of Method GET_PB_DATA

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMB/IF_PB_DATA.
DATA: lv_CT_MESSAGES TYPE BAPIRET2_TAB,
lv_ET_ITEM_PACKAGE_TYPES TYPE /SCMB/IF_PB_PRD_PKG_ASSIGN=>TY_T_PRD_PKG_TYPE_ASGN,
lv_ET_MAT_ALT_QUANTITY TYPE /SCMB/IF_PB_DATA=>TY_T_MAT_ALT_QUANT,
lv_ET_MAT_ORIENTATION_PROFILE TYPE /SCMB/IF_PB_DATA=>TY_T_MAT_ORIENTATION_PROFILE,
lv_ET_MAT_ROOT TYPE /SCMB/IF_PB_DATA=>TY_T_MATERIAL,
lv_ET_PACKAGE_ATTRIBUTES TYPE /SCMB/IF_PB_DATA=>TY_T_PACKAGE_ATTRIBUTES,
lv_EV_PACKAGE_HIERARCHY_EXISTS TYPE BOOLE_D,
lv_IS_SETTINGS TYPE TY_S_SETTINGS,
lv_IT_ITEM_PACKAGE_TYPE_KEYS TYPE /SCMB/IF_PB_PRD_PKG_ASSIGN=>TY_T_PRD_PKG_TYPE_ASGN_KEY,
lv_IT_MAT_IDS_CUSTOM TYPE TY_T_MAT_IDS,
lv_ET_MAT_ALT_QUANTITY TYPE /SCMB/IF_PB_DATA=>TY_T_MAT_ALT_QUANT,
lv_ET_MAT_ORIENTATION_PROFILE TYPE /SCMB/IF_PB_DATA=>TY_T_MAT_ORIENTATION_PROFILE,
lv_ET_MAT_ROOT TYPE /SCMB/IF_PB_DATA=>TY_T_MATERIAL,
lv_ET_PACKAGE_ATTRIBUTES TYPE /SCMB/IF_PB_DATA=>TY_T_PACKAGE_ATTRIBUTES,
lv_IS_SETTINGS TYPE TY_S_SETTINGS,
lv_other TYPE c.

CALL METHOD lo_class=>GET_PB_DATA(
EXPORTING
IS_SETTINGS = lv_IS_SETTINGS
IT_ITEM_PACKAGE_TYPE_KEYS = lv_IT_ITEM_PACKAGE_TYPE_KEYS
IT_MAT_IDS_CUSTOM = lv_IT_MAT_IDS_CUSTOM
IS_SETTINGS = lv_IS_SETTINGS
IMPORTING
ET_ITEM_PACKAGE_TYPES = lv_ET_ITEM_PACKAGE_TYPES
ET_MAT_ALT_QUANTITY = lv_ET_MAT_ALT_QUANTITY
ET_MAT_ORIENTATION_PROFILE = lv_ET_MAT_ORIENTATION_PROFILE
ET_MAT_ROOT = lv_ET_MAT_ROOT
ET_PACKAGE_ATTRIBUTES = lv_ET_PACKAGE_ATTRIBUTES
EV_PACKAGE_HIERARCHY_EXISTS = lv_EV_PACKAGE_HIERARCHY_EXISTS
ET_MAT_ALT_QUANTITY = lv_ET_MAT_ALT_QUANTITY
ET_MAT_ORIENTATION_PROFILE = lv_ET_MAT_ORIENTATION_PROFILE
ET_MAT_ROOT = lv_ET_MAT_ROOT
ET_PACKAGE_ATTRIBUTES = lv_ET_PACKAGE_ATTRIBUTES
CHANGING
CT_MESSAGES = lv_CT_MESSAGES ).

Links to Related Class(s)

/SCMB/IF...
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!