SAP KBPS_EDIT_TEXT Function Module for _









KBPS_EDIT_TEXT is a standard kbps edit text SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for _ 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 kbps edit text FM, simply by entering the name KBPS_EDIT_TEXT into the relevant SAP transaction such as SE37 or SE38.

Function Group: KBPS
Program Name: SAPLKBPS
Main Program: SAPLKBPS
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function KBPS_EDIT_TEXT 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 'KBPS_EDIT_TEXT'"_
EXPORTING
* I_EDIT = ' ' "
* I_NO_COMMIT = ' ' "
* I_NO_DIALOG = ' ' "
* I_TEXTID = ' ' "
* I_TEXTNAME = ' ' "Name of standard text
* I_TEXTOBJEKT = 'TEXT' "
* I_EDITOR_TITLE = ' ' "
* I_SHOW = ' ' "
* I_RESTORE = ' ' "

EXCEPTIONS
NO_TEXT = 1
.



IMPORTING Parameters details for KBPS_EDIT_TEXT

I_EDIT -

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

I_NO_COMMIT -

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

I_NO_DIALOG -

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

I_TEXTID -

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

I_TEXTNAME - Name of standard text

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

I_TEXTOBJEKT -

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

I_EDITOR_TITLE -

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

I_SHOW -

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

I_RESTORE -

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

EXCEPTIONS details

NO_TEXT -

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

Copy and paste ABAP code example for KBPS_EDIT_TEXT 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_i_edit  TYPE STRING, "   SPACE
lv_no_text  TYPE STRING, "   
lv_i_no_commit  TYPE STRING, "   SPACE
lv_i_no_dialog  TYPE STRING, "   SPACE
lv_i_textid  TYPE THEAD-TDID, "   SPACE
lv_i_textname  TYPE THEAD-TDNAME, "   SPACE
lv_i_textobjekt  TYPE THEAD-TDOBJECT, "   'TEXT'
lv_i_editor_title  TYPE TTXIT-TDTEXT, "   SPACE
lv_i_show  TYPE TTXIT, "   SPACE
lv_i_restore  TYPE TTXIT. "   SPACE

  CALL FUNCTION 'KBPS_EDIT_TEXT'  "_
    EXPORTING
         I_EDIT = lv_i_edit
         I_NO_COMMIT = lv_i_no_commit
         I_NO_DIALOG = lv_i_no_dialog
         I_TEXTID = lv_i_textid
         I_TEXTNAME = lv_i_textname
         I_TEXTOBJEKT = lv_i_textobjekt
         I_EDITOR_TITLE = lv_i_editor_title
         I_SHOW = lv_i_show
         I_RESTORE = lv_i_restore
    EXCEPTIONS
        NO_TEXT = 1
. " KBPS_EDIT_TEXT




ABAP code using 7.40 inline data declarations to call FM KBPS_EDIT_TEXT

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_i_edit) = ' '.
 
 
DATA(ld_i_no_commit) = ' '.
 
DATA(ld_i_no_dialog) = ' '.
 
"SELECT single TDID FROM THEAD INTO @DATA(ld_i_textid).
DATA(ld_i_textid) = ' '.
 
"SELECT single TDNAME FROM THEAD INTO @DATA(ld_i_textname).
DATA(ld_i_textname) = ' '.
 
"SELECT single TDOBJECT FROM THEAD INTO @DATA(ld_i_textobjekt).
DATA(ld_i_textobjekt) = 'TEXT'.
 
"SELECT single TDTEXT FROM TTXIT INTO @DATA(ld_i_editor_title).
DATA(ld_i_editor_title) = ' '.
 
DATA(ld_i_show) = ' '.
 
DATA(ld_i_restore) = ' '.
 


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!