SAP Function Modules

CONDITION_TYPE_TEXT_GET SAP Function module







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

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


Pattern for FM CONDITION_TYPE_TEXT_GET - CONDITION TYPE TEXT GET





CALL FUNCTION 'CONDITION_TYPE_TEXT_GET' "
  EXPORTING
*   i_langu = SY-LANGU          " t002-spras
*   i_rantyp = '3'              " tzk0a-rantyp
    i_skoart =                  " tzk0a-skoart
  IMPORTING
    e_xkoartk =                 " tzk0a-xkoartk
    e_xkoartm =                 " tzk0a-xkoartm
    e_xkoartl =                 " tzk0a-xkoartl
* TABLES
*   t_c_errors =                " sprot_u
  EXCEPTIONS
    TEXT_NOT_FOUND = 1          "
    .  "  CONDITION_TYPE_TEXT_GET

ABAP code example for Function Module CONDITION_TYPE_TEXT_GET





The ABAP code below is a full code listing to execute function module CONDITION_TYPE_TEXT_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_xkoartk  TYPE TZK0A-XKOARTK ,
ld_e_xkoartm  TYPE TZK0A-XKOARTM ,
ld_e_xkoartl  TYPE TZK0A-XKOARTL ,
it_t_c_errors  TYPE STANDARD TABLE OF SPROT_U,"TABLES PARAM
wa_t_c_errors  LIKE LINE OF it_t_c_errors .


SELECT single SPRAS
FROM T002
INTO @DATA(ld_i_langu).


SELECT single RANTYP
FROM TZK0A
INTO @DATA(ld_i_rantyp).


SELECT single SKOART
FROM TZK0A
INTO @DATA(ld_i_skoart).


"populate fields of struture and append to itab
append wa_t_c_errors to it_t_c_errors. . CALL FUNCTION 'CONDITION_TYPE_TEXT_GET' EXPORTING * i_langu = ld_i_langu * i_rantyp = ld_i_rantyp i_skoart = ld_i_skoart IMPORTING e_xkoartk = ld_e_xkoartk e_xkoartm = ld_e_xkoartm e_xkoartl = ld_e_xkoartl * TABLES * t_c_errors = it_t_c_errors EXCEPTIONS TEXT_NOT_FOUND = 1 . " CONDITION_TYPE_TEXT_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_xkoartk  TYPE TZK0A-XKOARTK ,
ld_i_langu  TYPE T002-SPRAS ,
it_t_c_errors  TYPE STANDARD TABLE OF SPROT_U ,
wa_t_c_errors  LIKE LINE OF it_t_c_errors,
ld_e_xkoartm  TYPE TZK0A-XKOARTM ,
ld_i_rantyp  TYPE TZK0A-RANTYP ,
ld_e_xkoartl  TYPE TZK0A-XKOARTL ,
ld_i_skoart  TYPE TZK0A-SKOART .


SELECT single SPRAS
FROM T002
INTO ld_i_langu.


"populate fields of struture and append to itab
append wa_t_c_errors to it_t_c_errors.

SELECT single RANTYP
FROM TZK0A
INTO ld_i_rantyp.


SELECT single SKOART
FROM TZK0A
INTO ld_i_skoart.

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