<?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 Re: Get message from batch input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970073#M948281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hagit,&lt;/P&gt;&lt;P&gt;ahh classification data. That's always a bit of a problem. There is a special API for these. What you do, you first create the batch and then later add the classification. I can't remember the name of the classification FM's right now. &lt;/P&gt;&lt;P&gt;And no, I have not used the BAPI for the batch creation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 07:05:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T07:05:48Z</dc:date>
    <item>
      <title>Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970065#M948273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use batch input (which I recorded) for transaction MSC1N. &lt;/P&gt;&lt;P&gt;I want to get the new batch number created by the transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the number which appears in the bottom as green S message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 07:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970065#M948273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T07:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970066#M948274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all messages r stored in table T100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want details of batch check tables APQD,APQL,APQI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS IF HLPFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 07:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970066#M948274</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-10T07:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970067#M948275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use sy-MSGV1 or sy-MSGV2 to get the number  ... &lt;/P&gt;&lt;P&gt;Message along with the number is stored in these fields ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 07:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970067#M948275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T07:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970068#M948276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After call transaction you will be filling messages in an internal table decalred for BDCMSGCOLL structure. &lt;/P&gt;&lt;P&gt;CALL TRANSACTION MSC1N  using BDC_DATA&lt;/P&gt;&lt;P&gt;                            MESSAGES INTO &amp;lt;MESSTAB&amp;gt;.&lt;/P&gt;&lt;P&gt;Here MESSTAB is internal table of type BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;LOOP at this MESSTAB MSGTYP = 'S'.&lt;/P&gt;&lt;P&gt;This record with MSGTYP = 'S' will have MGSV1 variable filled with new batch number created.&lt;/P&gt;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 07:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970068#M948276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T07:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970069#M948277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hagit,&lt;/P&gt;&lt;P&gt;Ramesh's solution is good. Sometimes it is also possible to use a parameter ID that is filled by the transaction. It's a bit less coding but you have to figure out if your specific transaction fills one. Better yet would be to use a BAPI instead of the CALL TRANSACTION, that way you will just get the new batch number back as a paramter, bapi_batch_create seemms to fit the bill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 08:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970069#M948277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T08:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970070#M948278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hagit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can store all the messages in Internal table used in BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_BDCMSGCOLL OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;DATA: END OF IT_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;DATA  W_MSG(150).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call transaction 'F-22' using it_bdcdata MOde 'A' Update 'A' MESSAGES INTO IT_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0 or SY-SUBRC = 1001.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_BDCMSGCOLL .        &lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          ID        = IT_BDCMSGCOLL-MSGID&lt;/P&gt;&lt;P&gt;          LANG      = SY-LANGU&lt;/P&gt;&lt;P&gt;          NO        = IT_BDCMSGCOLL-MSGNR&lt;/P&gt;&lt;P&gt;          V1        = IT_BDCMSGCOLL-MSGV1&lt;/P&gt;&lt;P&gt;          V2        = IT_BDCMSGCOLL-MSGV2&lt;/P&gt;&lt;P&gt;          V3        = IT_BDCMSGCOLL-MSGV3&lt;/P&gt;&lt;P&gt;          V4        = IT_BDCMSGCOLL-MSGV4&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          MSG       = W_MSG&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;          OTHERS    = 2.&lt;/P&gt;&lt;P&gt;      WRITE:/ W_MSG.&lt;/P&gt;&lt;P&gt;      clear: W_MSG.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 08:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970070#M948278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T08:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970071#M948279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for the replies. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the structure BDCMSGCOLL for batch input massages. &lt;/P&gt;&lt;P&gt;The number of the new batch is not given. &lt;/P&gt;&lt;P&gt;Also checked SY-MSGV1/2, they are also empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reply of Gert Beukema  - I tried using this BAPI, but I do not have the option to copy classifications from existing batch. Did you use this BAPI yourself? maybe you can give me some clues for solving this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 07:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970071#M948279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T07:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970072#M948280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am bit confused if u r running  the BDC in session method u have to give the session name urself (from selection screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if u r usinf the call transaction method there is no session  in question ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what u exactly want to know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 07:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970072#M948280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T07:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get message from batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970073#M948281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hagit,&lt;/P&gt;&lt;P&gt;ahh classification data. That's always a bit of a problem. There is a special API for these. What you do, you first create the batch and then later add the classification. I can't remember the name of the classification FM's right now. &lt;/P&gt;&lt;P&gt;And no, I have not used the BAPI for the batch creation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 07:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-message-from-batch-input/m-p/3970073#M948281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T07:05:48Z</dc:date>
    </item>
  </channel>
</rss>

