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
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
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).
| 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 . |
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. |
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.