SAP PK_CONTROLCYCLE_PRINT Function Module for NOTRANSL: Drucken einer Kanbankarte mit dem SAP_Scriptformular KARTE









PK_CONTROLCYCLE_PRINT is a standard pk controlcycle print SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Drucken einer Kanbankarte mit dem SAP_Scriptformular KARTE 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 pk controlcycle print FM, simply by entering the name PK_CONTROLCYCLE_PRINT into the relevant SAP transaction such as SE37 or SE38.

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



Function PK_CONTROLCYCLE_PRINT 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 'PK_CONTROLCYCLE_PRINT'"NOTRANSL: Drucken einer Kanbankarte mit dem SAP_Scriptformular KARTE
EXPORTING
IS_PKHD = "Control Cycle
* IS_MAKT = "Material Descriptions
* IS_PVBE = "Production Supply Area
* IS_PVKT = "Supply Area Short Text
* IS_ITCPO = "SAPscript Output Interface
* IV_TDFORM = "Form Name

EXCEPTIONS
HEADER_NOT_FOUND = 1 BOX_NOT_FOUND = 2 HEADER_NE_BOX = 3 INSUFFICIENT_INPUT = 4 PVB_NOT_FOUND = 5 NO_PRINTER = 6 NO_FORM = 7
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLMPKD_001 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLMPKD_002 DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING Parameters details for PK_CONTROLCYCLE_PRINT

IS_PKHD - Control Cycle

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

IS_MAKT - Material Descriptions

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

IS_PVBE - Production Supply Area

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

IS_PVKT - Supply Area Short Text

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

IS_ITCPO - SAPscript Output Interface

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

IV_TDFORM - Form Name

Data type: RSSCF-TDFORM
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

HEADER_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

BOX_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

HEADER_NE_BOX -

Data type:
Optional: No
Call by Reference: Yes

INSUFFICIENT_INPUT -

Data type:
Optional: No
Call by Reference: Yes

PVB_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_PRINTER -

Data type:
Optional: No
Call by Reference: Yes

NO_FORM -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PK_CONTROLCYCLE_PRINT 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_is_pkhd  TYPE PKHD, "   
lv_header_not_found  TYPE PKHD, "   
lv_is_makt  TYPE MAKT, "   
lv_box_not_found  TYPE MAKT, "   
lv_is_pvbe  TYPE PVBE, "   
lv_header_ne_box  TYPE PVBE, "   
lv_is_pvkt  TYPE PVKT, "   
lv_insufficient_input  TYPE PVKT, "   
lv_is_itcpo  TYPE ITCPO, "   
lv_pvb_not_found  TYPE ITCPO, "   
lv_iv_tdform  TYPE RSSCF-TDFORM, "   
lv_no_printer  TYPE RSSCF, "   
lv_no_form  TYPE RSSCF. "   

  CALL FUNCTION 'PK_CONTROLCYCLE_PRINT'  "NOTRANSL: Drucken einer Kanbankarte mit dem SAP_Scriptformular KARTE
    EXPORTING
         IS_PKHD = lv_is_pkhd
         IS_MAKT = lv_is_makt
         IS_PVBE = lv_is_pvbe
         IS_PVKT = lv_is_pvkt
         IS_ITCPO = lv_is_itcpo
         IV_TDFORM = lv_iv_tdform
    EXCEPTIONS
        HEADER_NOT_FOUND = 1
        BOX_NOT_FOUND = 2
        HEADER_NE_BOX = 3
        INSUFFICIENT_INPUT = 4
        PVB_NOT_FOUND = 5
        NO_PRINTER = 6
        NO_FORM = 7
. " PK_CONTROLCYCLE_PRINT




ABAP code using 7.40 inline data declarations to call FM PK_CONTROLCYCLE_PRINT

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.

 
 
 
 
 
 
 
 
 
 
"SELECT single TDFORM FROM RSSCF INTO @DATA(ld_iv_tdform).
 
 
 


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!