SAP Function Modules

ACC_SIMULATED_DOC_DISPLAY SAP Function module







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

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


Pattern for FM ACC_SIMULATED_DOC_DISPLAY - ACC SIMULATED DOC DISPLAY





CALL FUNCTION 'ACC_SIMULATED_DOC_DISPLAY' "
* EXPORTING
*   i_t020 =                    " t020          Transaction Control
*   i_posting_forbidden =       " xfeld
*   i_document_exists =         " char1
*   i_parking_forbidden =       " char1
  IMPORTING
    e_okcode =                  " c             Command
    e_index =                   " sy-tabix
  TABLES
    t_bkpf =                    " bkpf
    t_bseg =                    " bseg          Document Line Items
    t_erinf =                   " acerrlog
*   t_bset =                    " bset
    .  "  ACC_SIMULATED_DOC_DISPLAY

ABAP code example for Function Module ACC_SIMULATED_DOC_DISPLAY





The ABAP code below is a full code listing to execute function module ACC_SIMULATED_DOC_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_okcode  TYPE C ,
ld_e_index  TYPE SY-TABIX ,
it_t_bkpf  TYPE STANDARD TABLE OF BKPF,"TABLES PARAM
wa_t_bkpf  LIKE LINE OF it_t_bkpf ,
it_t_bseg  TYPE STANDARD TABLE OF BSEG,"TABLES PARAM
wa_t_bseg  LIKE LINE OF it_t_bseg ,
it_t_erinf  TYPE STANDARD TABLE OF ACERRLOG,"TABLES PARAM
wa_t_erinf  LIKE LINE OF it_t_erinf ,
it_t_bset  TYPE STANDARD TABLE OF BSET,"TABLES PARAM
wa_t_bset  LIKE LINE OF it_t_bset .

DATA(ld_i_t020) = 'Check type of data required'.
DATA(ld_i_posting_forbidden) = 'Check type of data required'.
DATA(ld_i_document_exists) = 'Check type of data required'.
DATA(ld_i_parking_forbidden) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_bkpf to it_t_bkpf.

"populate fields of struture and append to itab
append wa_t_bseg to it_t_bseg.

"populate fields of struture and append to itab
append wa_t_erinf to it_t_erinf.

"populate fields of struture and append to itab
append wa_t_bset to it_t_bset. . CALL FUNCTION 'ACC_SIMULATED_DOC_DISPLAY' * EXPORTING * i_t020 = ld_i_t020 * i_posting_forbidden = ld_i_posting_forbidden * i_document_exists = ld_i_document_exists * i_parking_forbidden = ld_i_parking_forbidden IMPORTING e_okcode = ld_e_okcode e_index = ld_e_index TABLES t_bkpf = it_t_bkpf t_bseg = it_t_bseg t_erinf = it_t_erinf * t_bset = it_t_bset . " ACC_SIMULATED_DOC_DISPLAY
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_e_okcode  TYPE C ,
ld_i_t020  TYPE T020 ,
it_t_bkpf  TYPE STANDARD TABLE OF BKPF ,
wa_t_bkpf  LIKE LINE OF it_t_bkpf,
ld_e_index  TYPE SY-TABIX ,
ld_i_posting_forbidden  TYPE XFELD ,
it_t_bseg  TYPE STANDARD TABLE OF BSEG ,
wa_t_bseg  LIKE LINE OF it_t_bseg,
ld_i_document_exists  TYPE CHAR1 ,
it_t_erinf  TYPE STANDARD TABLE OF ACERRLOG ,
wa_t_erinf  LIKE LINE OF it_t_erinf,
ld_i_parking_forbidden  TYPE CHAR1 ,
it_t_bset  TYPE STANDARD TABLE OF BSET ,
wa_t_bset  LIKE LINE OF it_t_bset.

ld_i_t020 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_bkpf to it_t_bkpf.
ld_i_posting_forbidden = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_bseg to it_t_bseg.
ld_i_document_exists = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_erinf to it_t_erinf.
ld_i_parking_forbidden = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_bset to it_t_bset.

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