SAP SPP02_GET_TEXTTYPES Function Module for Get the list of texts vaild for an appln. object









SPP02_GET_TEXTTYPES is a standard spp02 get texttypes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get the list of texts vaild for an appln. object 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 spp02 get texttypes FM, simply by entering the name SPP02_GET_TEXTTYPES into the relevant SAP transaction such as SE37 or SE38.

Function Group: SPP02
Program Name: SAPLSPP02
Main Program: SAPLSPP02
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SPP02_GET_TEXTTYPES 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 'SPP02_GET_TEXTTYPES'"Get the list of texts vaild for an appln. object
EXPORTING
* IF_LANGUAGE = "Language key
* IF_APPLNOBJ = 'VBBP' "Texts: application object
* IF_MATERIAL = "Material number
* IF_ORDER_TYPE = "Sales document type
* IF_ITEM_CATEG = "Sales document item category
* IS_SALESAREA = "customer sales data

TABLES
ET_TEXTS = "Sales texts
ET_RETURN = "Return parameter
.



IMPORTING Parameters details for SPP02_GET_TEXTTYPES

IF_LANGUAGE - Language key

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

IF_APPLNOBJ - Texts: application object

Data type: TDOBJECT
Default: 'VBBP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_MATERIAL - Material number

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

IF_ORDER_TYPE - Sales document type

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

IF_ITEM_CATEG - Sales document item category

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

IS_SALESAREA - customer sales data

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

TABLES Parameters details for SPP02_GET_TEXTTYPES

ET_TEXTS - Sales texts

Data type: SPPTEXT
Optional: No
Call by Reference: Yes

ET_RETURN - Return parameter

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SPP02_GET_TEXTTYPES 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:
lt_et_texts  TYPE STANDARD TABLE OF SPPTEXT, "   
lv_if_language  TYPE SPRAS, "   
lt_et_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_if_applnobj  TYPE TDOBJECT, "   'VBBP'
lv_if_material  TYPE MATNR, "   
lv_if_order_type  TYPE AUART, "   
lv_if_item_categ  TYPE PSTYV, "   
lv_is_salesarea  TYPE SPPCUSTSTR. "   

  CALL FUNCTION 'SPP02_GET_TEXTTYPES'  "Get the list of texts vaild for an appln. object
    EXPORTING
         IF_LANGUAGE = lv_if_language
         IF_APPLNOBJ = lv_if_applnobj
         IF_MATERIAL = lv_if_material
         IF_ORDER_TYPE = lv_if_order_type
         IF_ITEM_CATEG = lv_if_item_categ
         IS_SALESAREA = lv_is_salesarea
    TABLES
         ET_TEXTS = lt_et_texts
         ET_RETURN = lt_et_return
. " SPP02_GET_TEXTTYPES




ABAP code using 7.40 inline data declarations to call FM SPP02_GET_TEXTTYPES

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.

 
 
 
DATA(ld_if_applnobj) = 'VBBP'.
 
 
 
 
 


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!