<?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: how do display document no. generated while running BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107344#M737694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL TRANSACTION ....&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MESSAGES INTO gt_messtab&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you can capture. if the document was created successfully, the issued message by the system will contain the number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declaration for messtab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : gt_messtab TYPE TABLE OF bdcmsgcoll.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2007 16:08:24 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2007-11-21T16:08:24Z</dc:date>
    <item>
      <title>how do display document no. generated while running BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107340#M737690</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 devloped a BDC for t-code F-43 for passing expenses detail. But in this document created for the enteries is shown below , but i want all the document generated after running BDC should be shown in a screen at the end .&lt;/P&gt;&lt;P&gt;Please help me with the code to display all generated document no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 15:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107340#M737690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T15:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: how do display document no. generated while running BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107341#M737691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do it with CALL TRANSACTIOn, you can capture all the return messages which will contain the numbers of the just created documents as well. BDC session method is not a solution in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 15:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107341#M737691</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-11-21T15:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: how do display document no. generated while running BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107342#M737692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have used SESSION for this BDC, than you can go to BKPF and find out the generated documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT BELNR
INTO TABLE IT_DOC
FROM BKPF
WHERE BUKRS = &amp;lt;your_cc&amp;gt;
GRPID = &amp;lt;your_session_name&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that your session name is unique every time you run your BDC to avoid duplicate entries from the the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 15:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107342#M737692</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-21T15:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: how do display document no. generated while running BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107343#M737693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using call transaction method only , Now how to capture these return messages of document no. generated and display at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 15:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107343#M737693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T15:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: how do display document no. generated while running BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107344#M737694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL TRANSACTION ....&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MESSAGES INTO gt_messtab&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you can capture. if the document was created successfully, the issued message by the system will contain the number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declaration for messtab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : gt_messtab TYPE TABLE OF bdcmsgcoll.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 16:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107344#M737694</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-11-21T16:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: how do display document no. generated while running BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107345#M737695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.. than you can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: IT_MESS LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

CALL TRANSACTION 'F-43' TABLE BDC_TAB MESSAGE IT_MESS.

READ TABLE IT_MESS WITH KEY MSGID = 'F5'
MSGNO = '312'
IF SY-SUBRC = 0.
* DOCUMENT POSTED SUCCESSFULLY.
ELSE.
*  ERROR HANDLING
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 16:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107345#M737695</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-21T16:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: how do display document no. generated while running BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107346#M737696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For each CALL TRANSACTION, put the messages into the message table; then loop through the table, formatting and writing them to the list. You will end up with a list of all the messages produced by all of the transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 16:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-display-document-no-generated-while-running-bdc/m-p/3107346#M737696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T16:58:57Z</dc:date>
    </item>
  </channel>
</rss>

