Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Field "DATA" is unknown. It is neither in one of the specified tables

0 Kudos

Anybody help me? this is my code

I got an error message Field "DATA" is unknown. It is neither in one of the specified tables

IF sy-subrc EQ 0.
DATA(lv_tabix) = sy-tabix.
LOOP AT gt_config ASSIGNING FIELD-SYMBOL(<lfs_cfg>) FROM lv_tabix.
IF <lfs_cfg>-field NE 'DATE_FIELDS'.
EXIT.
ENDIF.

zcl_abap_gen_util=>add_2_range(
EXPORTING im_low = <lfs_cfg>-value
CHANGING ch_range_tab = lr_date_flds ).

ENDLOOP.
ENDIF.

FORM progress_bar USING p_value
p_tabix.
DATA: lv_text(40),
lv_tabix TYPE char4,
lv_percent_char(3).
lv_tabix = sy-tabix.
SHIFT lv_percent_char LEFT DELETING LEADING ' '.
CONCATENATE p_value lv_tabix '% Complete'(012) INTO lv_text.
* This check needs to be in otherwise when looping around big tables
* SAP will re-display indicator too many times causing report to run
* very slow. (No need to re-display same percentage anyway)
* IF lv_percentage GT gd_percent OR p_tabix EQ 1.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* percentage = lv_percentage
text = lv_text.
* gd_percent = lv_percentage.
* ENDIF.
ENDFORM.

4 REPLIES 4

DoanManhQuynh
Active Contributor

error at which line?

if its error in DATA(lv_tabix) = sy-tabix, i guess your sap version is not support inline declaration.

Sandra_Rossi
Active Contributor

Please use the CODE button to format your code so that it's more friendly for reading.

matt
Active Contributor
0 Kudos

Don't use forms. They're obsolete.

former_member607412
Participant

As everyone pointed out:

  1. You need to edit the question, and put the code under the 'Code' button.
  2. Let us know which line number is the error from. Are you trying to write ABAP 7.4+ code on an older ECC system?