SAP DOCUMENT_AUDIT_SHOW Function Module for NOTRANSL: Anzeigen eines auditierten Originals









DOCUMENT_AUDIT_SHOW is a standard document audit show SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Anzeigen eines auditierten Originals processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for document audit show FM, simply by entering the name DOCUMENT_AUDIT_SHOW into the relevant SAP transaction such as SE37 or SE38.

Function Group: CV00
Program Name: SAPLCV00
Main Program: SAPLCV00
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DOCUMENT_AUDIT_SHOW pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'DOCUMENT_AUDIT_SHOW'"NOTRANSL: Anzeigen eines auditierten Originals
EXPORTING
DRAP_LINE = "
* PF_CAD_CALLED = ' ' "
* PF_FCODE = 'AZ' "Screens, Function Code That Triggered PAI

IMPORTING
PFX_FILEP = "Original of Document
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLCV00_001 Exit for check_in before files transport
EXIT_SAPLCV00_002 Exit for check in after file transport

IMPORTING Parameters details for DOCUMENT_AUDIT_SHOW

DRAP_LINE -

Data type: DRAP
Optional: No
Call by Reference: No ( called with pass by value option)

PF_CAD_CALLED -

Data type: SYST-BATCH
Default: SPACE
Optional: Yes
Call by Reference: Yes

PF_FCODE - Screens, Function Code That Triggered PAI

Data type: SYST-UCOMM
Default: 'AZ'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for DOCUMENT_AUDIT_SHOW

PFX_FILEP - Original of Document

Data type: DRAW-FILEP
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DOCUMENT_AUDIT_SHOW Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_drap_line  TYPE DRAP, "   
lv_pfx_filep  TYPE DRAW-FILEP, "   
lv_pf_cad_called  TYPE SYST-BATCH, "   SPACE
lv_pf_fcode  TYPE SYST-UCOMM. "   'AZ'

  CALL FUNCTION 'DOCUMENT_AUDIT_SHOW'  "NOTRANSL: Anzeigen eines auditierten Originals
    EXPORTING
         DRAP_LINE = lv_drap_line
         PF_CAD_CALLED = lv_pf_cad_called
         PF_FCODE = lv_pf_fcode
    IMPORTING
         PFX_FILEP = lv_pfx_filep
. " DOCUMENT_AUDIT_SHOW




ABAP code using 7.40 inline data declarations to call FM DOCUMENT_AUDIT_SHOW

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single FILEP FROM DRAW INTO @DATA(ld_pfx_filep).
 
"SELECT single BATCH FROM SYST INTO @DATA(ld_pf_cad_called).
DATA(ld_pf_cad_called) = ' '.
 
"SELECT single UCOMM FROM SYST INTO @DATA(ld_pf_fcode).
DATA(ld_pf_fcode) = 'AZ'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!