SAP Function Modules

HELP_COLOUR_VALUES_GET SAP Function module







HELP_COLOUR_VALUES_GET 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 HELP_COLOUR_VALUES_GET into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM HELP_COLOUR_VALUES_GET - HELP COLOUR VALUES GET





CALL FUNCTION 'HELP_COLOUR_VALUES_GET' "
* EXPORTING
*   i_hicol = SPACE             " t242h-hicol
*   i_text0 = SPACE             " t2410-text0
*   i_hieid =                   " t242h-hieid
*   i_poiup = 0                 " t242h-poiup
*   i_cltyp = 'B'               " t242h-cltyp
  IMPORTING
    e_hicol =                   " t242h-hicol
    e_text0 =                   " t2410-text0
* TABLES
*   hierarchy_table =           " cfth2412
    .  "  HELP_COLOUR_VALUES_GET

ABAP code example for Function Module HELP_COLOUR_VALUES_GET





The ABAP code below is a full code listing to execute function module HELP_COLOUR_VALUES_GET 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:
ld_e_hicol  TYPE T242H-HICOL ,
ld_e_text0  TYPE T2410-TEXT0 ,
it_hierarchy_table  TYPE STANDARD TABLE OF CFTH2412,"TABLES PARAM
wa_hierarchy_table  LIKE LINE OF it_hierarchy_table .


SELECT single HICOL
FROM T242H
INTO @DATA(ld_i_hicol).


SELECT single TEXT0
FROM T2410
INTO @DATA(ld_i_text0).


SELECT single HIEID
FROM T242H
INTO @DATA(ld_i_hieid).


SELECT single POIUP
FROM T242H
INTO @DATA(ld_i_poiup).


SELECT single CLTYP
FROM T242H
INTO @DATA(ld_i_cltyp).


"populate fields of struture and append to itab
append wa_hierarchy_table to it_hierarchy_table. . CALL FUNCTION 'HELP_COLOUR_VALUES_GET' * EXPORTING * i_hicol = ld_i_hicol * i_text0 = ld_i_text0 * i_hieid = ld_i_hieid * i_poiup = ld_i_poiup * i_cltyp = ld_i_cltyp IMPORTING e_hicol = ld_e_hicol e_text0 = ld_e_text0 * TABLES * hierarchy_table = it_hierarchy_table . " HELP_COLOUR_VALUES_GET
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_e_hicol  TYPE T242H-HICOL ,
ld_i_hicol  TYPE T242H-HICOL ,
it_hierarchy_table  TYPE STANDARD TABLE OF CFTH2412 ,
wa_hierarchy_table  LIKE LINE OF it_hierarchy_table,
ld_e_text0  TYPE T2410-TEXT0 ,
ld_i_text0  TYPE T2410-TEXT0 ,
ld_i_hieid  TYPE T242H-HIEID ,
ld_i_poiup  TYPE T242H-POIUP ,
ld_i_cltyp  TYPE T242H-CLTYP .


SELECT single HICOL
FROM T242H
INTO ld_i_hicol.


"populate fields of struture and append to itab
append wa_hierarchy_table to it_hierarchy_table.

SELECT single TEXT0
FROM T2410
INTO ld_i_text0.


SELECT single HIEID
FROM T242H
INTO ld_i_hieid.


SELECT single POIUP
FROM T242H
INTO ld_i_poiup.


SELECT single CLTYP
FROM T242H
INTO ld_i_cltyp.

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 HELP_COLOUR_VALUES_GET or its description.