Здравствуйте, трассировка работы функции CLAF_CLASSIFICATION_OF_OBJECTS показала большое количество запросов к таблице UST12, из-за чего отчет тормозит.
Если нужно получить данные, как ниже, какую более быструю функцию использовать?
Code:
DATA: e_matkl TYPE mtart.
DATA:
t_class_p TYPE sclass OCCURS 0,
t_objectdata_p TYPE clobjdat OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
class = 'IPDM_F0101' "Product Category
classtext = 'X'
classtype = '001'
clint = '0000000032'
language = sy-langu
object = 'FA000600'
key_date = sy-datum
initial_charact = 'X'
no_value_descript = 'X'
inherited_char = 'X'
objecttable = 'MARA'
TABLES
t_class = t_class_p
t_objectdata = t_objectdata_p
EXCEPTIONS
no_classification = 1
invalid_class_type = 2.
IF sy-subrc IS INITIAL.
READ TABLE t_objectdata_p WITH KEY atnam = 'IPDM_PRDCT'.
IF sy-subrc IS INITIAL.
e_matkl = t_objectdata_p-ausp1.
ENDIF.
ENDIF.
Age: 165 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Wed Sep 30, 2009 4:42 pm Post subject:
Добавьте ограничивающий параметр i_sel_characteristic, должно ускорить.
Code:
DATA: e_matkl TYPE mtart.
DATA:
t_class_p TYPE sclass OCCURS 0,
t_objectdata_p TYPE clobjdat OCCURS 0 WITH HEADER LINE.
DATA:
t_sel_char TYPE sel_char OCCURS 0 WITH HEADER LINE.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.