<?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: Notification modification with BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/notification-modification-with-bapi/m-p/4134845#M988835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 12:16:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T12:16:10Z</dc:date>
    <item>
      <title>Notification modification with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/notification-modification-with-bapi/m-p/4134844#M988834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the bapi BAPI_ALM_NOTIF_DATA_MODIFY&lt;/P&gt;&lt;P&gt;for modifiying an existing notification.&lt;/P&gt;&lt;P&gt;Below is the code extract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : LT_NOTIFHEADER type BAPI2080_NOTHDRI .&lt;/P&gt;&lt;P&gt;data : LT_NOTIFUPDATEX type &lt;/P&gt;&lt;P&gt;bapi2080_NOTHDRI_X .&lt;/P&gt;&lt;P&gt;data : LT_EXPORTHEADER type bAPI2080_NOTHDRE.&lt;/P&gt;&lt;P&gt;data : LT_RETURN type table of BAPIRET2 with header line.&lt;/P&gt;&lt;P&gt;data : EQUIPMENT type EQUNR.&lt;/P&gt;&lt;P&gt;data : NOTIFHEADER type BAPI2080_NOTHDRE .&lt;/P&gt;&lt;P&gt;data : SAVE_RETURN type table of BAPIRET2 with header line.&lt;/P&gt;&lt;P&gt;data : COMMITRETURN type table of BAPIRET2 with header line.&lt;/P&gt;&lt;P&gt;data : LD_QMNUM type qmnum.&lt;/P&gt;&lt;P&gt;data : number like BAPI2080_NOTHDRE-NOTIF_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if P_EQUI_TECHID is not initial.&lt;/P&gt;&lt;P&gt;select single EQUNR from ITOB into EQUIPMENT where TIDNR = P_EQUI_TECHID.&lt;/P&gt;&lt;P&gt;if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;EQUIPMENT = ITOB-EQUNR.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-REFOBJECTTYPE = 'QMEL'.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-EQUIPMENT = EQUIPMENT.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-FUNCT_LOC = P_FUNCTIONAL_LOCATION_ID.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-PRIORITY = P_NOTIF_PRIORITY_ID.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-BREAKDOWN = P_BREAKDOWN_IND.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-STRMLFNDATE = P_START_DATE_MLFN.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-STRMLFNTIME = P_START_TIME_MLFN.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-REPORTEDBY = P_REPORTED_BY_ID.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-CODE_GROUP = P_CODE_GROUP_ID.&lt;/P&gt;&lt;P&gt;LT_NOTIFHEADER-CODING = P_CODE_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-REFOBJECTTYPE = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-EQUIPMENT = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-FUNCT_LOC = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-PRIORITY = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-BREAKDOWN = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-STRMLFNDATE = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-STRMLFNTIME = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-REPORTEDBY = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-CODE_GROUP = 'X'.&lt;/P&gt;&lt;P&gt;LT_NOTIFUPDATEX-CODING = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;INPUT = P_NOTIF_NO&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;OUTPUT = LD_QMNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_ALM_NOTIF_DATA_MODIFY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;NUMBER = LD_QMNUM&lt;/P&gt;&lt;P&gt;NOTIFHEADER = LT_NOTIFHEADER&lt;/P&gt;&lt;P&gt;NOTIFHEADER_X = LT_NOTIFUPDATEX&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;NOTIFHEADER_EXPORT = LT_EXPORTHEADER&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;RETURN = LT_RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table LT_RETURN with key TYPE = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;number = LD_QMNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if SY-SUBRC ne 0.&lt;/P&gt;&lt;P&gt;call function 'BAPI_ALM_NOTIF_SAVE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;NUMBER = number&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;NOTIFHEADER = NOTIFHEADER&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;RETURN = SAVE_RETURN.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table SAVE_RETURN with key TYPE = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if SY-SUBRC ne 0.&lt;/P&gt;&lt;P&gt;call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;WAIT = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN = COMMITRETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i test the three functions in sequence manually, i am&lt;/P&gt;&lt;P&gt;able to update the notification.But if i do the same through&lt;/P&gt;&lt;P&gt;the above given code ,i am not able to update it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you have a look into the above code.&lt;/P&gt;&lt;P&gt;please note that i want to update the header only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 07:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/notification-modification-with-bapi/m-p/4134844#M988834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T07:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Notification modification with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/notification-modification-with-bapi/m-p/4134845#M988835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 12:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/notification-modification-with-bapi/m-p/4134845#M988835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T12:16:10Z</dc:date>
    </item>
  </channel>
</rss>

