<?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: DOCUMENT NUMBER AFTER COMMIT IN BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415376#M1408481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot  Pranu Pranu!!! You solved my problem!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Nov 2009 13:49:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-27T13:49:53Z</dc:date>
    <item>
      <title>DOCUMENT NUMBER AFTER COMMIT IN BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415372#M1408477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using the bapi BAPI_ALM_NOTIF_CREATE to create a notification in SAP. After the process I only get a temporary notification number. After commit, could I get the real notification number in some way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and thank you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 10:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415372#M1408477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T10:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: DOCUMENT NUMBER AFTER COMMIT IN BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415373#M1408478</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;do you have a look into export parameter: NOTIFHEADER_EXPORT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 10:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415373#M1408478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T10:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: DOCUMENT NUMBER AFTER COMMIT IN BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415374#M1408479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to follow the sequence of BAPIS as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
        notif_type         = c_type
        notifheader        = x_header
      IMPORTING
        notifheader_export = x_imp_header   " Notif Number
      TABLES
        notitem            = t_notitem
        notifcaus          = t_notifcaus
        longtexts          = t_longtexts
        return             = t_return_create.

    SORT t_return_create BY type.
* If the error is returned, the same is sent back to MES
    READ TABLE t_return_create INTO x_return_create WITH KEY type = c_error.   " c_error = 'E'
    IF sy-subrc EQ 0.
      x_return_mes-type     = x_return_create-type.
      x_return_mes-message  = x_return_create-message.                   " Notification could not be created.
      APPEND x_return_mes TO t_return_mes.
      CLEAR  x_return_mes.
    ELSE.

* Changing the Status to In-Progress
      CALL FUNCTION 'BAPI_ALM_NOTIF_PUTINPROGRESS'
        EXPORTING
          number = x_imp_header-notif_no.

* Save the Notification. Else the nitification number is seen but not in the transaction.
      CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'
        EXPORTING
          number      = x_imp_header-notif_no
        IMPORTING
          notifheader = x_imp_header.

* Commit to Database
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afte this you will get the actual number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Pranu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 10:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415374#M1408479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T10:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: DOCUMENT NUMBER AFTER COMMIT IN BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415375#M1408480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per my understanding temporary notification number and real notification number  will be same .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also notification number is avaliable in various paramaters of BAPI_ALM_NOTIF_CREATE. PLease check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 10:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415375#M1408480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T10:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: DOCUMENT NUMBER AFTER COMMIT IN BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415376#M1408481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot  Pranu Pranu!!! You solved my problem!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 13:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-number-after-commit-in-bapi/m-p/6415376#M1408481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T13:49:53Z</dc:date>
    </item>
  </channel>
</rss>

