SAP FC_DOCUMENT_EXISTENCE_CHECK Function Module for









FC_DOCUMENT_EXISTENCE_CHECK is a standard fc document existence check 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 fc document existence check FM, simply by entering the name FC_DOCUMENT_EXISTENCE_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: FCIN
Program Name: SAPLFCIN
Main Program: SAPLFCIN
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FC_DOCUMENT_EXISTENCE_CHECK 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 'FC_DOCUMENT_EXISTENCE_CHECK'"
EXPORTING
I_AWTYP = "
I_AWREF = "
I_AWORG = "
* I_BUKRS = "
* I_BUDAT = "
* I_FLG_SUBSEQ_POST = 'X' "General Indicator for SAP Consolidation
* I_AWSYS = "Logical System

IMPORTING
E_FLG_EXIST = "

TABLES
* I_T_RA_CONTP = "
* I_T_RA_DIMEN = "Table Range - Dimension
* I_T_RA_ITCLG = "Table Range - Cons Chart of Accounts
* I_T_RA_RVERS = "Table Range - Cons Version
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFCIN_100 Integration: User Exit for Identifier and Texts from Cons Org Units
EXIT_SAPLFCIN_110 Integration: User Exit for 'Parents' of Cons Org Units
EXIT_SAPLFCIN_200 Integration: User Exit for Definition of the Data Stream on Rollup
EXIT_SAPLFCIN_210 Integration: Output Fields of Incorrect Data Records in Rollup
EXIT_SAPLFCIN_220 Integration: Sender Fields for Organizational Units on Rollup
EXIT_SAPLFCIN_230 Integration: Sender Fields for Subitems on Rollup
EXIT_SAPLFCIN_240 Integration: Edit from Value Fields before Update with Rollup
EXIT_SAPLFCIN_250 Integration: Get Custom Subassignments

IMPORTING Parameters details for FC_DOCUMENT_EXISTENCE_CHECK

I_AWTYP -

Data type: FCIN_AWTYP
Optional: No
Call by Reference: Yes

I_AWREF -

Data type: FCIN_AWREF
Optional: No
Call by Reference: Yes

I_AWORG -

Data type: FCIN_AWORG
Optional: No
Call by Reference: Yes

I_BUKRS -

Data type: FCIN_BUKRS
Optional: Yes
Call by Reference: Yes

I_BUDAT -

Data type: FCIN_BUDAT
Optional: Yes
Call by Reference: Yes

I_FLG_SUBSEQ_POST - General Indicator for SAP Consolidation

Data type: FC_FLG
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_AWSYS - Logical System

Data type: LOGSYS
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FC_DOCUMENT_EXISTENCE_CHECK

E_FLG_EXIST -

Data type: FC_FLG
Optional: No
Call by Reference: Yes

TABLES Parameters details for FC_DOCUMENT_EXISTENCE_CHECK

I_T_RA_CONTP -

Data type: FCIN_T_RA_CONTP
Optional: Yes
Call by Reference: Yes

I_T_RA_DIMEN - Table Range - Dimension

Data type: FC00_T_RA_DIMEN
Optional: Yes
Call by Reference: Yes

I_T_RA_ITCLG - Table Range - Cons Chart of Accounts

Data type: FC00_T_RA_ITCLG
Optional: Yes
Call by Reference: Yes

I_T_RA_RVERS - Table Range - Cons Version

Data type: FC00_T_RA_RVERS
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for FC_DOCUMENT_EXISTENCE_CHECK 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_awtyp  TYPE FCIN_AWTYP, "   
lv_e_flg_exist  TYPE FC_FLG, "   
lt_i_t_ra_contp  TYPE STANDARD TABLE OF FCIN_T_RA_CONTP, "   
lv_i_awref  TYPE FCIN_AWREF, "   
lt_i_t_ra_dimen  TYPE STANDARD TABLE OF FC00_T_RA_DIMEN, "   
lv_i_aworg  TYPE FCIN_AWORG, "   
lt_i_t_ra_itclg  TYPE STANDARD TABLE OF FC00_T_RA_ITCLG, "   
lv_i_bukrs  TYPE FCIN_BUKRS, "   
lt_i_t_ra_rvers  TYPE STANDARD TABLE OF FC00_T_RA_RVERS, "   
lv_i_budat  TYPE FCIN_BUDAT, "   
lv_i_flg_subseq_post  TYPE FC_FLG, "   'X'
lv_i_awsys  TYPE LOGSYS. "   

  CALL FUNCTION 'FC_DOCUMENT_EXISTENCE_CHECK'  "
    EXPORTING
         I_AWTYP = lv_i_awtyp
         I_AWREF = lv_i_awref
         I_AWORG = lv_i_aworg
         I_BUKRS = lv_i_bukrs
         I_BUDAT = lv_i_budat
         I_FLG_SUBSEQ_POST = lv_i_flg_subseq_post
         I_AWSYS = lv_i_awsys
    IMPORTING
         E_FLG_EXIST = lv_e_flg_exist
    TABLES
         I_T_RA_CONTP = lt_i_t_ra_contp
         I_T_RA_DIMEN = lt_i_t_ra_dimen
         I_T_RA_ITCLG = lt_i_t_ra_itclg
         I_T_RA_RVERS = lt_i_t_ra_rvers
. " FC_DOCUMENT_EXISTENCE_CHECK




ABAP code using 7.40 inline data declarations to call FM FC_DOCUMENT_EXISTENCE_CHECK

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.

 
 
 
 
 
 
 
 
 
 
DATA(ld_i_flg_subseq_post) = 'X'.
 
 


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!