FCJ_PREP_DOC is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name FCJ_PREP_DOC into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SAPLFCJ_PROCESS_MANAGER
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'FCJ_PREP_DOC' "
EXPORTING
i_posting = " iscj_postings
IMPORTING
e_awtyp = " acchd-awtyp
e_awref = " acchd-awref
e_aworg = " acchd-aworg
e_account_1 = " tcj_c_journals-gl_account G/L account number
e_doc_type_sk = " tcj_c_journals-doc_type_sk Document Type
e_doc_type_so = " tcj_c_journals-doc_type_so Cash Journal Document Type: G/L Account Posting
e_doc_type_kz = " tcj_c_journals-doc_type_kz Cash Journal document type vendor payment
e_doc_type_kg = " tcj_c_journals-doc_type_kg Cash Journal document type vendor credit memo
e_doc_type_dz = " tcj_c_journals-doc_type_dz Cash Journal document type customer payment
e_doc_type_dg = " tcj_c_journals-doc_type_dg Cash Journal document type customer credit memo
e_currency = " tcj_c_journals-currency
e_account_2 = " tcj_c_journals-gl_account G/L account number
e_transact_type = " cjtranstyp Cash Journal Transaction Type
e_tax_code = " tcj_transactions-tax_code
e_umskz = " tcj_transactions-umskz Special G/L Indicator
e_amount = " wrbtr Amount in document currency
e_awsys = " t000-logsys Logical System
e_gjahr = " gjahr Fiscal Year
e_text = " tcj_c_journals-text Additional Field for Cash Journal
e_vertn = " ranl Contract Number
e_vertt = " rantyp Contract Type
TABLES
itcj_tax_positions = " iscj_tax_positions Cash Journal Tax Items for Posting Interface
EXCEPTIONS
PREP_ERROR = 1 "
. " FCJ_PREP_DOC
The ABAP code below is a full code listing to execute function module FCJ_PREP_DOC including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_e_awtyp | TYPE ACCHD-AWTYP , |
| ld_e_awref | TYPE ACCHD-AWREF , |
| ld_e_aworg | TYPE ACCHD-AWORG , |
| ld_e_account_1 | TYPE TCJ_C_JOURNALS-GL_ACCOUNT , |
| ld_e_doc_type_sk | TYPE TCJ_C_JOURNALS-DOC_TYPE_SK , |
| ld_e_doc_type_so | TYPE TCJ_C_JOURNALS-DOC_TYPE_SO , |
| ld_e_doc_type_kz | TYPE TCJ_C_JOURNALS-DOC_TYPE_KZ , |
| ld_e_doc_type_kg | TYPE TCJ_C_JOURNALS-DOC_TYPE_KG , |
| ld_e_doc_type_dz | TYPE TCJ_C_JOURNALS-DOC_TYPE_DZ , |
| ld_e_doc_type_dg | TYPE TCJ_C_JOURNALS-DOC_TYPE_DG , |
| ld_e_currency | TYPE TCJ_C_JOURNALS-CURRENCY , |
| ld_e_account_2 | TYPE TCJ_C_JOURNALS-GL_ACCOUNT , |
| ld_e_transact_type | TYPE CJTRANSTYP , |
| ld_e_tax_code | TYPE TCJ_TRANSACTIONS-TAX_CODE , |
| ld_e_umskz | TYPE TCJ_TRANSACTIONS-UMSKZ , |
| ld_e_amount | TYPE WRBTR , |
| ld_e_awsys | TYPE T000-LOGSYS , |
| ld_e_gjahr | TYPE GJAHR , |
| ld_e_text | TYPE TCJ_C_JOURNALS-TEXT , |
| ld_e_vertn | TYPE RANL , |
| ld_e_vertt | TYPE RANTYP , |
| it_itcj_tax_positions | TYPE STANDARD TABLE OF ISCJ_TAX_POSITIONS,"TABLES PARAM |
| wa_itcj_tax_positions | LIKE LINE OF it_itcj_tax_positions . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_e_awtyp | TYPE ACCHD-AWTYP , |
| it_itcj_tax_positions | TYPE STANDARD TABLE OF ISCJ_TAX_POSITIONS , |
| wa_itcj_tax_positions | LIKE LINE OF it_itcj_tax_positions, |
| ld_i_posting | TYPE ISCJ_POSTINGS , |
| ld_e_awref | TYPE ACCHD-AWREF , |
| ld_e_aworg | TYPE ACCHD-AWORG , |
| ld_e_account_1 | TYPE TCJ_C_JOURNALS-GL_ACCOUNT , |
| ld_e_doc_type_sk | TYPE TCJ_C_JOURNALS-DOC_TYPE_SK , |
| ld_e_doc_type_so | TYPE TCJ_C_JOURNALS-DOC_TYPE_SO , |
| ld_e_doc_type_kz | TYPE TCJ_C_JOURNALS-DOC_TYPE_KZ , |
| ld_e_doc_type_kg | TYPE TCJ_C_JOURNALS-DOC_TYPE_KG , |
| ld_e_doc_type_dz | TYPE TCJ_C_JOURNALS-DOC_TYPE_DZ , |
| ld_e_doc_type_dg | TYPE TCJ_C_JOURNALS-DOC_TYPE_DG , |
| ld_e_currency | TYPE TCJ_C_JOURNALS-CURRENCY , |
| ld_e_account_2 | TYPE TCJ_C_JOURNALS-GL_ACCOUNT , |
| ld_e_transact_type | TYPE CJTRANSTYP , |
| ld_e_tax_code | TYPE TCJ_TRANSACTIONS-TAX_CODE , |
| ld_e_umskz | TYPE TCJ_TRANSACTIONS-UMSKZ , |
| ld_e_amount | TYPE WRBTR , |
| ld_e_awsys | TYPE T000-LOGSYS , |
| ld_e_gjahr | TYPE GJAHR , |
| ld_e_text | TYPE TCJ_C_JOURNALS-TEXT , |
| ld_e_vertn | TYPE RANL , |
| ld_e_vertt | TYPE RANTYP . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FCJ_PREP_DOC or its description.