SAP Function Modules

STERM_RFC_KEYWORDS_MAINTENANCE SAP Function module







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

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


Pattern for FM STERM_RFC_KEYWORDS_MAINTENANCE - STERM RFC KEYWORDS MAINTENANCE





CALL FUNCTION 'STERM_RFC_KEYWORDS_MAINTENANCE' "
  EXPORTING
    system_id =                 " sy-sysid
    system_user =               " sy-uname
    source_langu =              " sy-langu
*   target_langu = 'E'          " sy-langu
    begriff =                   " sterm_text-text
    component =                 " sterm_head-component
    mode =                      " bapiflag
*   first_release =             " sterm_xtnd-rel
*   industry = ' '              " sterm_xtnd-id
*   country = ' '               " sterm_link-country
* TABLES
*   references =                " sterm_ref
  CHANGING
    concept =                   " sterm_head-concept
  EXCEPTIONS
    RFC_FAILURE = 1             "
    .  "  STERM_RFC_KEYWORDS_MAINTENANCE

ABAP code example for Function Module STERM_RFC_KEYWORDS_MAINTENANCE





The ABAP code below is a full code listing to execute function module STERM_RFC_KEYWORDS_MAINTENANCE 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_references  TYPE STANDARD TABLE OF STERM_REF,"TABLES PARAM
wa_references  LIKE LINE OF it_references .


SELECT single CONCEPT
FROM STERM_HEAD
INTO @DATA(ld_concept).

DATA(ld_system_id) = 'Check type of data required'.
DATA(ld_system_user) = 'some text here'.
DATA(ld_source_langu) = 'Check type of data required'.
DATA(ld_target_langu) = 'Check type of data required'.

SELECT single TEXT
FROM STERM_TEXT
INTO @DATA(ld_begriff).


SELECT single COMPONENT
FROM STERM_HEAD
INTO @DATA(ld_component).

DATA(ld_mode) = 'Check type of data required'.

SELECT single REL
FROM STERM_XTND
INTO @DATA(ld_first_release).


SELECT single ID
FROM STERM_XTND
INTO @DATA(ld_industry).


SELECT single COUNTRY
FROM STERM_LINK
INTO @DATA(ld_country).


"populate fields of struture and append to itab
append wa_references to it_references. . CALL FUNCTION 'STERM_RFC_KEYWORDS_MAINTENANCE' EXPORTING system_id = ld_system_id system_user = ld_system_user source_langu = ld_source_langu * target_langu = ld_target_langu begriff = ld_begriff component = ld_component mode = ld_mode * first_release = ld_first_release * industry = ld_industry * country = ld_country * TABLES * references = it_references CHANGING concept = ld_concept EXCEPTIONS RFC_FAILURE = 1 . " STERM_RFC_KEYWORDS_MAINTENANCE
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_concept  TYPE STERM_HEAD-CONCEPT ,
ld_system_id  TYPE SY-SYSID ,
it_references  TYPE STANDARD TABLE OF STERM_REF ,
wa_references  LIKE LINE OF it_references,
ld_system_user  TYPE SY-UNAME ,
ld_source_langu  TYPE SY-LANGU ,
ld_target_langu  TYPE SY-LANGU ,
ld_begriff  TYPE STERM_TEXT-TEXT ,
ld_component  TYPE STERM_HEAD-COMPONENT ,
ld_mode  TYPE BAPIFLAG ,
ld_first_release  TYPE STERM_XTND-REL ,
ld_industry  TYPE STERM_XTND-ID ,
ld_country  TYPE STERM_LINK-COUNTRY .


SELECT single CONCEPT
FROM STERM_HEAD
INTO ld_concept.

ld_system_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_references to it_references.
ld_system_user = 'some text here'.
ld_source_langu = 'Check type of data required'.
ld_target_langu = 'Check type of data required'.

SELECT single TEXT
FROM STERM_TEXT
INTO ld_begriff.


SELECT single COMPONENT
FROM STERM_HEAD
INTO ld_component.

ld_mode = 'Check type of data required'.

SELECT single REL
FROM STERM_XTND
INTO ld_first_release.


SELECT single ID
FROM STERM_XTND
INTO ld_industry.


SELECT single COUNTRY
FROM STERM_LINK
INTO ld_country.

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