SAP PCA_ACTUAL_DOCUMENT_REVERSE Function Module for
PCA_ACTUAL_DOCUMENT_REVERSE is a standard pca actual document reverse 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 actual document reverse FM, simply by entering the name PCA_ACTUAL_DOCUMENT_REVERSE 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_ACTUAL_DOCUMENT_REVERSE 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_ACTUAL_DOCUMENT_REVERSE'".
EXPORTING
I_RBUKRS = "
I_RYEAR = "
I_DOCTY = "
* I_BUDAT = "
* I_AUTHCHECK = ' ' "
* I_SOPER = "
TABLES
T_DOCNR = "
EXCEPTIONS
NO_DOCUMENT_FOUND = 1 SPECIAL_PERIOD = 10 DOCUMENT_ALREADY_REVERSED = 2 REVERSAL_DOCUMENT = 3 NOT_REVERSABLE = 4 POSTING_ERROR = 5 WRONG_LOGSYS = 6 MISSING_DOCUMENT_NUMBER = 7 PARAMETER_MISMATCH = 8 MISSING_AUTH = 9
IMPORTING Parameters details for PCA_ACTUAL_DOCUMENT_REVERSE
I_RBUKRS -
Data type: GLPCA-RBUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_RYEAR -
Data type: GLPCA-RYEAROptional: No
Call by Reference: No ( called with pass by value option)
I_DOCTY -
Data type: GLPCA-DOCTYOptional: No
Call by Reference: No ( called with pass by value option)
I_BUDAT -
Data type: GLPCA-BUDATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AUTHCHECK -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SOPER -
Data type: PCA_SOPEROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PCA_ACTUAL_DOCUMENT_REVERSE
T_DOCNR -
Data type: SELOPTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DOCUMENT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SPECIAL_PERIOD -
Data type:Optional: No
Call by Reference: Yes
DOCUMENT_ALREADY_REVERSED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REVERSAL_DOCUMENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_REVERSABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
POSTING_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_LOGSYS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_DOCUMENT_NUMBER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_MISMATCH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_AUTH -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PCA_ACTUAL_DOCUMENT_REVERSE 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_t_docnr | TYPE STANDARD TABLE OF SELOPT, " | |||
| lv_i_rbukrs | TYPE GLPCA-RBUKRS, " | |||
| lv_no_document_found | TYPE GLPCA, " | |||
| lv_special_period | TYPE GLPCA, " | |||
| lv_i_ryear | TYPE GLPCA-RYEAR, " | |||
| lv_document_already_reversed | TYPE GLPCA, " | |||
| lv_i_docty | TYPE GLPCA-DOCTY, " | |||
| lv_reversal_document | TYPE GLPCA, " | |||
| lv_i_budat | TYPE GLPCA-BUDAT, " | |||
| lv_not_reversable | TYPE GLPCA, " | |||
| lv_i_authcheck | TYPE C, " ' ' | |||
| lv_posting_error | TYPE C, " | |||
| lv_i_soper | TYPE PCA_SOPER, " | |||
| lv_wrong_logsys | TYPE PCA_SOPER, " | |||
| lv_missing_document_number | TYPE PCA_SOPER, " | |||
| lv_parameter_mismatch | TYPE PCA_SOPER, " | |||
| lv_missing_auth | TYPE PCA_SOPER. " |
|   CALL FUNCTION 'PCA_ACTUAL_DOCUMENT_REVERSE' " |
| EXPORTING | ||
| I_RBUKRS | = lv_i_rbukrs | |
| I_RYEAR | = lv_i_ryear | |
| I_DOCTY | = lv_i_docty | |
| I_BUDAT | = lv_i_budat | |
| I_AUTHCHECK | = lv_i_authcheck | |
| I_SOPER | = lv_i_soper | |
| TABLES | ||
| T_DOCNR | = lt_t_docnr | |
| EXCEPTIONS | ||
| NO_DOCUMENT_FOUND = 1 | ||
| SPECIAL_PERIOD = 10 | ||
| DOCUMENT_ALREADY_REVERSED = 2 | ||
| REVERSAL_DOCUMENT = 3 | ||
| NOT_REVERSABLE = 4 | ||
| POSTING_ERROR = 5 | ||
| WRONG_LOGSYS = 6 | ||
| MISSING_DOCUMENT_NUMBER = 7 | ||
| PARAMETER_MISMATCH = 8 | ||
| MISSING_AUTH = 9 | ||
| . " PCA_ACTUAL_DOCUMENT_REVERSE | ||
ABAP code using 7.40 inline data declarations to call FM PCA_ACTUAL_DOCUMENT_REVERSE
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 RBUKRS FROM GLPCA INTO @DATA(ld_i_rbukrs). | ||||
| "SELECT single RYEAR FROM GLPCA INTO @DATA(ld_i_ryear). | ||||
| "SELECT single DOCTY FROM GLPCA INTO @DATA(ld_i_docty). | ||||
| "SELECT single BUDAT FROM GLPCA INTO @DATA(ld_i_budat). | ||||
| DATA(ld_i_authcheck) | = ' '. | |||
Search for further information about these or an SAP related objects