SAP CIF_PINST_PACKSPEC_MAP Function Module for Convert Packaging Instruction to PackSpec data
CIF_PINST_PACKSPEC_MAP is a standard cif pinst packspec map SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert Packaging Instruction to PackSpec data 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 pinst packspec map FM, simply by entering the name CIF_PINST_PACKSPEC_MAP 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_PINST_PACKSPEC_MAP 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_PINST_PACKSPEC_MAP'"Convert Packaging Instruction to PackSpec data.
TABLES
IT_PI_HEADER = "Packing Object Header
ET_PACKSPEC_COND_HEAD = "Table type for condition header
ET_PACKSPEC_COND_ATTR = "Table type for condition attribute
* ET_PACKSPEC_HEADER_CUS = "Table type for cust. enhancement str. for PackSpec Header
* ET_PACKSPEC_CONTENT_CUS = "Table type for cust. enhancement str. for PackSpec Content
* ET_PACKSPEC_LEVEL_CUS = "Table type for cust. enhancement str. for PackSpec Level
* ET_PACKSPEC_ELEMENT_CUS = "Table type for cust. enhancement str. for PackSpec Level Elm
IT_PI_POSITION = "Packing Object Item
* IT_PI_HEADER_TEXT = "Texts for Packing Object Header (PACKPO)
IT_PI_CONDITION_HEADER = "CIF Packaging Specification Condition Attribute Value
IT_PI_CONDITION_ATTRIBUTES = "CIF Packaging Specification Condition Attribute Value
ET_PACKSPEC_HEADER = "CIF Table type for PackSpec Header
ET_PACKSPEC_CONTENT = "CIF Table type for PackSpec Content
ET_PACKSPEC_LEVEL = "CIF Packaging Specification Level
* ET_PACKSPEC_ELEMENT = "CIF Packaging Specification Elements
TABLES Parameters details for CIF_PINST_PACKSPEC_MAP
IT_PI_HEADER - Packing Object Header
Data type: PACKKPOptional: No
Call by Reference: Yes
ET_PACKSPEC_COND_HEAD - Table type for condition header
Data type: CIF_PACKSPEC_COND_HEADER_TTOptional: No
Call by Reference: Yes
ET_PACKSPEC_COND_ATTR - Table type for condition attribute
Data type: CIF_PACKSPEC_COND_ATTRIB_TTOptional: No
Call by Reference: Yes
ET_PACKSPEC_HEADER_CUS - Table type for cust. enhancement str. for PackSpec Header
Data type: CIF_PACKSPEC_HEADER_CUS_TTOptional: Yes
Call by Reference: Yes
ET_PACKSPEC_CONTENT_CUS - Table type for cust. enhancement str. for PackSpec Content
Data type: CIF_PACKSPEC_CONTENT_CUS_TTOptional: Yes
Call by Reference: Yes
ET_PACKSPEC_LEVEL_CUS - Table type for cust. enhancement str. for PackSpec Level
Data type: CIF_PACKSPEC_LEVEL_CUS_TTOptional: Yes
Call by Reference: Yes
ET_PACKSPEC_ELEMENT_CUS - Table type for cust. enhancement str. for PackSpec Level Elm
Data type: CIF_PACKSPEC_LEVELELEM_CUS_TTOptional: Yes
Call by Reference: Yes
IT_PI_POSITION - Packing Object Item
Data type: PACKPOOptional: No
Call by Reference: Yes
IT_PI_HEADER_TEXT - Texts for Packing Object Header (PACKPO)
Data type: PACKKPSOptional: Yes
Call by Reference: Yes
IT_PI_CONDITION_HEADER - CIF Packaging Specification Condition Attribute Value
Data type: CIF_PACKSPEC_CONDITION_HEADEROptional: No
Call by Reference: Yes
IT_PI_CONDITION_ATTRIBUTES - CIF Packaging Specification Condition Attribute Value
Data type: CIF_PACKSPEC_CONDITION_ATTRIBOptional: No
Call by Reference: Yes
ET_PACKSPEC_HEADER - CIF Table type for PackSpec Header
Data type: CIF_PACKSPEC_HEADER_TTOptional: No
Call by Reference: Yes
ET_PACKSPEC_CONTENT - CIF Table type for PackSpec Content
Data type: CIF_PACKSPEC_CONTENT_TTOptional: No
Call by Reference: Yes
ET_PACKSPEC_LEVEL - CIF Packaging Specification Level
Data type: CIF_PACKSPEC_LEVEL_TTOptional: No
Call by Reference: Yes
ET_PACKSPEC_ELEMENT - CIF Packaging Specification Elements
Data type: CIF_PACKSPEC_LEVEL_ELEMENT_TTOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for CIF_PINST_PACKSPEC_MAP 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: | ||||
| lt_it_pi_header | TYPE STANDARD TABLE OF PACKKP, " | |||
| lt_et_packspec_cond_head | TYPE STANDARD TABLE OF CIF_PACKSPEC_COND_HEADER_TT, " | |||
| lt_et_packspec_cond_attr | TYPE STANDARD TABLE OF CIF_PACKSPEC_COND_ATTRIB_TT, " | |||
| lt_et_packspec_header_cus | TYPE STANDARD TABLE OF CIF_PACKSPEC_HEADER_CUS_TT, " | |||
| lt_et_packspec_content_cus | TYPE STANDARD TABLE OF CIF_PACKSPEC_CONTENT_CUS_TT, " | |||
| lt_et_packspec_level_cus | TYPE STANDARD TABLE OF CIF_PACKSPEC_LEVEL_CUS_TT, " | |||
| lt_et_packspec_element_cus | TYPE STANDARD TABLE OF CIF_PACKSPEC_LEVELELEM_CUS_TT, " | |||
| lt_it_pi_position | TYPE STANDARD TABLE OF PACKPO, " | |||
| lt_it_pi_header_text | TYPE STANDARD TABLE OF PACKKPS, " | |||
| lt_it_pi_condition_header | TYPE STANDARD TABLE OF CIF_PACKSPEC_CONDITION_HEADER, " | |||
| lt_it_pi_condition_attributes | TYPE STANDARD TABLE OF CIF_PACKSPEC_CONDITION_ATTRIB, " | |||
| lt_et_packspec_header | TYPE STANDARD TABLE OF CIF_PACKSPEC_HEADER_TT, " | |||
| lt_et_packspec_content | TYPE STANDARD TABLE OF CIF_PACKSPEC_CONTENT_TT, " | |||
| lt_et_packspec_level | TYPE STANDARD TABLE OF CIF_PACKSPEC_LEVEL_TT, " | |||
| lt_et_packspec_element | TYPE STANDARD TABLE OF CIF_PACKSPEC_LEVEL_ELEMENT_TT. " |
|   CALL FUNCTION 'CIF_PINST_PACKSPEC_MAP' "Convert Packaging Instruction to PackSpec data |
| TABLES | ||
| IT_PI_HEADER | = lt_it_pi_header | |
| ET_PACKSPEC_COND_HEAD | = lt_et_packspec_cond_head | |
| ET_PACKSPEC_COND_ATTR | = lt_et_packspec_cond_attr | |
| ET_PACKSPEC_HEADER_CUS | = lt_et_packspec_header_cus | |
| ET_PACKSPEC_CONTENT_CUS | = lt_et_packspec_content_cus | |
| ET_PACKSPEC_LEVEL_CUS | = lt_et_packspec_level_cus | |
| ET_PACKSPEC_ELEMENT_CUS | = lt_et_packspec_element_cus | |
| IT_PI_POSITION | = lt_it_pi_position | |
| IT_PI_HEADER_TEXT | = lt_it_pi_header_text | |
| IT_PI_CONDITION_HEADER | = lt_it_pi_condition_header | |
| IT_PI_CONDITION_ATTRIBUTES | = lt_it_pi_condition_attributes | |
| ET_PACKSPEC_HEADER | = lt_et_packspec_header | |
| ET_PACKSPEC_CONTENT | = lt_et_packspec_content | |
| ET_PACKSPEC_LEVEL | = lt_et_packspec_level | |
| ET_PACKSPEC_ELEMENT | = lt_et_packspec_element | |
| . " CIF_PINST_PACKSPEC_MAP | ||
ABAP code using 7.40 inline data declarations to call FM CIF_PINST_PACKSPEC_MAP
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.Search for further information about these or an SAP related objects