<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ADM message TBX buffer: function ThAdmToMys returns RC = -1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adm-message-tbx-buffer-function-thadmtomys-returns-rc-1/m-p/1741690#M322159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  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 &amp;lt;&amp;gt; 'PACK'.
      IF ITAB-MEINS = 'EA'.
        ITAB-EACH = WMENGE.
        ITAB-KILOS = WMENGE * ITAB-NTGEW.
        ITAB-LITRE = WMENGE * ITAB-VOLUM.
      ELSE.
        IF ITAB-MATNR &amp;lt;&amp;gt; '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.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After 50 minutes I can see the following warning message in the log file:&lt;/P&gt;&lt;P&gt;18:20:34 Be 020 EKEKAKOS          BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1 &lt;/P&gt;&lt;P&gt;18:20:39 Be 020 EKEKAKOS          BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   This message is appearing 3 times in a minute. Also in details of this message you can see the followings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Time     TA Cl. User         Tcod MNo C Text                  Date : 14.12.06                       &lt;/P&gt;&lt;P&gt; 18:20:34 Be 020 EKEKAKOS          BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1                                                                                &lt;/P&gt;&lt;P&gt;...                                                                                &lt;/P&gt;&lt;P&gt;Details                                                                                &lt;/P&gt;&lt;P&gt;Recording at local and central time........................ 14.12.2006 18:20:34                      &lt;/P&gt;&lt;P&gt;Task................ 17692 Be Background processor No. 14                                            &lt;/P&gt;&lt;P&gt;User................ EKEKAKOS                                                                        &lt;/P&gt;&lt;P&gt;Client.............. 020                                                                             &lt;/P&gt;&lt;P&gt;Terminal............                                                                                &lt;/P&gt;&lt;P&gt;Session............. 1                                                                                &lt;/P&gt;&lt;P&gt;Transaction code....                                                                                &lt;/P&gt;&lt;P&gt;Program name........ ZMMSTOCKS_EK                                                                    &lt;/P&gt;&lt;P&gt;Problem class....... W    Warning                                                                    &lt;/P&gt;&lt;P&gt;Development class... SBAC Kernel Objekte                                                                                &lt;/P&gt;&lt;P&gt;Module name.........                                                                                &lt;/P&gt;&lt;P&gt;Line................ 1300                                                                            &lt;/P&gt;&lt;P&gt;Table name.......... ThAdmToMys                                                                      &lt;/P&gt;&lt;P&gt;Field name..........        -1                                                                                &lt;/P&gt;&lt;P&gt;Documentation for system log message BB B :                                                          &lt;/P&gt;&lt;P&gt; During the definition or processing of an ADM message in the                                        &lt;/P&gt;&lt;P&gt; 100%/generic table buffer an unexpected return code has occurred. The C                             &lt;/P&gt;&lt;P&gt; function is specified in the error text.  In the coding an asynchronous                             &lt;/P&gt;&lt;P&gt; call for replacement or reorganization is submitted at this point.  The                             &lt;/P&gt;&lt;P&gt; functions concerned may be functions for packing and unpacking                                      &lt;/P&gt;&lt;P&gt; parameters and for sending the ADM message.             ,                                                                                &lt;/P&gt;&lt;P&gt;Technical details                                                                                &lt;/P&gt;&lt;P&gt;File................ 000378                                                                          &lt;/P&gt;&lt;P&gt;Position............ 0000494820                                                                      &lt;/P&gt;&lt;P&gt;Entry type.......... h      ( Database error (non SQL)       )                                       &lt;/P&gt;&lt;P&gt;Message ID.......... BB B                                                                            &lt;/P&gt;&lt;P&gt;Variable parts...... ThAdmToMys       -1                                         1300                                                                                &lt;/P&gt;&lt;P&gt;The version of our SAP is 4.0B and is running in UNIX Solaris and our database is Oracle 8.1.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Can anyone suspects what is causing this message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 17:51:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-14T17:51:04Z</dc:date>
    <item>
      <title>ADM message TBX buffer: function ThAdmToMys returns RC = -1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adm-message-tbx-buffer-function-thadmtomys-returns-rc-1/m-p/1741690#M322159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  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 &amp;lt;&amp;gt; 'PACK'.
      IF ITAB-MEINS = 'EA'.
        ITAB-EACH = WMENGE.
        ITAB-KILOS = WMENGE * ITAB-NTGEW.
        ITAB-LITRE = WMENGE * ITAB-VOLUM.
      ELSE.
        IF ITAB-MATNR &amp;lt;&amp;gt; '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.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After 50 minutes I can see the following warning message in the log file:&lt;/P&gt;&lt;P&gt;18:20:34 Be 020 EKEKAKOS          BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1 &lt;/P&gt;&lt;P&gt;18:20:39 Be 020 EKEKAKOS          BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   This message is appearing 3 times in a minute. Also in details of this message you can see the followings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Time     TA Cl. User         Tcod MNo C Text                  Date : 14.12.06                       &lt;/P&gt;&lt;P&gt; 18:20:34 Be 020 EKEKAKOS          BBB W ADM message TBX buffer: function ThAdmToMys returns RC = -1                                                                                &lt;/P&gt;&lt;P&gt;...                                                                                &lt;/P&gt;&lt;P&gt;Details                                                                                &lt;/P&gt;&lt;P&gt;Recording at local and central time........................ 14.12.2006 18:20:34                      &lt;/P&gt;&lt;P&gt;Task................ 17692 Be Background processor No. 14                                            &lt;/P&gt;&lt;P&gt;User................ EKEKAKOS                                                                        &lt;/P&gt;&lt;P&gt;Client.............. 020                                                                             &lt;/P&gt;&lt;P&gt;Terminal............                                                                                &lt;/P&gt;&lt;P&gt;Session............. 1                                                                                &lt;/P&gt;&lt;P&gt;Transaction code....                                                                                &lt;/P&gt;&lt;P&gt;Program name........ ZMMSTOCKS_EK                                                                    &lt;/P&gt;&lt;P&gt;Problem class....... W    Warning                                                                    &lt;/P&gt;&lt;P&gt;Development class... SBAC Kernel Objekte                                                                                &lt;/P&gt;&lt;P&gt;Module name.........                                                                                &lt;/P&gt;&lt;P&gt;Line................ 1300                                                                            &lt;/P&gt;&lt;P&gt;Table name.......... ThAdmToMys                                                                      &lt;/P&gt;&lt;P&gt;Field name..........        -1                                                                                &lt;/P&gt;&lt;P&gt;Documentation for system log message BB B :                                                          &lt;/P&gt;&lt;P&gt; During the definition or processing of an ADM message in the                                        &lt;/P&gt;&lt;P&gt; 100%/generic table buffer an unexpected return code has occurred. The C                             &lt;/P&gt;&lt;P&gt; function is specified in the error text.  In the coding an asynchronous                             &lt;/P&gt;&lt;P&gt; call for replacement or reorganization is submitted at this point.  The                             &lt;/P&gt;&lt;P&gt; functions concerned may be functions for packing and unpacking                                      &lt;/P&gt;&lt;P&gt; parameters and for sending the ADM message.             ,                                                                                &lt;/P&gt;&lt;P&gt;Technical details                                                                                &lt;/P&gt;&lt;P&gt;File................ 000378                                                                          &lt;/P&gt;&lt;P&gt;Position............ 0000494820                                                                      &lt;/P&gt;&lt;P&gt;Entry type.......... h      ( Database error (non SQL)       )                                       &lt;/P&gt;&lt;P&gt;Message ID.......... BB B                                                                            &lt;/P&gt;&lt;P&gt;Variable parts...... ThAdmToMys       -1                                         1300                                                                                &lt;/P&gt;&lt;P&gt;The version of our SAP is 4.0B and is running in UNIX Solaris and our database is Oracle 8.1.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Can anyone suspects what is causing this message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 17:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adm-message-tbx-buffer-function-thadmtomys-returns-rc-1/m-p/1741690#M322159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T17:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: ADM message TBX buffer: function ThAdmToMys returns RC = -1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adm-message-tbx-buffer-function-thadmtomys-returns-rc-1/m-p/1741691#M322160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 12:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adm-message-tbx-buffer-function-thadmtomys-returns-rc-1/m-p/1741691#M322160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T12:33:09Z</dc:date>
    </item>
  </channel>
</rss>

