SAP Function Modules

FVD_ARC_FI_CML_DOCUMENT_CHECK SAP Function module - Checks If a Subledger Document Belonging to an FI Document Is Archived







FVD_ARC_FI_CML_DOCUMENT_CHECK 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 FVD_ARC_FI_CML_DOCUMENT_CHECK into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FVD_DOCUMENTS_ARCHIVE
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FVD_ARC_FI_CML_DOCUMENT_CHECK - FVD ARC FI CML DOCUMENT CHECK





CALL FUNCTION 'FVD_ARC_FI_CML_DOCUMENT_CHECK' "Checks If a Subledger Document Belonging to an FI Document Is Archived
  EXPORTING
    i_bukrs =                   " vdarc_doc_ind-bukrs  Company Code
*   i_ranl =                    " vdarc_doc_ind-ranl  Loan Contract Number
    i_rvzblg =                  " vdarc_doc_ind-rvzblg  FI-Belegnummer der Rechnung, zu der der Vorgang gehört
    i_dgjahr =                  " vdarc_doc_ind-dgjahr  Fiscal year of the relevant invoice (in credit memo)
  IMPORTING
    e_document_in_archive =     " tb_yes_or_no  Beleg ist archiviert (1=Ja; 0=Nein).
  EXCEPTIONS
    I_DOCUMENT_IS_ARCHIVED = 1  "               Beleg ist bereits archiviert (1=Ja; 0=Nein).
    .  "  FVD_ARC_FI_CML_DOCUMENT_CHECK

ABAP code example for Function Module FVD_ARC_FI_CML_DOCUMENT_CHECK





The ABAP code below is a full code listing to execute function module FVD_ARC_FI_CML_DOCUMENT_CHECK 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).

DATA:
ld_e_document_in_archive  TYPE TB_YES_OR_NO .


SELECT single BUKRS
FROM VDARC_DOC_IND
INTO @DATA(ld_i_bukrs).


SELECT single RANL
FROM VDARC_DOC_IND
INTO @DATA(ld_i_ranl).


SELECT single RVZBLG
FROM VDARC_DOC_IND
INTO @DATA(ld_i_rvzblg).


SELECT single DGJAHR
FROM VDARC_DOC_IND
INTO @DATA(ld_i_dgjahr).
. CALL FUNCTION 'FVD_ARC_FI_CML_DOCUMENT_CHECK' EXPORTING i_bukrs = ld_i_bukrs * i_ranl = ld_i_ranl i_rvzblg = ld_i_rvzblg i_dgjahr = ld_i_dgjahr IMPORTING e_document_in_archive = ld_e_document_in_archive EXCEPTIONS I_DOCUMENT_IS_ARCHIVED = 1 . " FVD_ARC_FI_CML_DOCUMENT_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_document_in_archive  TYPE TB_YES_OR_NO ,
ld_i_bukrs  TYPE VDARC_DOC_IND-BUKRS ,
ld_i_ranl  TYPE VDARC_DOC_IND-RANL ,
ld_i_rvzblg  TYPE VDARC_DOC_IND-RVZBLG ,
ld_i_dgjahr  TYPE VDARC_DOC_IND-DGJAHR .


SELECT single BUKRS
FROM VDARC_DOC_IND
INTO ld_i_bukrs.


SELECT single RANL
FROM VDARC_DOC_IND
INTO ld_i_ranl.


SELECT single RVZBLG
FROM VDARC_DOC_IND
INTO ld_i_rvzblg.


SELECT single DGJAHR
FROM VDARC_DOC_IND
INTO ld_i_dgjahr.

Contribute (Add Comments)

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 FVD_ARC_FI_CML_DOCUMENT_CHECK or its description.