Application Development and Automation 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: 
Read only

BAPI_OBJCL_CREATE - EXPORT_BUFFER_NO_MEMORY

sven_schuberth2
Participant
0 Likes
1,295

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,059

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,060

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.

Read only

0 Likes
1,059

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!

Read only

0 Likes
1,059

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.

Read only

0 Likes
1,059

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...

Read only

0 Likes
1,059

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

Read only

0 Likes
1,059

Friend,

And How was that?

I am having difficulty in this BAPI Create?

Help Me?

Read only

0 Likes
1,059

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