SAP Function Modules

BANK_API_CHDOC_DISPLAY SAP Function module







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

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


Pattern for FM BANK_API_CHDOC_DISPLAY - BANK API CHDOC DISPLAY





CALL FUNCTION 'BANK_API_CHDOC_DISPLAY' "
  EXPORTING
*   i_tab_objectid =            " bank_tab_cd_objectid  Internal Table of Change Document Object IDs
*   i_tab_chdocread =           " bank_tab_cd_chdoc
*   i_tab_chdocprepare =        " bank_tab_cd_chdoc
*   i_str_attribut =            " bank_str_cd_attribut  Description of an Attribute
*   i_selection_timestamp_from =   " bank_dte_tmpsm_long_utc_timest
*   i_selection_timestamp_to =   " bank_dte_tmpsm_long_utc_timest
*   i_selection_date_from =     " bank_dte_cd_date_from  Please do not use any longer
*   i_selection_time_from =     " bank_dte_cd_time_from  Please do not use any longer
*   i_sortsequence =            " bank_dte_cd_sortsequence  Sort sequence
*   i_flg_selectionscreen = CON_TRUE  " bank_dte_cd_flag
*   i_flg_prepare_at_once = CON_TRUE  " bank_dte_cd_flag
    i_applicationid =           " repid         ABAP Program Name
*   i_objectclass_for_customizing =   " cdobjectcl
*   i_header_description =      " bank_str_cd_header_description  ALV Header Description
*   i_local_time = CON_TRUE     " bank_dte_cd_flag
*   i_rif_cdv_collect =         " if_cdv_collect
*   i_flg_emsg = CO_MSG_EMSG_ON  " emsg_usage_flag
  IMPORTING
    e_str_exit_command =        " bank_str_cd_excm  Pushbutton Pressed by User Upon Completion
* CHANGING
*   c_tab_chdocread =           " bank_tab_cd_chdoc
*   c_tab_chdocprepare =        " bank_tab_cd_chdoc
*   c_tab_prepared_chdocs =     " cdv_tab_chdoc_prepared
  EXCEPTIONS
    NOT_QUALIFIED = 1           "
    NO_CHANGE_DOCUMENT_FOUND = 2  "
    INTERNAL_ERROR = 3          "               Internal Error
    SYSTEM_ERROR = 4            "               System Error
    .  "  BANK_API_CHDOC_DISPLAY

ABAP code example for Function Module BANK_API_CHDOC_DISPLAY





The ABAP code below is a full code listing to execute function module BANK_API_CHDOC_DISPLAY 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_str_exit_command  TYPE BANK_STR_CD_EXCM .

DATA(ld_c_tab_chdocread) = 'Check type of data required'.
DATA(ld_c_tab_chdocprepare) = 'Check type of data required'.
DATA(ld_c_tab_prepared_chdocs) = 'Check type of data required'.
DATA(ld_i_tab_objectid) = 'Check type of data required'.
DATA(ld_i_tab_chdocread) = 'Check type of data required'.
DATA(ld_i_tab_chdocprepare) = 'Check type of data required'.
DATA(ld_i_str_attribut) = 'Check type of data required'.
DATA(ld_i_selection_timestamp_from) = 'Check type of data required'.
DATA(ld_i_selection_timestamp_to) = 'Check type of data required'.
DATA(ld_i_selection_date_from) = 'Check type of data required'.
DATA(ld_i_selection_time_from) = 'Check type of data required'.
DATA(ld_i_sortsequence) = 'Check type of data required'.
DATA(ld_i_flg_selectionscreen) = 'Check type of data required'.
DATA(ld_i_flg_prepare_at_once) = 'Check type of data required'.
DATA(ld_i_applicationid) = 'Check type of data required'.
DATA(ld_i_objectclass_for_customizing) = 'Check type of data required'.
DATA(ld_i_header_description) = 'Check type of data required'.
DATA(ld_i_local_time) = 'Check type of data required'.
DATA(ld_i_rif_cdv_collect) = 'Check type of data required'.
DATA(ld_i_flg_emsg) = 'Check type of data required'. . CALL FUNCTION 'BANK_API_CHDOC_DISPLAY' EXPORTING * i_tab_objectid = ld_i_tab_objectid * i_tab_chdocread = ld_i_tab_chdocread * i_tab_chdocprepare = ld_i_tab_chdocprepare * i_str_attribut = ld_i_str_attribut * i_selection_timestamp_from = ld_i_selection_timestamp_from * i_selection_timestamp_to = ld_i_selection_timestamp_to * i_selection_date_from = ld_i_selection_date_from * i_selection_time_from = ld_i_selection_time_from * i_sortsequence = ld_i_sortsequence * i_flg_selectionscreen = ld_i_flg_selectionscreen * i_flg_prepare_at_once = ld_i_flg_prepare_at_once i_applicationid = ld_i_applicationid * i_objectclass_for_customizing = ld_i_objectclass_for_customizing * i_header_description = ld_i_header_description * i_local_time = ld_i_local_time * i_rif_cdv_collect = ld_i_rif_cdv_collect * i_flg_emsg = ld_i_flg_emsg IMPORTING e_str_exit_command = ld_e_str_exit_command * CHANGING * c_tab_chdocread = ld_c_tab_chdocread * c_tab_chdocprepare = ld_c_tab_chdocprepare * c_tab_prepared_chdocs = ld_c_tab_prepared_chdocs EXCEPTIONS NOT_QUALIFIED = 1 NO_CHANGE_DOCUMENT_FOUND = 2 INTERNAL_ERROR = 3 SYSTEM_ERROR = 4 . " BANK_API_CHDOC_DISPLAY
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 ELSEIF SY-SUBRC EQ 4. "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_c_tab_chdocread  TYPE BANK_TAB_CD_CHDOC ,
ld_e_str_exit_command  TYPE BANK_STR_CD_EXCM ,
ld_i_tab_objectid  TYPE BANK_TAB_CD_OBJECTID ,
ld_c_tab_chdocprepare  TYPE BANK_TAB_CD_CHDOC ,
ld_i_tab_chdocread  TYPE BANK_TAB_CD_CHDOC ,
ld_c_tab_prepared_chdocs  TYPE CDV_TAB_CHDOC_PREPARED ,
ld_i_tab_chdocprepare  TYPE BANK_TAB_CD_CHDOC ,
ld_i_str_attribut  TYPE BANK_STR_CD_ATTRIBUT ,
ld_i_selection_timestamp_from  TYPE BANK_DTE_TMPSM_LONG_UTC_TIMEST ,
ld_i_selection_timestamp_to  TYPE BANK_DTE_TMPSM_LONG_UTC_TIMEST ,
ld_i_selection_date_from  TYPE BANK_DTE_CD_DATE_FROM ,
ld_i_selection_time_from  TYPE BANK_DTE_CD_TIME_FROM ,
ld_i_sortsequence  TYPE BANK_DTE_CD_SORTSEQUENCE ,
ld_i_flg_selectionscreen  TYPE BANK_DTE_CD_FLAG ,
ld_i_flg_prepare_at_once  TYPE BANK_DTE_CD_FLAG ,
ld_i_applicationid  TYPE REPID ,
ld_i_objectclass_for_customizing  TYPE CDOBJECTCL ,
ld_i_header_description  TYPE BANK_STR_CD_HEADER_DESCRIPTION ,
ld_i_local_time  TYPE BANK_DTE_CD_FLAG ,
ld_i_rif_cdv_collect  TYPE IF_CDV_COLLECT ,
ld_i_flg_emsg  TYPE EMSG_USAGE_FLAG .

ld_c_tab_chdocread = 'Check type of data required'.
ld_i_tab_objectid = 'Check type of data required'.
ld_c_tab_chdocprepare = 'Check type of data required'.
ld_i_tab_chdocread = 'Check type of data required'.
ld_c_tab_prepared_chdocs = 'Check type of data required'.
ld_i_tab_chdocprepare = 'Check type of data required'.
ld_i_str_attribut = 'Check type of data required'.
ld_i_selection_timestamp_from = 'Check type of data required'.
ld_i_selection_timestamp_to = 'Check type of data required'.
ld_i_selection_date_from = 'Check type of data required'.
ld_i_selection_time_from = 'Check type of data required'.
ld_i_sortsequence = 'Check type of data required'.
ld_i_flg_selectionscreen = 'Check type of data required'.
ld_i_flg_prepare_at_once = 'Check type of data required'.
ld_i_applicationid = 'Check type of data required'.
ld_i_objectclass_for_customizing = 'Check type of data required'.
ld_i_header_description = 'Check type of data required'.
ld_i_local_time = 'Check type of data required'.
ld_i_rif_cdv_collect = 'Check type of data required'.
ld_i_flg_emsg = '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 BANK_API_CHDOC_DISPLAY or its description.