SAP CK_F_PPC_ORDER_SETTLE Function Module for Assign account to production order header









CK_F_PPC_ORDER_SETTLE is a standard ck f ppc order settle SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Assign account to production order header 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 ck f ppc order settle FM, simply by entering the name CK_F_PPC_ORDER_SETTLE into the relevant SAP transaction such as SE37 or SE38.

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



Function CK_F_PPC_ORDER_SETTLE 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 'CK_F_PPC_ORDER_SETTLE'"Assign account to production order header
EXPORTING
AFPOD_IMP = "
CAUFVD_IMP = "
* T399X_IMP = "
* T003O_IMP = "
* I_APROF = ' ' "

IMPORTING
CAUFVD_EXP = "
PROCNR_EXP = "Production Process
PROTY_EXP = "Process Category (Procurement/Consumption)

EXCEPTIONS
NOT_SETTELED = 1 NOT_COMPLETELY_SETTLED = 2 SPLIT_PCOSA_ERROR = 3
.



IMPORTING Parameters details for CK_F_PPC_ORDER_SETTLE

AFPOD_IMP -

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

CAUFVD_IMP -

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

T399X_IMP -

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

T003O_IMP -

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

I_APROF -

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

EXPORTING Parameters details for CK_F_PPC_ORDER_SETTLE

CAUFVD_EXP -

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

PROCNR_EXP - Production Process

Data type: CAUFVD-PROCNR
Optional: No
Call by Reference: Yes

PROTY_EXP - Process Category (Procurement/Consumption)

Data type: CAUFVD-PROTY
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_SETTELED -

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

NOT_COMPLETELY_SETTLED -

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

SPLIT_PCOSA_ERROR -

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

Copy and paste ABAP code example for CK_F_PPC_ORDER_SETTLE 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_afpod_imp  TYPE AFPOD, "   
lv_caufvd_exp  TYPE CAUFVD, "   
lv_not_setteled  TYPE CAUFVD, "   
lv_caufvd_imp  TYPE CAUFVD, "   
lv_procnr_exp  TYPE CAUFVD-PROCNR, "   
lv_not_completely_settled  TYPE CAUFVD, "   
lv_proty_exp  TYPE CAUFVD-PROTY, "   
lv_t399x_imp  TYPE T399X, "   
lv_split_pcosa_error  TYPE T399X, "   
lv_t003o_imp  TYPE T003O, "   
lv_i_aprof  TYPE APROF. "   SPACE

  CALL FUNCTION 'CK_F_PPC_ORDER_SETTLE'  "Assign account to production order header
    EXPORTING
         AFPOD_IMP = lv_afpod_imp
         CAUFVD_IMP = lv_caufvd_imp
         T399X_IMP = lv_t399x_imp
         T003O_IMP = lv_t003o_imp
         I_APROF = lv_i_aprof
    IMPORTING
         CAUFVD_EXP = lv_caufvd_exp
         PROCNR_EXP = lv_procnr_exp
         PROTY_EXP = lv_proty_exp
    EXCEPTIONS
        NOT_SETTELED = 1
        NOT_COMPLETELY_SETTLED = 2
        SPLIT_PCOSA_ERROR = 3
. " CK_F_PPC_ORDER_SETTLE




ABAP code using 7.40 inline data declarations to call FM CK_F_PPC_ORDER_SETTLE

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 PROCNR FROM CAUFVD INTO @DATA(ld_procnr_exp).
 
 
"SELECT single PROTY FROM CAUFVD INTO @DATA(ld_proty_exp).
 
 
 
 
DATA(ld_i_aprof) = ' '.
 


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!