SAP POPUP_EXCEPTION_DEFINE Function Module for









POPUP_EXCEPTION_DEFINE is a standard popup exception define 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 popup exception define FM, simply by entering the name POPUP_EXCEPTION_DEFINE into the relevant SAP transaction such as SE37 or SE38.

Function Group: KYEP
Program Name: SAPLKYEP
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function POPUP_EXCEPTION_DEFINE 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 'POPUP_EXCEPTION_DEFINE'"
EXPORTING
* I_EXCEP_NR = 0 "Exception number
* I_MODE = 'I' "'I' = create, 'M' = change, 'D' = display
* I_OBJECT = '1' "Validity area of the exception
* I_PREV_NEXT = ' ' "Scroll on to other exceptions
I_RKB1D = "RKB1D
I_RKB1F = "RKB1F
I_ZEIT = "
I_FIELD = "

IMPORTING
E_FUNCTION = "Function
E_EXCEP_NR = "Number of the edited exception

TABLES
E_EXCEP_TAB = "Table of exceptions (object based)
E_LEVEL_TAB = "Table with exception conditions
I_KOPF = "Table KOPF
I_PRINT = "Table PRINT
I_SEIG = "Table SEIG
I_TEXTE_TAB = "Text table
I_NEW_TAB = "Table for a newly to be included exception
E_EXTXT_TAB = "Table with descriptions of the exceptions

EXCEPTIONS
BR_OFF = 1
.



IMPORTING Parameters details for POPUP_EXCEPTION_DEFINE

I_EXCEP_NR - Exception number

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

I_MODE - 'I' = create, 'M' = change, 'D' = display

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

I_OBJECT - Validity area of the exception

Data type: CFLEVELTAB-OBJECT
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PREV_NEXT - Scroll on to other exceptions

Data type: CCVALID-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RKB1D - RKB1D

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

I_RKB1F - RKB1F

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

I_ZEIT -

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

I_FIELD -

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

EXPORTING Parameters details for POPUP_EXCEPTION_DEFINE

E_FUNCTION - Function

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

E_EXCEP_NR - Number of the edited exception

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

TABLES Parameters details for POPUP_EXCEPTION_DEFINE

E_EXCEP_TAB - Table of exceptions (object based)

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

E_LEVEL_TAB - Table with exception conditions

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

I_KOPF - Table KOPF

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

I_PRINT - Table PRINT

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

I_SEIG - Table SEIG

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

I_TEXTE_TAB - Text table

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

I_NEW_TAB - Table for a newly to be included exception

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

E_EXTXT_TAB - Table with descriptions of the exceptions

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

EXCEPTIONS details

BR_OFF - Cancel

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

Copy and paste ABAP code example for POPUP_EXCEPTION_DEFINE 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_br_off  TYPE STRING, "   
lv_e_function  TYPE C, "   
lv_i_excep_nr  TYPE CFEXCEPTAB-EXCEP_NR, "   0
lt_e_excep_tab  TYPE STANDARD TABLE OF CFEXCEPTAB, "   
lv_i_mode  TYPE C, "   'I'
lv_e_excep_nr  TYPE CFEXCEPTAB-EXCEP_NR, "   
lt_e_level_tab  TYPE STANDARD TABLE OF CFLEVELTAB, "   
lt_i_kopf  TYPE STANDARD TABLE OF CFBKO01, "   
lv_i_object  TYPE CFLEVELTAB-OBJECT, "   '1'
lt_i_print  TYPE STANDARD TABLE OF CFBPR01, "   
lv_i_prev_next  TYPE CCVALID-XFELD, "   SPACE
lt_i_seig  TYPE STANDARD TABLE OF CFBSE01, "   
lv_i_rkb1d  TYPE RKB1D, "   
lv_i_rkb1f  TYPE RKB1F, "   
lt_i_texte_tab  TYPE STANDARD TABLE OF RKB1W, "   
lv_i_zeit  TYPE CFWAEH, "   
lt_i_new_tab  TYPE STANDARD TABLE OF CFEXCEPTAB, "   
lv_i_field  TYPE RKD_T_FIELD, "   
lt_e_extxt_tab  TYPE STANDARD TABLE OF CFEXTXTTAB. "   

  CALL FUNCTION 'POPUP_EXCEPTION_DEFINE'  "
    EXPORTING
         I_EXCEP_NR = lv_i_excep_nr
         I_MODE = lv_i_mode
         I_OBJECT = lv_i_object
         I_PREV_NEXT = lv_i_prev_next
         I_RKB1D = lv_i_rkb1d
         I_RKB1F = lv_i_rkb1f
         I_ZEIT = lv_i_zeit
         I_FIELD = lv_i_field
    IMPORTING
         E_FUNCTION = lv_e_function
         E_EXCEP_NR = lv_e_excep_nr
    TABLES
         E_EXCEP_TAB = lt_e_excep_tab
         E_LEVEL_TAB = lt_e_level_tab
         I_KOPF = lt_i_kopf
         I_PRINT = lt_i_print
         I_SEIG = lt_i_seig
         I_TEXTE_TAB = lt_i_texte_tab
         I_NEW_TAB = lt_i_new_tab
         E_EXTXT_TAB = lt_e_extxt_tab
    EXCEPTIONS
        BR_OFF = 1
. " POPUP_EXCEPTION_DEFINE




ABAP code using 7.40 inline data declarations to call FM POPUP_EXCEPTION_DEFINE

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 EXCEP_NR FROM CFEXCEPTAB INTO @DATA(ld_i_excep_nr).
 
 
DATA(ld_i_mode) = 'I'.
 
"SELECT single EXCEP_NR FROM CFEXCEPTAB INTO @DATA(ld_e_excep_nr).
 
 
 
"SELECT single OBJECT FROM CFLEVELTAB INTO @DATA(ld_i_object).
DATA(ld_i_object) = '1'.
 
 
"SELECT single XFELD FROM CCVALID INTO @DATA(ld_i_prev_next).
DATA(ld_i_prev_next) = ' '.
 
 
 
 
 
 
 
 
 


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!