SAP FCJ_POST_POSDOC Function Module for
FCJ_POST_POSDOC is a standard fcj post posdoc 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 fcj post posdoc FM, simply by entering the name FCJ_POST_POSDOC into the relevant SAP transaction such as SE37 or SE38.
Function Group: FCJ_PROCESS_MANAGER
Program Name: SAPLSAPLFCJ_PROCESS_MANAGER
Main Program: SAPLSAPLFCJ_PROCESS_MANAGER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FCJ_POST_POSDOC 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 'FCJ_POST_POSDOC'".
EXPORTING
I_POSTING = "Cash Journal Structure Screen 0100 SAPMFCJ0
I_TAB_TYPE = "Business Transaction Type
* I_WWERT = "
IMPORTING
E_AWTYP = "Reference Transaction
E_AWREF = "Reference Document Number
E_AWORG = "Reference Organizational Units
E_AWSYS = "Logical System
E_ERROR_NUMBER = "Cash Journal Document Number
TABLES
ITCJ_SPLIT_POSTINGS = "Cash Journal Structure Screen 0100 SAPMFCJ0
ITCJ_WTAX_POSITIONS = "Withholding Tax Items for Cash Journal Document Items
ITCJ_ACCHD = "Accounting Interface: Header Information
ITCJ_ACCIT = "Accounting Interface: Item Information
ITCJ_ACCCR = "Accounting Interface: Currency Information
ITCJ_ACCTX = "Document segment for tax data plus additional fields RWIN
ITCJ_ACCWT = "Withholding Tax Information for FI Interface
ITCJ_CPD = "FBCJ: One-Time Account Data of Cash Journal Document Items
ITCJ_ACCFI = "Interface to Accounting: Financial Accounting One-Time Accounts
IMPORTING Parameters details for FCJ_POST_POSDOC
I_POSTING - Cash Journal Structure Screen 0100 SAPMFCJ0
Data type: ISCJ_POSTINGSOptional: No
Call by Reference: Yes
I_TAB_TYPE - Business Transaction Type
Data type: CJTRANSTYPOptional: No
Call by Reference: Yes
I_WWERT -
Data type: WWERT_DOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FCJ_POST_POSDOC
E_AWTYP - Reference Transaction
Data type: ACCHD-AWTYPOptional: No
Call by Reference: Yes
E_AWREF - Reference Document Number
Data type: ACCHD-AWREFOptional: No
Call by Reference: Yes
E_AWORG - Reference Organizational Units
Data type: ACCHD-AWORGOptional: No
Call by Reference: Yes
E_AWSYS - Logical System
Data type: ACCHD-AWSYSOptional: No
Call by Reference: Yes
E_ERROR_NUMBER - Cash Journal Document Number
Data type: TCJ_DOCUMENTS-POSTING_NUMBEROptional: No
Call by Reference: Yes
TABLES Parameters details for FCJ_POST_POSDOC
ITCJ_SPLIT_POSTINGS - Cash Journal Structure Screen 0100 SAPMFCJ0
Data type: ISCJ_POSTINGSOptional: No
Call by Reference: Yes
ITCJ_WTAX_POSITIONS - Withholding Tax Items for Cash Journal Document Items
Data type: TCJ_WTAX_ITEMSOptional: No
Call by Reference: Yes
ITCJ_ACCHD - Accounting Interface: Header Information
Data type: ACCHDOptional: No
Call by Reference: Yes
ITCJ_ACCIT - Accounting Interface: Item Information
Data type: ACCITOptional: No
Call by Reference: Yes
ITCJ_ACCCR - Accounting Interface: Currency Information
Data type: ACCCROptional: No
Call by Reference: Yes
ITCJ_ACCTX - Document segment for tax data plus additional fields RWIN
Data type: ACCBSETOptional: No
Call by Reference: Yes
ITCJ_ACCWT - Withholding Tax Information for FI Interface
Data type: ACCIT_WTOptional: No
Call by Reference: Yes
ITCJ_CPD - FBCJ: One-Time Account Data of Cash Journal Document Items
Data type: TCJ_CPDOptional: No
Call by Reference: Yes
ITCJ_ACCFI - Interface to Accounting: Financial Accounting One-Time Accounts
Data type: ACCFIOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FCJ_POST_POSDOC 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_e_awtyp | TYPE ACCHD-AWTYP, " | |||
| lv_i_posting | TYPE ISCJ_POSTINGS, " | |||
| lt_itcj_split_postings | TYPE STANDARD TABLE OF ISCJ_POSTINGS, " | |||
| lv_e_awref | TYPE ACCHD-AWREF, " | |||
| lv_i_tab_type | TYPE CJTRANSTYP, " | |||
| lt_itcj_wtax_positions | TYPE STANDARD TABLE OF TCJ_WTAX_ITEMS, " | |||
| lv_e_aworg | TYPE ACCHD-AWORG, " | |||
| lv_i_wwert | TYPE WWERT_D, " | |||
| lt_itcj_acchd | TYPE STANDARD TABLE OF ACCHD, " | |||
| lv_e_awsys | TYPE ACCHD-AWSYS, " | |||
| lt_itcj_accit | TYPE STANDARD TABLE OF ACCIT, " | |||
| lt_itcj_acccr | TYPE STANDARD TABLE OF ACCCR, " | |||
| lv_e_error_number | TYPE TCJ_DOCUMENTS-POSTING_NUMBER, " | |||
| lt_itcj_acctx | TYPE STANDARD TABLE OF ACCBSET, " | |||
| lt_itcj_accwt | TYPE STANDARD TABLE OF ACCIT_WT, " | |||
| lt_itcj_cpd | TYPE STANDARD TABLE OF TCJ_CPD, " | |||
| lt_itcj_accfi | TYPE STANDARD TABLE OF ACCFI. " |
|   CALL FUNCTION 'FCJ_POST_POSDOC' " |
| EXPORTING | ||
| I_POSTING | = lv_i_posting | |
| I_TAB_TYPE | = lv_i_tab_type | |
| I_WWERT | = lv_i_wwert | |
| IMPORTING | ||
| E_AWTYP | = lv_e_awtyp | |
| E_AWREF | = lv_e_awref | |
| E_AWORG | = lv_e_aworg | |
| E_AWSYS | = lv_e_awsys | |
| E_ERROR_NUMBER | = lv_e_error_number | |
| TABLES | ||
| ITCJ_SPLIT_POSTINGS | = lt_itcj_split_postings | |
| ITCJ_WTAX_POSITIONS | = lt_itcj_wtax_positions | |
| ITCJ_ACCHD | = lt_itcj_acchd | |
| ITCJ_ACCIT | = lt_itcj_accit | |
| ITCJ_ACCCR | = lt_itcj_acccr | |
| ITCJ_ACCTX | = lt_itcj_acctx | |
| ITCJ_ACCWT | = lt_itcj_accwt | |
| ITCJ_CPD | = lt_itcj_cpd | |
| ITCJ_ACCFI | = lt_itcj_accfi | |
| . " FCJ_POST_POSDOC | ||
ABAP code using 7.40 inline data declarations to call FM FCJ_POST_POSDOC
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 AWTYP FROM ACCHD INTO @DATA(ld_e_awtyp). | ||||
| "SELECT single AWREF FROM ACCHD INTO @DATA(ld_e_awref). | ||||
| "SELECT single AWORG FROM ACCHD INTO @DATA(ld_e_aworg). | ||||
| "SELECT single AWSYS FROM ACCHD INTO @DATA(ld_e_awsys). | ||||
| "SELECT single POSTING_NUMBER FROM TCJ_DOCUMENTS INTO @DATA(ld_e_error_number). | ||||
Search for further information about these or an SAP related objects