SAP POPUP_TO_CONFIRM_DEL Function Module for
POPUP_TO_CONFIRM_DEL is a standard popup to confirm del 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 to confirm del FM, simply by entering the name POPUP_TO_CONFIRM_DEL into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHGB
Program Name: SAPLRHGB
Main Program: SAPLRHGB
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function POPUP_TO_CONFIRM_DEL 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_TO_CONFIRM_DEL'".
EXPORTING
* TITEL = "Dialog box title
* REALO_1 = "Object 1: extended object ID
* SHORT_1 = "Object 1: object abbreviation
* STEXT_1 = "Object 1: short description
* OTYPE_2 = "Object 2: object type
* REALO_2 = "Object 2: extended object ID
* SHORT_2 = "Object 2: object abbreviation
* STEXT_2 = "Object 2: short description
* PFKEY = "PF key status
* KEYFLAG = ' ' "'X': display object key
* SHORTFLAG = ' ' "'X': display object abbreviation
BEGDA = "Current start date
ENDDA = "Current end date
* DEFIBEGDA = "Minimum start date
* DEFIENDDA = "Minimum end date
* OTYPE_1 = "Object 1: object type - only when NODETB is empty
IMPORTING
ANSWER = "Reply
DBEGDA = "Selected start date
DENDDA = "Selected end date
CONFL = "Flag: repeat list processing
TABLES
* NODETB = "Table: display of hierarchy
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_SAPLRHGB_001 Additional information on / off
EXIT_SAPLRHGB_002 Text Fill Customer-Specific Field
EXIT_SAPLRHGB_003 Header Fill Customer-Specific Field
IMPORTING Parameters details for POPUP_TO_CONFIRM_DEL
TITEL - Dialog box title
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
REALO_1 - Object 1: extended object ID
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SHORT_1 - Object 1: object abbreviation
Data type: OBJEC-SHORTOptional: Yes
Call by Reference: No ( called with pass by value option)
STEXT_1 - Object 1: short description
Data type: OBJEC-STEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE_2 - Object 2: object type
Data type: OBJEC-OTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
REALO_2 - Object 2: extended object ID
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SHORT_2 - Object 2: object abbreviation
Data type: OBJEC-SHORTOptional: Yes
Call by Reference: No ( called with pass by value option)
STEXT_2 - Object 2: short description
Data type: OBJEC-STEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
PFKEY - PF key status
Data type: SY-PFKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
KEYFLAG - 'X': display object key
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHORTFLAG - 'X': display object abbreviation
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BEGDA - Current start date
Data type: OBJEC-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
ENDDA - Current end date
Data type: OBJEC-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
DEFIBEGDA - Minimum start date
Data type: OBJEC-ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
DEFIENDDA - Minimum end date
Data type: OBJEC-ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE_1 - Object 1: object type - only when NODETB is empty
Data type: OBJEC-OTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for POPUP_TO_CONFIRM_DEL
ANSWER - Reply
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DBEGDA - Selected start date
Data type: OBJEC-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
DENDDA - Selected end date
Data type: OBJEC-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
CONFL - Flag: repeat list processing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for POPUP_TO_CONFIRM_DEL
NODETB - Table: display of hierarchy
Data type: SNODETEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for POPUP_TO_CONFIRM_DEL 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_titel | TYPE STRING, " | |||
lv_answer | TYPE STRING, " | |||
lt_nodetb | TYPE STANDARD TABLE OF SNODETEXT, " | |||
lv_realo_1 | TYPE SNODETEXT, " | |||
lv_short_1 | TYPE OBJEC-SHORT, " | |||
lv_stext_1 | TYPE OBJEC-STEXT, " | |||
lv_otype_2 | TYPE OBJEC-OTYPE, " | |||
lv_realo_2 | TYPE OBJEC, " | |||
lv_short_2 | TYPE OBJEC-SHORT, " | |||
lv_stext_2 | TYPE OBJEC-STEXT, " | |||
lv_pfkey | TYPE SY-PFKEY, " | |||
lv_dbegda | TYPE OBJEC-BEGDA, " | |||
lv_dendda | TYPE OBJEC-ENDDA, " | |||
lv_keyflag | TYPE C, " SPACE | |||
lv_confl | TYPE C, " | |||
lv_shortflag | TYPE C, " SPACE | |||
lv_begda | TYPE OBJEC-BEGDA, " | |||
lv_endda | TYPE OBJEC-ENDDA, " | |||
lv_defibegda | TYPE OBJEC-ENDDA, " | |||
lv_defiendda | TYPE OBJEC-ENDDA, " | |||
lv_otype_1 | TYPE OBJEC-OTYPE. " |
  CALL FUNCTION 'POPUP_TO_CONFIRM_DEL' " |
EXPORTING | ||
TITEL | = lv_titel | |
REALO_1 | = lv_realo_1 | |
SHORT_1 | = lv_short_1 | |
STEXT_1 | = lv_stext_1 | |
OTYPE_2 | = lv_otype_2 | |
REALO_2 | = lv_realo_2 | |
SHORT_2 | = lv_short_2 | |
STEXT_2 | = lv_stext_2 | |
PFKEY | = lv_pfkey | |
KEYFLAG | = lv_keyflag | |
SHORTFLAG | = lv_shortflag | |
BEGDA | = lv_begda | |
ENDDA | = lv_endda | |
DEFIBEGDA | = lv_defibegda | |
DEFIENDDA | = lv_defiendda | |
OTYPE_1 | = lv_otype_1 | |
IMPORTING | ||
ANSWER | = lv_answer | |
DBEGDA | = lv_dbegda | |
DENDDA | = lv_dendda | |
CONFL | = lv_confl | |
TABLES | ||
NODETB | = lt_nodetb | |
. " POPUP_TO_CONFIRM_DEL |
ABAP code using 7.40 inline data declarations to call FM POPUP_TO_CONFIRM_DEL
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 SHORT FROM OBJEC INTO @DATA(ld_short_1). | ||||
"SELECT single STEXT FROM OBJEC INTO @DATA(ld_stext_1). | ||||
"SELECT single OTYPE FROM OBJEC INTO @DATA(ld_otype_2). | ||||
"SELECT single SHORT FROM OBJEC INTO @DATA(ld_short_2). | ||||
"SELECT single STEXT FROM OBJEC INTO @DATA(ld_stext_2). | ||||
"SELECT single PFKEY FROM SY INTO @DATA(ld_pfkey). | ||||
"SELECT single BEGDA FROM OBJEC INTO @DATA(ld_dbegda). | ||||
"SELECT single ENDDA FROM OBJEC INTO @DATA(ld_dendda). | ||||
DATA(ld_keyflag) | = ' '. | |||
DATA(ld_shortflag) | = ' '. | |||
"SELECT single BEGDA FROM OBJEC INTO @DATA(ld_begda). | ||||
"SELECT single ENDDA FROM OBJEC INTO @DATA(ld_endda). | ||||
"SELECT single ENDDA FROM OBJEC INTO @DATA(ld_defibegda). | ||||
"SELECT single ENDDA FROM OBJEC INTO @DATA(ld_defiendda). | ||||
"SELECT single OTYPE FROM OBJEC INTO @DATA(ld_otype_1). | ||||
Search for further information about these or an SAP related objects