START_NEW_PACKAGE SAP Method Start a new Package
Below is documentation, parameters and attributes of ABAP Method START_NEW_PACKAGE 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 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 START_NEW_PACKAGE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method START_NEW_PACKAGE
.| Name | Type | Data Type | Description | Default Value |
| IRS_PACKAGE_ATTRIBUTES | Importing | TYPE REF TO /SCMB/IF_PB_DATA=>TY_S_PACKAGE_ATTRIBUTES | ||
| IV_PKG_ID | Importing | TYPE /SCMB/IF_PB=>TY_PKG_ID | ||
| IV_PKG_ID | Importing | TYPE /SCMB/IF_PB=>TY_PKG_ID | Package Identifier | |
| ERS_PACKAGE | Exporting | TYPE REF TO TY_S_PACKAGE | ||
| ERS_PACKAGE | Exporting | TYPE REF TO TY_S_PACKAGE | Package in internal format | |
| CS_FIRST_LAYER | Changing | TYPE TY_S_LAYER_INTERNAL_DATA | ||
| CT_PACKAGES | Changing | TYPE TY_T_PACKAGE | ||
| CS_FIRST_LAYER | Changing | TYPE TY_S_LAYER_INTERNAL_DATA | Layer data in internal format | |
| CT_PACKAGES | Changing | TYPE TY_T_PACKAGE | Packages in internal format |
Exceptions of Method START_NEW_PACKAGE
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/CL_PB.
DATA: lv_CS_FIRST_LAYER TYPE TY_S_LAYER_INTERNAL_DATA,
lv_CT_PACKAGES TYPE TY_T_PACKAGE,
lv_ERS_PACKAGE TYPE TY_S_PACKAGE,
lv_IRS_PACKAGE_ATTRIBUTES TYPE /SCMB/IF_PB_DATA=>TY_S_PACKAGE_ATTRIBUTES,
lv_IV_PKG_ID TYPE /SCMB/IF_PB=>TY_PKG_ID,
lv_CS_FIRST_LAYER TYPE TY_S_LAYER_INTERNAL_DATA,
lv_CT_PACKAGES TYPE TY_T_PACKAGE,
lv_ERS_PACKAGE TYPE TY_S_PACKAGE,
lv_IV_PKG_ID TYPE /SCMB/IF_PB=>TY_PKG_ID,
lv_other TYPE c.
CALL METHOD lo_class=>START_NEW_PACKAGE(
EXPORTING
IRS_PACKAGE_ATTRIBUTES = lv_IRS_PACKAGE_ATTRIBUTES
IV_PKG_ID = lv_IV_PKG_ID
IV_PKG_ID = lv_IV_PKG_ID
IMPORTING
ERS_PACKAGE = lv_ERS_PACKAGE
ERS_PACKAGE = lv_ERS_PACKAGE
CHANGING
CS_FIRST_LAYER = lv_CS_FIRST_LAYER
CT_PACKAGES = lv_CT_PACKAGES
CS_FIRST_LAYER = lv_CS_FIRST_LAYER
CT_PACKAGES = lv_CT_PACKAGES ).
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