SAP Function Modules

RKE_GET_OPEN_DOCS SAP Function module







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

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


Pattern for FM RKE_GET_OPEN_DOCS - RKE GET OPEN DOCS





CALL FUNCTION 'RKE_GET_OPEN_DOCS' "
* EXPORTING
*   delete_open_docs =          " flag
*   delete_all_docs =           " flag
*   declare_all_as_open =       " flag
*   time_out = C_DEFAULT_TIME_OUT  " int4
  IMPORTING
    docs_deleted =              " int4
    docs_open =                 " int4
    docs_all =                  " int4
* TABLES
*   t_open_doc =                " rkecrm_yt_vbeln
*   t_all_doc =                 " rkecrm_yt_vbeln
    .  "  RKE_GET_OPEN_DOCS

ABAP code example for Function Module RKE_GET_OPEN_DOCS





The ABAP code below is a full code listing to execute function module RKE_GET_OPEN_DOCS 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_docs_deleted  TYPE INT4 ,
ld_docs_open  TYPE INT4 ,
ld_docs_all  TYPE INT4 ,
it_t_open_doc  TYPE STANDARD TABLE OF RKECRM_YT_VBELN,"TABLES PARAM
wa_t_open_doc  LIKE LINE OF it_t_open_doc ,
it_t_all_doc  TYPE STANDARD TABLE OF RKECRM_YT_VBELN,"TABLES PARAM
wa_t_all_doc  LIKE LINE OF it_t_all_doc .

DATA(ld_delete_open_docs) = 'Check type of data required'.
DATA(ld_delete_all_docs) = 'Check type of data required'.
DATA(ld_declare_all_as_open) = 'Check type of data required'.
DATA(ld_time_out) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_open_doc to it_t_open_doc.

"populate fields of struture and append to itab
append wa_t_all_doc to it_t_all_doc. . CALL FUNCTION 'RKE_GET_OPEN_DOCS' * EXPORTING * delete_open_docs = ld_delete_open_docs * delete_all_docs = ld_delete_all_docs * declare_all_as_open = ld_declare_all_as_open * time_out = ld_time_out IMPORTING docs_deleted = ld_docs_deleted docs_open = ld_docs_open docs_all = ld_docs_all * TABLES * t_open_doc = it_t_open_doc * t_all_doc = it_t_all_doc . " RKE_GET_OPEN_DOCS
IF SY-SUBRC EQ 0. "All OK 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_docs_deleted  TYPE INT4 ,
ld_delete_open_docs  TYPE FLAG ,
it_t_open_doc  TYPE STANDARD TABLE OF RKECRM_YT_VBELN ,
wa_t_open_doc  LIKE LINE OF it_t_open_doc,
ld_docs_open  TYPE INT4 ,
ld_delete_all_docs  TYPE FLAG ,
it_t_all_doc  TYPE STANDARD TABLE OF RKECRM_YT_VBELN ,
wa_t_all_doc  LIKE LINE OF it_t_all_doc,
ld_docs_all  TYPE INT4 ,
ld_declare_all_as_open  TYPE FLAG ,
ld_time_out  TYPE INT4 .

ld_delete_open_docs = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_open_doc to it_t_open_doc.
ld_delete_all_docs = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_all_doc to it_t_all_doc.
ld_declare_all_as_open = 'Check type of data required'.
ld_time_out = '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 RKE_GET_OPEN_DOCS or its description.