‎2006 Dec 14 5:51 PM
Hello to everyone, I have wrote a program which is loading all our products (aprox. 1300 matnrs) and then in a LOOP at itab is doing the following:
LOOP AT ITAB.
CLEAR WMENGE.
EXPORT WMENGE TO MEMORY ID 'ZGRMENG'.
SUBMIT ZGRRM07MLBD WITH MATNR = ITAB-MATNR
WITH WERKS = ITAB-WERKS
WITH DATUM IN SDATUM
WITH LGBST = 'X'
WITH XSUM = 'X'
EXPORTING LIST TO MEMORY
AND RETURN.
IMPORT WMENGE FROM MEMORY ID 'ZGRMENG'.
IF ITAB-MTART <> 'PACK'.
IF ITAB-MEINS = 'EA'.
ITAB-EACH = WMENGE.
ITAB-KILOS = WMENGE * ITAB-NTGEW.
ITAB-LITRE = WMENGE * ITAB-VOLUM.
ELSE.
IF ITAB-MATNR <> 'WSTE13'.
ITAB-EACH = 0.
ITAB-KILOS = WMENGE.
ITAB-LITRE = WMENGE * ITAB-VOLUM.
ELSE.
ITAB-EACH = WMENGE.
ITAB-KILOS = 0.
ITAB-LITRE = 0.
ENDIF.
ENDIF.
ELSE.
ITAB-EACH = WMENGE.
ITAB-KILOS = 0.
ITAB-LITRE = 0.
ENDIF.
MODIFY ITAB.
ENDLOOP.
After 50 minutes I can see the following warning message in the log file:
18:20:34 Be 020 EKEKAKOS BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1
18:20:39 Be 020 EKEKAKOS BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1
This message is appearing 3 times in a minute. Also in details of this message you can see the followings:
Time TA Cl. User Tcod MNo C Text Date : 14.12.06
18:20:34 Be 020 EKEKAKOS BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1
...
Details
Recording at local and central time........................ 14.12.2006 18:20:34
Task................ 17692 Be Background processor No. 14
User................ EKEKAKOS
Client.............. 020
Terminal............
Session............. 1
Transaction code....
Program name........ ZMMSTOCKS_EK
Problem class....... W Warning
Development class... SBAC Kernel Objekte
Module name.........
Line................ 1300
Table name.......... ThAdmToMys
Field name.......... -1
Documentation for system log message BB B :
During the definition or processing of an ADM message in the
100%/generic table buffer an unexpected return code has occurred. The C
function is specified in the error text. In the coding an asynchronous
call for replacement or reorganization is submitted at this point. The
functions concerned may be functions for packing and unpacking
parameters and for sending the ADM message. ,
Technical details
File................ 000378
Position............ 0000494820
Entry type.......... h ( Database error (non SQL) )
Message ID.......... BB B
Variable parts...... ThAdmToMys -1 1300
The version of our SAP is 4.0B and is running in UNIX Solaris and our database is Oracle 8.1.7.
Can anyone suspects what is causing this message?
Thanks in advance.
‎2006 Dec 15 12:33 PM
It seems that this is a difficult problem. I think that the problem is in the SUBMIT statement which I use in order to take the stock of each material of each plant. I do not know I am still searching in the internet.
Thanks