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

Function FCJ_GET_DATA_FOR_SCREEN 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_GET_DATA_FOR_SCREEN'".
EXPORTING
I_COMP_CODE = "
I_CAJO_NUMBER = "
I_DISPLAY_PERIOD_LO = "
I_DISPLAY_PERIOD_HI = "
IMPORTING
E_BEGINNING_BALANCE = "Cash Journal Amount Field with +/- Sign
E_COMP_NAME = "Name of Company Code or Company
E_CAJO_NAME = "Cash journal name
E_CURRENCY1 = "Currency Key
E_CURRENCY2 = "Currency Key
E_CURRENCY3 = "Currency Key
E_CURRENCY4 = "Currency Key
E_CURRENCY5 = "Currency Key
E_CURRENCY6 = "Currency Key
E_RUNNING_BALANCE = "Cash Journal Amount Field with +/- Sign
E_RUNNING_CASH_BALANCE = "Cash Journal Amount Field with +/- Sign
E_TOTAL_RECEIPTS = "Cash Journal Amount Field with +/- Sign
E_TOTAL_REC_NUMBER = "
E_TOTAL_PAYMENTS = "Cash Journal Amount Field with +/- Sign
E_TOTAL_PAYM_NUMBER = "
E_TOTAL_CHECKS = "Cash Journal Amount Field with +/- Sign
E_TOTAL_CHECKS_NUMBER = "
TABLES
E_POSTINGS = "Cash Journal Structure Screen 0100 SAPMFCJ0
E_WTAX_ITEMS = "Withholding Tax Items for Cash Journal Document Items
E_SPLIT_POSTINGS = "Cash Journal Structure Screen 0100 SAPMFCJ0
E_CPD = "FBCJ: One-Time Account Data of Cash Journal Document Items
IMPORTING Parameters details for FCJ_GET_DATA_FOR_SCREEN
I_COMP_CODE -
Data type: TCJ_C_JOURNALS-COMP_CODEOptional: No
Call by Reference: Yes
I_CAJO_NUMBER -
Data type: TCJ_C_JOURNALS-CAJO_NUMBEROptional: No
Call by Reference: Yes
I_DISPLAY_PERIOD_LO -
Data type: SY-DATUMOptional: No
Call by Reference: Yes
I_DISPLAY_PERIOD_HI -
Data type: SY-DATUMOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FCJ_GET_DATA_FOR_SCREEN
E_BEGINNING_BALANCE - Cash Journal Amount Field with +/- Sign
Data type: CJAMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
E_COMP_NAME - Name of Company Code or Company
Data type: T001-BUTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_CAJO_NAME - Cash journal name
Data type: TCJ_CJ_NAMES-CAJO_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
E_CURRENCY1 - Currency Key
Data type: TCJ_C_JOURNALS-CURRENCYOptional: No
Call by Reference: No ( called with pass by value option)
E_CURRENCY2 - Currency Key
Data type: TCJ_C_JOURNALS-CURRENCYOptional: No
Call by Reference: No ( called with pass by value option)
E_CURRENCY3 - Currency Key
Data type: TCJ_C_JOURNALS-CURRENCYOptional: No
Call by Reference: No ( called with pass by value option)
E_CURRENCY4 - Currency Key
Data type: TCJ_C_JOURNALS-CURRENCYOptional: No
Call by Reference: No ( called with pass by value option)
E_CURRENCY5 - Currency Key
Data type: TCJ_C_JOURNALS-CURRENCYOptional: No
Call by Reference: No ( called with pass by value option)
E_CURRENCY6 - Currency Key
Data type: TCJ_C_JOURNALS-CURRENCYOptional: No
Call by Reference: No ( called with pass by value option)
E_RUNNING_BALANCE - Cash Journal Amount Field with +/- Sign
Data type: CJAMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
E_RUNNING_CASH_BALANCE - Cash Journal Amount Field with +/- Sign
Data type: CJAMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
E_TOTAL_RECEIPTS - Cash Journal Amount Field with +/- Sign
Data type: CJAMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
E_TOTAL_REC_NUMBER -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
E_TOTAL_PAYMENTS - Cash Journal Amount Field with +/- Sign
Data type: CJAMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
E_TOTAL_PAYM_NUMBER -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
E_TOTAL_CHECKS - Cash Journal Amount Field with +/- Sign
Data type: CJAMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
E_TOTAL_CHECKS_NUMBER -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FCJ_GET_DATA_FOR_SCREEN
E_POSTINGS - Cash Journal Structure Screen 0100 SAPMFCJ0
Data type: ISCJ_POSTINGSOptional: No
Call by Reference: Yes
E_WTAX_ITEMS - Withholding Tax Items for Cash Journal Document Items
Data type: TCJ_WTAX_ITEMSOptional: No
Call by Reference: Yes
E_SPLIT_POSTINGS - Cash Journal Structure Screen 0100 SAPMFCJ0
Data type: ISCJ_POSTINGSOptional: No
Call by Reference: Yes
E_CPD - FBCJ: One-Time Account Data of Cash Journal Document Items
Data type: TCJ_CPDOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FCJ_GET_DATA_FOR_SCREEN 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_e_postings | TYPE STANDARD TABLE OF ISCJ_POSTINGS, " | |||
| lv_i_comp_code | TYPE TCJ_C_JOURNALS-COMP_CODE, " | |||
| lv_e_beginning_balance | TYPE CJAMOUNT, " | |||
| lv_e_comp_name | TYPE T001-BUTXT, " | |||
| lv_e_cajo_name | TYPE TCJ_CJ_NAMES-CAJO_NAME, " | |||
| lv_e_currency1 | TYPE TCJ_C_JOURNALS-CURRENCY, " | |||
| lv_e_currency2 | TYPE TCJ_C_JOURNALS-CURRENCY, " | |||
| lv_e_currency3 | TYPE TCJ_C_JOURNALS-CURRENCY, " | |||
| lv_e_currency4 | TYPE TCJ_C_JOURNALS-CURRENCY, " | |||
| lv_e_currency5 | TYPE TCJ_C_JOURNALS-CURRENCY, " | |||
| lv_e_currency6 | TYPE TCJ_C_JOURNALS-CURRENCY, " | |||
| lt_e_wtax_items | TYPE STANDARD TABLE OF TCJ_WTAX_ITEMS, " | |||
| lv_i_cajo_number | TYPE TCJ_C_JOURNALS-CAJO_NUMBER, " | |||
| lv_e_running_balance | TYPE CJAMOUNT, " | |||
| lt_e_split_postings | TYPE STANDARD TABLE OF ISCJ_POSTINGS, " | |||
| lv_i_display_period_lo | TYPE SY-DATUM, " | |||
| lv_e_running_cash_balance | TYPE CJAMOUNT, " | |||
| lt_e_cpd | TYPE STANDARD TABLE OF TCJ_CPD, " | |||
| lv_e_total_receipts | TYPE CJAMOUNT, " | |||
| lv_i_display_period_hi | TYPE SY-DATUM, " | |||
| lv_e_total_rec_number | TYPE I, " | |||
| lv_e_total_payments | TYPE CJAMOUNT, " | |||
| lv_e_total_paym_number | TYPE I, " | |||
| lv_e_total_checks | TYPE CJAMOUNT, " | |||
| lv_e_total_checks_number | TYPE I. " |
|   CALL FUNCTION 'FCJ_GET_DATA_FOR_SCREEN' " |
| EXPORTING | ||
| I_COMP_CODE | = lv_i_comp_code | |
| I_CAJO_NUMBER | = lv_i_cajo_number | |
| I_DISPLAY_PERIOD_LO | = lv_i_display_period_lo | |
| I_DISPLAY_PERIOD_HI | = lv_i_display_period_hi | |
| IMPORTING | ||
| E_BEGINNING_BALANCE | = lv_e_beginning_balance | |
| E_COMP_NAME | = lv_e_comp_name | |
| E_CAJO_NAME | = lv_e_cajo_name | |
| E_CURRENCY1 | = lv_e_currency1 | |
| E_CURRENCY2 | = lv_e_currency2 | |
| E_CURRENCY3 | = lv_e_currency3 | |
| E_CURRENCY4 | = lv_e_currency4 | |
| E_CURRENCY5 | = lv_e_currency5 | |
| E_CURRENCY6 | = lv_e_currency6 | |
| E_RUNNING_BALANCE | = lv_e_running_balance | |
| E_RUNNING_CASH_BALANCE | = lv_e_running_cash_balance | |
| E_TOTAL_RECEIPTS | = lv_e_total_receipts | |
| E_TOTAL_REC_NUMBER | = lv_e_total_rec_number | |
| E_TOTAL_PAYMENTS | = lv_e_total_payments | |
| E_TOTAL_PAYM_NUMBER | = lv_e_total_paym_number | |
| E_TOTAL_CHECKS | = lv_e_total_checks | |
| E_TOTAL_CHECKS_NUMBER | = lv_e_total_checks_number | |
| TABLES | ||
| E_POSTINGS | = lt_e_postings | |
| E_WTAX_ITEMS | = lt_e_wtax_items | |
| E_SPLIT_POSTINGS | = lt_e_split_postings | |
| E_CPD | = lt_e_cpd | |
| . " FCJ_GET_DATA_FOR_SCREEN | ||
ABAP code using 7.40 inline data declarations to call FM FCJ_GET_DATA_FOR_SCREEN
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 COMP_CODE FROM TCJ_C_JOURNALS INTO @DATA(ld_i_comp_code). | ||||
| "SELECT single BUTXT FROM T001 INTO @DATA(ld_e_comp_name). | ||||
| "SELECT single CAJO_NAME FROM TCJ_CJ_NAMES INTO @DATA(ld_e_cajo_name). | ||||
| "SELECT single CURRENCY FROM TCJ_C_JOURNALS INTO @DATA(ld_e_currency1). | ||||
| "SELECT single CURRENCY FROM TCJ_C_JOURNALS INTO @DATA(ld_e_currency2). | ||||
| "SELECT single CURRENCY FROM TCJ_C_JOURNALS INTO @DATA(ld_e_currency3). | ||||
| "SELECT single CURRENCY FROM TCJ_C_JOURNALS INTO @DATA(ld_e_currency4). | ||||
| "SELECT single CURRENCY FROM TCJ_C_JOURNALS INTO @DATA(ld_e_currency5). | ||||
| "SELECT single CURRENCY FROM TCJ_C_JOURNALS INTO @DATA(ld_e_currency6). | ||||
| "SELECT single CAJO_NUMBER FROM TCJ_C_JOURNALS INTO @DATA(ld_i_cajo_number). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_display_period_lo). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_display_period_hi). | ||||
Search for further information about these or an SAP related objects