SAP TITEL_SETZEN Function Module for NOTRANSL: Ermitteln der variablen Teile für die Bildtitel









TITEL_SETZEN is a standard titel setzen SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Ermitteln der variablen Teile für die Bildtitel 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 titel setzen FM, simply by entering the name TITEL_SETZEN into the relevant SAP transaction such as SE37 or SE38.

Function Group: MG01
Program Name: SAPLMG01
Main Program: SAPLMG01
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TITEL_SETZEN 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 'TITEL_SETZEN'"NOTRANSL: Ermitteln der variablen Teile für die Bildtitel
EXPORTING
* KZRFB = ' ' "
* P_MATNR = "
P_AUSWG = "
P_BILDS = "Screen sequence number
P_BRANCHE = "Industry sector description
P_MTART = "Material Type
P_TGRUP = "Transaction Group
* P_TCODE = SY-TCODE "
* P_MBBEZ = ' ' "Description
* P_MTBEZ = ' ' "

IMPORTING
P_ITITEL = "
P_KZ_TITEL_AEN = "

EXCEPTIONS
WRONG_CALL = 1
.



IMPORTING Parameters details for TITEL_SETZEN

KZRFB -

Data type: MTCOM-KZRFB
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_MATNR -

Data type: MATNR
Optional: Yes
Call by Reference: Yes

P_AUSWG -

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

P_BILDS - Screen sequence number

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

P_BRANCHE - Industry sector description

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

P_MTART - Material Type

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

P_TGRUP - Transaction Group

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

P_TCODE -

Data type: SY-TCODE
Default: SY-TCODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_MBBEZ - Description

Data type: T137T-MBBEZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_MTBEZ -

Data type: T134T-MTBEZ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TITEL_SETZEN

P_ITITEL -

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

P_KZ_TITEL_AEN -

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

EXCEPTIONS details

WRONG_CALL -

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

Copy and paste ABAP code example for TITEL_SETZEN 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_kzrfb  TYPE MTCOM-KZRFB, "   ' '
lv_p_ititel  TYPE SY-TITLE, "   
lv_wrong_call  TYPE SY, "   
lv_p_matnr  TYPE MATNR, "   
lv_p_auswg  TYPE T133A-AUSWG, "   
lv_p_kz_titel_aen  TYPE SY-DATAR, "   
lv_p_bilds  TYPE T133A-BILDS, "   
lv_p_branche  TYPE MARA-MBRSH, "   
lv_p_mtart  TYPE MARA-MTART, "   
lv_p_tgrup  TYPE T130M-TGRUP, "   
lv_p_tcode  TYPE SY-TCODE, "   SY-TCODE
lv_p_mbbez  TYPE T137T-MBBEZ, "   SPACE
lv_p_mtbez  TYPE T134T-MTBEZ. "   SPACE

  CALL FUNCTION 'TITEL_SETZEN'  "NOTRANSL: Ermitteln der variablen Teile für die Bildtitel
    EXPORTING
         KZRFB = lv_kzrfb
         P_MATNR = lv_p_matnr
         P_AUSWG = lv_p_auswg
         P_BILDS = lv_p_bilds
         P_BRANCHE = lv_p_branche
         P_MTART = lv_p_mtart
         P_TGRUP = lv_p_tgrup
         P_TCODE = lv_p_tcode
         P_MBBEZ = lv_p_mbbez
         P_MTBEZ = lv_p_mtbez
    IMPORTING
         P_ITITEL = lv_p_ititel
         P_KZ_TITEL_AEN = lv_p_kz_titel_aen
    EXCEPTIONS
        WRONG_CALL = 1
. " TITEL_SETZEN




ABAP code using 7.40 inline data declarations to call FM TITEL_SETZEN

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 KZRFB FROM MTCOM INTO @DATA(ld_kzrfb).
DATA(ld_kzrfb) = ' '.
 
"SELECT single TITLE FROM SY INTO @DATA(ld_p_ititel).
 
 
 
"SELECT single AUSWG FROM T133A INTO @DATA(ld_p_auswg).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_p_kz_titel_aen).
 
"SELECT single BILDS FROM T133A INTO @DATA(ld_p_bilds).
 
"SELECT single MBRSH FROM MARA INTO @DATA(ld_p_branche).
 
"SELECT single MTART FROM MARA INTO @DATA(ld_p_mtart).
 
"SELECT single TGRUP FROM T130M INTO @DATA(ld_p_tgrup).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_p_tcode).
DATA(ld_p_tcode) = SY-TCODE.
 
"SELECT single MBBEZ FROM T137T INTO @DATA(ld_p_mbbez).
DATA(ld_p_mbbez) = ' '.
 
"SELECT single MTBEZ FROM T134T INTO @DATA(ld_p_mtbez).
DATA(ld_p_mtbez) = ' '.
 


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!