<?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 Capturing messages in BDC session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302013#M158793</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 have a loop construct containing a BDC session to create POs. I need to capture the PO number created and pass it on to a second BDC seesion in the same loop pass to to GR (Goods Receipt for PO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the PO number from the PO BDC Session? Please help as it is urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Soumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2006 09:07:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-08T09:07:54Z</dc:date>
    <item>
      <title>Capturing messages in BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302013#M158793</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 have a loop construct containing a BDC session to create POs. I need to capture the PO number created and pass it on to a second BDC seesion in the same loop pass to to GR (Goods Receipt for PO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the PO number from the PO BDC Session? Please help as it is urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Soumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302013#M158793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing messages in BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302014#M158794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the BDC is successfull, you will get a message that the PO is created in the message table(BDCMSGCOLL). One of the parameters will be the PO number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302014#M158794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing messages in BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302015#M158795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after updation it show the message po will be created&lt;/P&gt;&lt;P&gt;so u capture the message window number and the data to &lt;/P&gt;&lt;P&gt;populate into internal table and store it presentation server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302015#M158795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing messages in BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302016#M158796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can capture the messages whenever the BDC is successul, check the code in BOLD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  LOOP AT IT_SALES.

    PERFORM POPULATE_BDC.

    CALL TRANSACTION 'VA01' USING IT_BDCDATA
                                  MODE MODE
                                  UPDATE UPDATE
                                  MESSAGES INTO IT_MSGS.

    IF NOT IT_MSGS[] IS INITIAL.

&amp;lt;b&amp;gt;      LOOP AT IT_MSGS WHERE mstyp = &amp;#145;S&amp;#146;.

        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID        = IT_MSGS-MSGID
            LANG      = 'EN'
            NO        = IT_MSGS-MSGNR
            V1        = IT_MSGS-MSGV1
            V2        = IT_MSGS-MSGV2
            V3        = IT_MSGS-MSGV3
            V4        = IT_MSGS-MSGV4
          IMPORTING
            MSG       = V_MSG
          EXCEPTIONS
            NOT_FOUND = 1
            OTHERS    = 2.
        IF SY-SUBRC &amp;lt;&amp;gt; 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&amp;lt;/b&amp;gt;        ENDIF.
        WRITE:/ V_MSG.
      ENDLOOP.

    ENDIF.

  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302016#M158796</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-06-08T09:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing messages in BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302017#M158797</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;you can check the LOG of the BDC session in SM35 transaction for that Session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302017#M158797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing messages in BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302018#M158798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  Once PO gets generated you can retrieve that one from &amp;lt;b&amp;gt;BDCMSGCOLL&amp;lt;/b&amp;gt; table in to a variable and can pass that to required transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302018#M158798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing messages in BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302019#M158799</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 am using session method so BDCMSGCOLL may not be applicable. Also SM35 is not applicable as I need the PO number at runtime to process in another session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Soumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302019#M158799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T09:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing messages in BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302020#M158800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soumya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest one solution.  Just use the Call transaction for the PO creation by which u can received a PO number after that u can call the Posting using session method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 11:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-messages-in-bdc-session/m-p/1302020#M158800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-08T11:05:05Z</dc:date>
    </item>
  </channel>
</rss>

