2019 Mar 15 8:32 AM
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.
2019 Mar 15 8:55 AM
error at which line?
if its error in DATA(lv_tabix) = sy-tabix, i guess your sap version is not support inline declaration.
2019 Mar 15 9:39 AM
Please use the CODE button to format your code so that it's more friendly for reading.
2019 Mar 15 10:09 AM
Don't use forms. They're obsolete.
2019 Apr 30 8:54 AM
As everyone pointed out: