SAP PCA_ACTUALS_POST Function Module for









PCA_ACTUALS_POST is a standard pca actuals post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 pca actuals post FM, simply by entering the name PCA_ACTUALS_POST into the relevant SAP transaction such as SE37 or SE38.

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



Function PCA_ACTUALS_POST 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 'PCA_ACTUALS_POST'"
EXPORTING
* I_DOCTY = 'A0' "
* I_PLACT = '0' "
* I_BATCH = ' ' "

IMPORTING
E_RECORDS = "

TABLES
T_GLPCA = "
* T_DOCUMENTS = "

EXCEPTIONS
POSTING_ERROR = 1
.



IMPORTING Parameters details for PCA_ACTUALS_POST

I_DOCTY -

Data type: RGLSI-DOCTY
Default: 'A0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PLACT -

Data type: T889-PLACT
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BATCH -

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

EXPORTING Parameters details for PCA_ACTUALS_POST

E_RECORDS -

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

TABLES Parameters details for PCA_ACTUALS_POST

T_GLPCA -

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

T_DOCUMENTS -

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

EXCEPTIONS details

POSTING_ERROR -

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

Copy and paste ABAP code example for PCA_ACTUALS_POST 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_i_docty  TYPE RGLSI-DOCTY, "   'A0'
lt_t_glpca  TYPE STANDARD TABLE OF GLPCA, "   
lv_e_records  TYPE P, "   
lv_posting_error  TYPE P, "   
lv_i_plact  TYPE T889-PLACT, "   '0'
lt_t_documents  TYPE STANDARD TABLE OF PCPP_T_POSTING_DOC, "   
lv_i_batch  TYPE SY-BATCH. "   SPACE

  CALL FUNCTION 'PCA_ACTUALS_POST'  "
    EXPORTING
         I_DOCTY = lv_i_docty
         I_PLACT = lv_i_plact
         I_BATCH = lv_i_batch
    IMPORTING
         E_RECORDS = lv_e_records
    TABLES
         T_GLPCA = lt_t_glpca
         T_DOCUMENTS = lt_t_documents
    EXCEPTIONS
        POSTING_ERROR = 1
. " PCA_ACTUALS_POST




ABAP code using 7.40 inline data declarations to call FM PCA_ACTUALS_POST

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 DOCTY FROM RGLSI INTO @DATA(ld_i_docty).
DATA(ld_i_docty) = 'A0'.
 
 
 
 
"SELECT single PLACT FROM T889 INTO @DATA(ld_i_plact).
DATA(ld_i_plact) = '0'.
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_batch).
DATA(ld_i_batch) = ' '.
 


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!