<?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: Finding Document number created after BDC execution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280021#M1531339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan Sanganal ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the System Message in Message Tab which you will capture in your message tab. For example : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      CALL TRANSACTION 'F-43' USING IT_BDCDATA
      OPTIONS FROM WA_CTU_PARAMS
      MESSAGES INTO IT_MESSTAB.
"Here all messages will be stored in IT_MESSTAB
"If message type  IT_MESSTAB-MSGTYP = 'S' then it should be the message you are looking for
"Note : There may be many Success(S) messages

    LOOP AT IT_MESSTAB.

      DATA : L_F_TEXT(150).
      CLEAR L_F_TEXT.

      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = IT_MESSTAB-MSGID
          LANG      = SY-LANGU
          NO        = IT_MESSTAB-MSGNR
          V1        = IT_MESSTAB-MSGV1
          V2        = IT_MESSTAB-MSGV2
          V3        = IT_MESSTAB-MSGV3
          V4        = IT_MESSTAB-MSGV4
        IMPORTING
          MSG       = L_F_TEXT
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.

      IF SY-SUBRC = 0.

        WA_FINAL-TYPE = IT_MESSTAB-MSGTYP.
        WA_FINAL-LIFNR = WA_RECORD-LIFNR.
        WA_FINAL-WRBTR = WA_RECORD-WRBTR.
        WA_FINAL-TEXT = L_F_TEXT.

        APPEND WA_FINAL TO IT_FINAL.
        CLEAR : WA_FINAL.

      ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 12:10:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-06T12:10:13Z</dc:date>
    <item>
      <title>Finding Document number created after BDC execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280019#M1531337</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 working on a BDC development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After CALL TRANSACTION KB15 syntax, i would like to capture the document number which has been created in the call trasaction step. How to capture the document number in such scenario???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 12:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280019#M1531337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T12:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Document number created after BDC execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280020#M1531338</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;Did you check if the bdcmessgecoll table is returning the docuent number or not. if it is returning to get that messge use FORMAT_MESSAGE FM to read the success message returned from the transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 12:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280020#M1531338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T12:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Document number created after BDC execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280021#M1531339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan Sanganal ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the System Message in Message Tab which you will capture in your message tab. For example : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      CALL TRANSACTION 'F-43' USING IT_BDCDATA
      OPTIONS FROM WA_CTU_PARAMS
      MESSAGES INTO IT_MESSTAB.
"Here all messages will be stored in IT_MESSTAB
"If message type  IT_MESSTAB-MSGTYP = 'S' then it should be the message you are looking for
"Note : There may be many Success(S) messages

    LOOP AT IT_MESSTAB.

      DATA : L_F_TEXT(150).
      CLEAR L_F_TEXT.

      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = IT_MESSTAB-MSGID
          LANG      = SY-LANGU
          NO        = IT_MESSTAB-MSGNR
          V1        = IT_MESSTAB-MSGV1
          V2        = IT_MESSTAB-MSGV2
          V3        = IT_MESSTAB-MSGV3
          V4        = IT_MESSTAB-MSGV4
        IMPORTING
          MSG       = L_F_TEXT
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.

      IF SY-SUBRC = 0.

        WA_FINAL-TYPE = IT_MESSTAB-MSGTYP.
        WA_FINAL-LIFNR = WA_RECORD-LIFNR.
        WA_FINAL-WRBTR = WA_RECORD-WRBTR.
        WA_FINAL-TEXT = L_F_TEXT.

        APPEND WA_FINAL TO IT_FINAL.
        CLEAR : WA_FINAL.

      ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 12:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280021#M1531339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T12:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Document number created after BDC execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280022#M1531340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally from the success message &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've the message like, "Document 12345678 has been posted successfully". You can get the DocNum from the message itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 12:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280022#M1531340</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-10-06T12:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Document number created after BDC execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280023#M1531341</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;Check your Document Number in BDCMSGCOLL or after call transaction call FM "FORMAT_MESSAGE" so that all the Error and Success message get stored in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pranav Saxena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 12:21:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280023#M1531341</guid>
      <dc:creator>pranav_him</dc:creator>
      <dc:date>2010-10-06T12:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Document number created after BDC execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280024#M1531342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please search before asking - post locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-document-number-created-after-bdc-execution/m-p/7280024#M1531342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T13:18:30Z</dc:date>
    </item>
  </channel>
</rss>

