SAP Function Modules

CH_GUI_SINGLE_RADIOBUTTON SAP Function module







CH_GUI_SINGLE_RADIOBUTTON is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CH_GUI_SINGLE_RADIOBUTTON into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CHGU
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CH_GUI_SINGLE_RADIOBUTTON - CH GUI SINGLE RADIOBUTTON





CALL FUNCTION 'CH_GUI_SINGLE_RADIOBUTTON' "
  EXPORTING
    dnum =                      " d020s-dnum    Screen Number
    prog =                      " d020s-prog    Program Name
*   type = SPACE                " d020s-type
  TABLES
    fields =                    " d021s         Screen Fields
    treffer =                   " ttref         Hits
    .  "  CH_GUI_SINGLE_RADIOBUTTON

ABAP code example for Function Module CH_GUI_SINGLE_RADIOBUTTON





The ABAP code below is a full code listing to execute function module CH_GUI_SINGLE_RADIOBUTTON including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_fields  TYPE STANDARD TABLE OF D021S,"TABLES PARAM
wa_fields  LIKE LINE OF it_fields ,
it_treffer  TYPE STANDARD TABLE OF TTREF,"TABLES PARAM
wa_treffer  LIKE LINE OF it_treffer .


SELECT single DNUM
FROM D020S
INTO @DATA(ld_dnum).


SELECT single PROG
FROM D020S
INTO @DATA(ld_prog).


SELECT single TYPE
FROM D020S
INTO @DATA(ld_type).


"populate fields of struture and append to itab
append wa_fields to it_fields.

"populate fields of struture and append to itab
append wa_treffer to it_treffer. . CALL FUNCTION 'CH_GUI_SINGLE_RADIOBUTTON' EXPORTING dnum = ld_dnum prog = ld_prog * type = ld_type TABLES fields = it_fields treffer = it_treffer . " CH_GUI_SINGLE_RADIOBUTTON
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_dnum  TYPE D020S-DNUM ,
it_fields  TYPE STANDARD TABLE OF D021S ,
wa_fields  LIKE LINE OF it_fields,
ld_prog  TYPE D020S-PROG ,
it_treffer  TYPE STANDARD TABLE OF TTREF ,
wa_treffer  LIKE LINE OF it_treffer,
ld_type  TYPE D020S-TYPE .


SELECT single DNUM
FROM D020S
INTO ld_dnum.


"populate fields of struture and append to itab
append wa_fields to it_fields.

SELECT single PROG
FROM D020S
INTO ld_prog.


"populate fields of struture and append to itab
append wa_treffer to it_treffer.

SELECT single TYPE
FROM D020S
INTO ld_type.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CH_GUI_SINGLE_RADIOBUTTON or its description.