SAP EHS_AUD_UPL Function Module for









EHS_AUD_UPL is a standard ehs aud upl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ehs aud upl FM, simply by entering the name EHS_AUD_UPL into the relevant SAP transaction such as SE37 or SE38.

Function Group: EHS00MDATAUPL
Program Name: SAPLEHS00MDATAUPL
Main Program: SAPLEHS00MDATAUPL
Appliation area: L
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EHS_AUD_UPL 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 'EHS_AUD_UPL'"
EXPORTING
* IM_SRV_NUMBER = "
* IM_EXAM_CODE = "
* IM_EXAM_COUNT = "
* IM_TEST_NO = "
* IM_CHECK_IMPORT = 'X' "
* IM_DETAIL_PROT = ' ' "
* IM_CREATE_PROT = 'X' "
* IM_UPD_DB = 'X' "

TABLES
* EX_ITAB_AUD = "
* EX_ITAB_AUD_DB = "

EXCEPTIONS
NO_VALID_SERVICE = 1 NO_VALID_EXAM = 2 NO_VALID_TEST = 3 NO_REFERENCE = 4 INTERNAL_ERROR = 5
.



IMPORTING Parameters details for EHS_AUD_UPL

IM_SRV_NUMBER -

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

IM_EXAM_CODE -

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

IM_EXAM_COUNT -

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

IM_TEST_NO -

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

IM_CHECK_IMPORT -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_DETAIL_PROT -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_CREATE_PROT -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_UPD_DB -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for EHS_AUD_UPL

EX_ITAB_AUD -

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

EX_ITAB_AUD_DB -

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

EXCEPTIONS details

NO_VALID_SERVICE -

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

NO_VALID_EXAM -

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

NO_VALID_TEST -

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

NO_REFERENCE -

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

INTERNAL_ERROR -

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

Copy and paste ABAP code example for EHS_AUD_UPL 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:
lt_ex_itab_aud  TYPE STANDARD TABLE OF T7EHS00_EXA_AUD, "   
lv_im_srv_number  TYPE EHS00_SRVNUMBER, "   
lv_no_valid_service  TYPE EHS00_SRVNUMBER, "   
lv_im_exam_code  TYPE EHS00_ECODE, "   
lv_no_valid_exam  TYPE EHS00_ECODE, "   
lt_ex_itab_aud_db  TYPE STANDARD TABLE OF T7EHS00_EXA_AUD, "   
lv_im_exam_count  TYPE EHS00_EXAMCOUNT, "   
lv_no_valid_test  TYPE EHS00_EXAMCOUNT, "   
lv_im_test_no  TYPE EHS00_TESTNO, "   
lv_no_reference  TYPE EHS00_TESTNO, "   
lv_internal_error  TYPE EHS00_TESTNO, "   
lv_im_check_import  TYPE C, "   'X'
lv_im_detail_prot  TYPE C, "   ' '
lv_im_create_prot  TYPE C, "   'X'
lv_im_upd_db  TYPE C. "   'X'

  CALL FUNCTION 'EHS_AUD_UPL'  "
    EXPORTING
         IM_SRV_NUMBER = lv_im_srv_number
         IM_EXAM_CODE = lv_im_exam_code
         IM_EXAM_COUNT = lv_im_exam_count
         IM_TEST_NO = lv_im_test_no
         IM_CHECK_IMPORT = lv_im_check_import
         IM_DETAIL_PROT = lv_im_detail_prot
         IM_CREATE_PROT = lv_im_create_prot
         IM_UPD_DB = lv_im_upd_db
    TABLES
         EX_ITAB_AUD = lt_ex_itab_aud
         EX_ITAB_AUD_DB = lt_ex_itab_aud_db
    EXCEPTIONS
        NO_VALID_SERVICE = 1
        NO_VALID_EXAM = 2
        NO_VALID_TEST = 3
        NO_REFERENCE = 4
        INTERNAL_ERROR = 5
. " EHS_AUD_UPL




ABAP code using 7.40 inline data declarations to call FM EHS_AUD_UPL

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.

 
 
 
 
 
 
 
 
 
 
 
DATA(ld_im_check_import) = 'X'.
 
DATA(ld_im_detail_prot) = ' '.
 
DATA(ld_im_create_prot) = 'X'.
 
DATA(ld_im_upd_db) = 'X'.
 


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!