SAP CIF_PI_DATA_SELECTION Function Module for Packaging Instruction Data Selection









CIF_PI_DATA_SELECTION is a standard cif pi data selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Packaging Instruction Data Selection processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for cif pi data selection FM, simply by entering the name CIF_PI_DATA_SELECTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: CPACK
Program Name: SAPLCPACK
Main Program: SAPLCPACK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CIF_PI_DATA_SELECTION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CIF_PI_DATA_SELECTION'"Packaging Instruction Data Selection
EXPORTING
IV_MAX_PACKINS = "Block Size for Data Object Selection
* IV_NO_CONDITION_DATA = ' ' "Checkbox

CHANGING
CV_NEXT_PI = "CIF Key Structure for PackSpec Transfer

TABLES
IT_PI_LIST = "CIF Key Structure for PackSpec Transfer
ET_PI_HEADER = "Packing Object Header
ET_PI_POSITION = "Packing Object Item
* ET_PI_HEADER_TEXT = "Texts for Packing Object Header (PACKPO)
* ET_COND_HEAD = "CIF Packaging Specification Condition Header
* ET_COND_ATTR = "CIF Packaging Specification Condition Attribute Value
.



IMPORTING Parameters details for CIF_PI_DATA_SELECTION

IV_MAX_PACKINS - Block Size for Data Object Selection

Data type: CIFSELSIZE
Optional: No
Call by Reference: No ( called with pass by value option)

IV_NO_CONDITION_DATA - Checkbox

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for CIF_PI_DATA_SELECTION

CV_NEXT_PI - CIF Key Structure for PackSpec Transfer

Data type: CIF_IMT_PACKK
Optional: No
Call by Reference: Yes

TABLES Parameters details for CIF_PI_DATA_SELECTION

IT_PI_LIST - CIF Key Structure for PackSpec Transfer

Data type: CIF_IMT_PACKK
Optional: No
Call by Reference: Yes

ET_PI_HEADER - Packing Object Header

Data type: PACKKP
Optional: No
Call by Reference: Yes

ET_PI_POSITION - Packing Object Item

Data type: PACKPO
Optional: No
Call by Reference: Yes

ET_PI_HEADER_TEXT - Texts for Packing Object Header (PACKPO)

Data type: PACKKPS
Optional: Yes
Call by Reference: Yes

ET_COND_HEAD - CIF Packaging Specification Condition Header

Data type: CIF_PACKSPEC_CONDITION_HEADER
Optional: Yes
Call by Reference: Yes

ET_COND_ATTR - CIF Packaging Specification Condition Attribute Value

Data type: CIF_PACKSPEC_CONDITION_ATTRIB
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for CIF_PI_DATA_SELECTION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_cv_next_pi  TYPE CIF_IMT_PACKK, "   
lt_it_pi_list  TYPE STANDARD TABLE OF CIF_IMT_PACKK, "   
lv_iv_max_packins  TYPE CIFSELSIZE, "   
lt_et_pi_header  TYPE STANDARD TABLE OF PACKKP, "   
lv_iv_no_condition_data  TYPE XFELD, "   SPACE
lt_et_pi_position  TYPE STANDARD TABLE OF PACKPO, "   
lt_et_pi_header_text  TYPE STANDARD TABLE OF PACKKPS, "   
lt_et_cond_head  TYPE STANDARD TABLE OF CIF_PACKSPEC_CONDITION_HEADER, "   
lt_et_cond_attr  TYPE STANDARD TABLE OF CIF_PACKSPEC_CONDITION_ATTRIB. "   

  CALL FUNCTION 'CIF_PI_DATA_SELECTION'  "Packaging Instruction Data Selection
    EXPORTING
         IV_MAX_PACKINS = lv_iv_max_packins
         IV_NO_CONDITION_DATA = lv_iv_no_condition_data
    CHANGING
         CV_NEXT_PI = lv_cv_next_pi
    TABLES
         IT_PI_LIST = lt_it_pi_list
         ET_PI_HEADER = lt_et_pi_header
         ET_PI_POSITION = lt_et_pi_position
         ET_PI_HEADER_TEXT = lt_et_pi_header_text
         ET_COND_HEAD = lt_et_cond_head
         ET_COND_ATTR = lt_et_cond_attr
. " CIF_PI_DATA_SELECTION




ABAP code using 7.40 inline data declarations to call FM CIF_PI_DATA_SELECTION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
DATA(ld_iv_no_condition_data) = ' '.
 
 
 
 
 


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!