SAP Function Modules

FVD_ARC_POSTING_DATE_CHECK SAP Function module - Checks If Planned Records Can Be Posted From Document Archiving View







FVD_ARC_POSTING_DATE_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_POSTING_DATE_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_POSTING_DATE_CHECK - FVD ARC POSTING DATE CHECK





CALL FUNCTION 'FVD_ARC_POSTING_DATE_CHECK' "Checks If Planned Records Can Be Posted From Document Archiving View
  EXPORTING
*   i_dbudat = '99991231'       " vdarc_doc_adm-dparc  Vorgesehener Buchungstag für die Planbewegungen (ggfs. Maximum-Tag).
    i_tab_vdbepp =              " trty_vdbepp   Zur Buchung anstehende Planbewegungen (als Tabelle).
*   i_detailed_check = '0'      " tb_yes_or_no  Detaillierte Prüfung ('1'=JA oder '0'=NEIN) aller Planbewegungen gewünscht?
  IMPORTING
    e_posting_impossible =      " tb_yes_or_no  Buchung möglich ('0')  oder Buchung nicht möglich ('1')
    e_tab_vdarc_doc_adm =       " trty_vdarc_doc_adm  Verwaltungstabelle der Archivierung
    e_dbudat_before_dparc =     " tb_yes_or_no  Buchungsdatum in archiviertem Zeitraum  ('1'=JA oder '0'=NEIN)
    e_ddispo_before_ddarc =     " tb_yes_or_no  Zahlungstag in archiviertem Zeitraum ('1'=JA oder '0'=NEIN)
    e_dfaell_before_dfarc =     " tb_yes_or_no  Fälligkeitsdatum in archiviertem Zeitraum ('1'=JA oder '0'=NEIN)
    e_dvalut_before_dvarc =     " tb_yes_or_no  Berechnungstag in archiviertem Zeitraum ('1'=JA oder '0'=NEIN)
  EXCEPTIONS
    DVALUT_BEFORE_DVARC = 1     "               Berechnungstag in archiviertem Zeitraum
    DFAELL_BEFORE_DFARC = 2     "               Fälligkeitstermin in archiviertem Zeitraum
    DDISPO_BEFORE_DDARC = 3     "               Zahlungstag in archiviertem Zeitraum
    .  "  FVD_ARC_POSTING_DATE_CHECK

ABAP code example for Function Module FVD_ARC_POSTING_DATE_CHECK





The ABAP code below is a full code listing to execute function module FVD_ARC_POSTING_DATE_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_posting_impossible  TYPE TB_YES_OR_NO ,
ld_e_tab_vdarc_doc_adm  TYPE TRTY_VDARC_DOC_ADM ,
ld_e_dbudat_before_dparc  TYPE TB_YES_OR_NO ,
ld_e_ddispo_before_ddarc  TYPE TB_YES_OR_NO ,
ld_e_dfaell_before_dfarc  TYPE TB_YES_OR_NO ,
ld_e_dvalut_before_dvarc  TYPE TB_YES_OR_NO .


SELECT single DPARC
FROM VDARC_DOC_ADM
INTO @DATA(ld_i_dbudat).

DATA(ld_i_tab_vdbepp) = 'Check type of data required'.
DATA(ld_i_detailed_check) = 'Check type of data required'. . CALL FUNCTION 'FVD_ARC_POSTING_DATE_CHECK' EXPORTING * i_dbudat = ld_i_dbudat i_tab_vdbepp = ld_i_tab_vdbepp * i_detailed_check = ld_i_detailed_check IMPORTING e_posting_impossible = ld_e_posting_impossible e_tab_vdarc_doc_adm = ld_e_tab_vdarc_doc_adm e_dbudat_before_dparc = ld_e_dbudat_before_dparc e_ddispo_before_ddarc = ld_e_ddispo_before_ddarc e_dfaell_before_dfarc = ld_e_dfaell_before_dfarc e_dvalut_before_dvarc = ld_e_dvalut_before_dvarc EXCEPTIONS DVALUT_BEFORE_DVARC = 1 DFAELL_BEFORE_DFARC = 2 DDISPO_BEFORE_DDARC = 3 . " FVD_ARC_POSTING_DATE_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "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_posting_impossible  TYPE TB_YES_OR_NO ,
ld_i_dbudat  TYPE VDARC_DOC_ADM-DPARC ,
ld_e_tab_vdarc_doc_adm  TYPE TRTY_VDARC_DOC_ADM ,
ld_i_tab_vdbepp  TYPE TRTY_VDBEPP ,
ld_e_dbudat_before_dparc  TYPE TB_YES_OR_NO ,
ld_i_detailed_check  TYPE TB_YES_OR_NO ,
ld_e_ddispo_before_ddarc  TYPE TB_YES_OR_NO ,
ld_e_dfaell_before_dfarc  TYPE TB_YES_OR_NO ,
ld_e_dvalut_before_dvarc  TYPE TB_YES_OR_NO .


SELECT single DPARC
FROM VDARC_DOC_ADM
INTO ld_i_dbudat.

ld_i_tab_vdbepp = 'Check type of data required'.
ld_i_detailed_check = 'Check type of data required'.

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