SAP CNET_SET_POPUP_DATA Function Module for Deliver data to dialog box









CNET_SET_POPUP_DATA is a standard cnet set popup data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Deliver data to dialog box 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 cnet set popup data FM, simply by entering the name CNET_SET_POPUP_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNET
Program Name: SAPLCNET
Main Program:
Appliation area: S
Release date: 15-Jun-1998
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CNET_SET_POPUP_DATA 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 'CNET_SET_POPUP_DATA'"Deliver data to dialog box
EXPORTING
* OBJECT = "Dialog box objekt
* ID = "Identification
* TEXT = "Name
* HELP_TEXT = "Help text

TABLES
* MENU_LIST = "Status to be expanded
* NOT_FOUND_LIST = "List of statuses not found

EXCEPTIONS
INV_OBJECT = 1 STATUS_ERR = 2
.



IMPORTING Parameters details for CNET_SET_POPUP_DATA

OBJECT - Dialog box objekt

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

ID - Identification

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

TEXT - Name

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

HELP_TEXT - Help text

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

TABLES Parameters details for CNET_SET_POPUP_DATA

MENU_LIST - Status to be expanded

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

NOT_FOUND_LIST - List of statuses not found

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

EXCEPTIONS details

INV_OBJECT - Incorrect dialog box object

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

STATUS_ERR - Error when determining status

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

Copy and paste ABAP code example for CNET_SET_POPUP_DATA 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_object  TYPE NET_NVALS-FL, "   
lt_menu_list  TYPE STANDARD TABLE OF BCIDLIST, "   
lv_inv_object  TYPE BCIDLIST, "   
lv_id  TYPE NET_GRAPH-GR_MODE, "   
lv_status_err  TYPE NET_GRAPH, "   
lt_not_found_list  TYPE STANDARD TABLE OF RSEUL_STAT, "   
lv_text  TYPE NET_NVALS-VAL, "   
lv_help_text  TYPE NET_NVALS-VAL. "   

  CALL FUNCTION 'CNET_SET_POPUP_DATA'  "Deliver data to dialog box
    EXPORTING
         OBJECT = lv_object
         ID = lv_id
         TEXT = lv_text
         HELP_TEXT = lv_help_text
    TABLES
         MENU_LIST = lt_menu_list
         NOT_FOUND_LIST = lt_not_found_list
    EXCEPTIONS
        INV_OBJECT = 1
        STATUS_ERR = 2
. " CNET_SET_POPUP_DATA




ABAP code using 7.40 inline data declarations to call FM CNET_SET_POPUP_DATA

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 FL FROM NET_NVALS INTO @DATA(ld_object).
 
 
 
"SELECT single GR_MODE FROM NET_GRAPH INTO @DATA(ld_id).
 
 
 
"SELECT single VAL FROM NET_NVALS INTO @DATA(ld_text).
 
"SELECT single VAL FROM NET_NVALS INTO @DATA(ld_help_text).
 


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!