SAP Function Modules

BI_EDIT_DATA SAP Function module - Outputs Fields with Name and Content for a Table







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

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


Pattern for FM BI_EDIT_DATA - BI EDIT DATA





CALL FUNCTION 'BI_EDIT_DATA' "Outputs Fields with Name and Content for a Table
  EXPORTING
*   list_title = ' '            "               Title of list
    alter_allowed =             "               X == Changes allowed
*   create_tables_statement = 'X'  "            Tables statement will be generated
*   nodata_sign = ' '           "               Character for "no data"
*   display_only_data = ' '     "               Only data will be displayed, no structure information
*   display_data_offset = 0     "
  IMPORTING
    save_pressed =              "               F11 pressed
  TABLES
    disp_data =                 " tedata        Data to be displayed
  CHANGING
    data_altered =              "               Data changed
  EXCEPTIONS
    NO_TABLES_STATEMENT = 1     "               No TABLES statement in function group; generated
    .  "  BI_EDIT_DATA

ABAP code example for Function Module BI_EDIT_DATA





The ABAP code below is a full code listing to execute function module BI_EDIT_DATA 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_save_pressed  TYPE STRING ,
it_disp_data  TYPE STANDARD TABLE OF TEDATA,"TABLES PARAM
wa_disp_data  LIKE LINE OF it_disp_data .

DATA(ld_data_altered) = 'some text here'.
DATA(ld_list_title) = 'some text here'.
DATA(ld_alter_allowed) = 'some text here'.
DATA(ld_create_tables_statement) = 'some text here'.
DATA(ld_nodata_sign) = 'some text here'.
DATA(ld_display_only_data) = 'some text here'.
DATA(ld_display_data_offset) = 'some text here'.

"populate fields of struture and append to itab
append wa_disp_data to it_disp_data. . CALL FUNCTION 'BI_EDIT_DATA' EXPORTING * list_title = ld_list_title alter_allowed = ld_alter_allowed * create_tables_statement = ld_create_tables_statement * nodata_sign = ld_nodata_sign * display_only_data = ld_display_only_data * display_data_offset = ld_display_data_offset IMPORTING save_pressed = ld_save_pressed TABLES disp_data = it_disp_data CHANGING data_altered = ld_data_altered EXCEPTIONS NO_TABLES_STATEMENT = 1 . " BI_EDIT_DATA
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_data_altered  TYPE STRING ,
ld_save_pressed  TYPE STRING ,
ld_list_title  TYPE STRING ,
it_disp_data  TYPE STANDARD TABLE OF TEDATA ,
wa_disp_data  LIKE LINE OF it_disp_data,
ld_alter_allowed  TYPE STRING ,
ld_create_tables_statement  TYPE STRING ,
ld_nodata_sign  TYPE STRING ,
ld_display_only_data  TYPE STRING ,
ld_display_data_offset  TYPE STRING .

ld_data_altered = 'some text here'.
ld_list_title = 'some text here'.

"populate fields of struture and append to itab
append wa_disp_data to it_disp_data.
ld_alter_allowed = 'some text here'.
ld_create_tables_statement = 'some text here'.
ld_nodata_sign = 'some text here'.
ld_display_only_data = 'some text here'.
ld_display_data_offset = '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 BI_EDIT_DATA or its description.