‎2010 Sep 23 9:31 AM
Hello guys,
I have a problem with BAPI_OBJCL_CREATE. After 30k materials it causes an exception: EXPORT_BUFFER_NO_MEMORY
I've tried to implement a BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK after 10k materials. Also I've implemented the two BAPIs CLAP_DDB_INIT_CLASSIFICATION and CLFM_CLEAR_CLASSIFICATION to clear all tables and fields in buffer.
The result: exception...
Does anyone know how to solve this problem?
Is there a BAPI, which I can give tables with material numbers and characterisitcs and their values and classify them at once?
Greetings,
Sven
‎2010 Sep 23 10:37 AM
Hello Sven!
Try to use this code for initialization instead of CLAP_DDB_INIT_CLASSIFICATION
......
IF lv_cnt >= p_max_pct_size.
lv_cnt = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
CALL FUNCTION 'VB_INIT'
EXPORTING
init_reset = 'X'.
CALL FUNCTION 'VB_INIT'
EXPORTING
init_reset = space.
...
ENDIF.
‎2010 Sep 23 10:37 AM
Hello Sven!
Try to use this code for initialization instead of CLAP_DDB_INIT_CLASSIFICATION
......
IF lv_cnt >= p_max_pct_size.
lv_cnt = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
CALL FUNCTION 'VB_INIT'
EXPORTING
init_reset = 'X'.
CALL FUNCTION 'VB_INIT'
EXPORTING
init_reset = space.
...
ENDIF.
‎2010 Sep 23 11:35 AM
Hello Andrey,
thank your for your answer.
Your suggestion caused a new exception: CONVT_OVERFLOW
It seems that the buffers are cleared now, but there is a new problem.
The call order from my program is as following:
FORM COPY_NN
BAPI_OBJCL_CREATE
CACL_OBJECT_VALIDATION_MAINT
CLAP_DDB_UPDATE_CLASSIFICATION
FORM ALLKSSK_ZAEHL_SET <- causes error
this form counts something. at 32771 the exception CX_SY_CONVERSION_OVERFLOW is thrown.
classification sucks!
‎2010 Sep 23 12:17 PM
Hi!
look at Note 1471329 - CONVT_OVERFLOW in ALLKSSK_ZAEHL_SET
Symptom
During the mass processing of classifications, for example, in
transaction LSMW, an overflow error occurs.
‎2010 Sep 23 1:13 PM
Hi,
there are two notes for the problem.
0001330405 CONVT_OVERFLOW
0001471329 CONVT_OVERFLOW in ALLKSSK_ZAEHL_SET
But none of these does really solve the problem...
I still get CONVT_OVERFLOW...
is there a normal FM for mass-classification? I've more then 10000 materials and they should receive 2 characteristics.
I tried FM CLMM_SET_CLASSIFICATIONS, but there is no documentation for, so it won't work...
‎2010 Sep 24 9:48 AM
Problem solved!
The program-error before SNOTE 1471329 generated count-numbers in table KSSK greater than 32770. This numbers caused now the CONVERT-Error, if I tried to add another classification to a material.
Thanks, Sven
‎2011 Apr 13 2:58 AM
Friend,
And How was that?
I am having difficulty in this BAPI Create?
Help Me?
‎2013 Jul 25 10:34 AM
Thanks for the answer Andrei & Sven,
I googled with the dump and the problem is solved in a matter of minutes,
Life is easy when people like you are around