SAP Function Modules

RTF_EDITOR_CREATE_FRAME SAP Function module







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

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


Pattern for FM RTF_EDITOR_CREATE_FRAME - RTF EDITOR CREATE FRAME





CALL FUNCTION 'RTF_EDITOR_CREATE_FRAME' "
  EXPORTING
    repid =                     " sy-repid
    dynnr =                     " sy-dynnr
*   container = SPACE           " c
*   no_flush = SPACE            " c
*   left = 1                    " i
*   top = 1                     " i
*   width = 80                  " i
*   height = 24                 " i
*   metric = CNTL_METRIC_DYNPRO  " cntl_metric
*   parentid =                  " i
*   control_style =             " i
*   alignment_style =           " i
*   register_single_click_tb = 'X'  " c
*   callback_single_click_tb = SPACE  " c
*   register_enter = SPACE      " c
*   callback_enter = SPACE      " c
*   register_delete_par = SPACE  " c
*   callback_delete_par = SPACE  " c
*   register_ctrl_v = SPACE     " c
*   callback_ctrl_v = SPACE     " c
  IMPORTING
    handle =                    " cntl_handle
    frame_id =                  " i
  EXCEPTIONS
    CREATE_ERROR = 1            "
    .  "  RTF_EDITOR_CREATE_FRAME

ABAP code example for Function Module RTF_EDITOR_CREATE_FRAME





The ABAP code below is a full code listing to execute function module RTF_EDITOR_CREATE_FRAME 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_handle  TYPE CNTL_HANDLE ,
ld_frame_id  TYPE I .

DATA(ld_repid) = 'some text here'.
DATA(ld_dynnr) = 'some text here'.
DATA(ld_container) = 'some text here'.
DATA(ld_no_flush) = 'some text here'.
DATA(ld_left) = 'some text here'.
DATA(ld_top) = 'some text here'.
DATA(ld_width) = 'some text here'.
DATA(ld_height) = 'some text here'.
DATA(ld_metric) = 'some text here'.
DATA(ld_parentid) = 'some text here'.
DATA(ld_control_style) = 'some text here'.
DATA(ld_alignment_style) = 'some text here'.
DATA(ld_register_single_click_tb) = 'some text here'.
DATA(ld_callback_single_click_tb) = 'some text here'.
DATA(ld_register_enter) = 'some text here'.
DATA(ld_callback_enter) = 'some text here'.
DATA(ld_register_delete_par) = 'some text here'.
DATA(ld_callback_delete_par) = 'some text here'.
DATA(ld_register_ctrl_v) = 'some text here'.
DATA(ld_callback_ctrl_v) = 'some text here'. . CALL FUNCTION 'RTF_EDITOR_CREATE_FRAME' EXPORTING repid = ld_repid dynnr = ld_dynnr * container = ld_container * no_flush = ld_no_flush * left = ld_left * top = ld_top * width = ld_width * height = ld_height * metric = ld_metric * parentid = ld_parentid * control_style = ld_control_style * alignment_style = ld_alignment_style * register_single_click_tb = ld_register_single_click_tb * callback_single_click_tb = ld_callback_single_click_tb * register_enter = ld_register_enter * callback_enter = ld_callback_enter * register_delete_par = ld_register_delete_par * callback_delete_par = ld_callback_delete_par * register_ctrl_v = ld_register_ctrl_v * callback_ctrl_v = ld_callback_ctrl_v IMPORTING handle = ld_handle frame_id = ld_frame_id EXCEPTIONS CREATE_ERROR = 1 . " RTF_EDITOR_CREATE_FRAME
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_handle  TYPE CNTL_HANDLE ,
ld_repid  TYPE SY-REPID ,
ld_frame_id  TYPE I ,
ld_dynnr  TYPE SY-DYNNR ,
ld_container  TYPE C ,
ld_no_flush  TYPE C ,
ld_left  TYPE I ,
ld_top  TYPE I ,
ld_width  TYPE I ,
ld_height  TYPE I ,
ld_metric  TYPE CNTL_METRIC ,
ld_parentid  TYPE I ,
ld_control_style  TYPE I ,
ld_alignment_style  TYPE I ,
ld_register_single_click_tb  TYPE C ,
ld_callback_single_click_tb  TYPE C ,
ld_register_enter  TYPE C ,
ld_callback_enter  TYPE C ,
ld_register_delete_par  TYPE C ,
ld_callback_delete_par  TYPE C ,
ld_register_ctrl_v  TYPE C ,
ld_callback_ctrl_v  TYPE C .

ld_repid = 'some text here'.
ld_dynnr = 'some text here'.
ld_container = 'some text here'.
ld_no_flush = 'some text here'.
ld_left = 'some text here'.
ld_top = 'some text here'.
ld_width = 'some text here'.
ld_height = 'some text here'.
ld_metric = 'some text here'.
ld_parentid = 'some text here'.
ld_control_style = 'some text here'.
ld_alignment_style = 'some text here'.
ld_register_single_click_tb = 'some text here'.
ld_callback_single_click_tb = 'some text here'.
ld_register_enter = 'some text here'.
ld_callback_enter = 'some text here'.
ld_register_delete_par = 'some text here'.
ld_callback_delete_par = 'some text here'.
ld_register_ctrl_v = 'some text here'.
ld_callback_ctrl_v = 'some text here'.

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