<?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: create tasks automatically when save notification in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611870#M274297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear PRAKASH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using EXIT_SAPLIQS0_008 - INCLUDE ZXQQMU27 - but when I save the new created notification I get an error message in the return table of the first Bapi - 'BAPI_SERVNOT_ADD_DATA'-&lt;/P&gt;&lt;P&gt;"Notification 000010001850 does not exist"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Ruthie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2006 14:47:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-18T14:47:49Z</dc:date>
    <item>
      <title>create tasks automatically when save notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611867#M274294</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;I am trying to create tasks automatically when saving a &lt;/P&gt;&lt;P&gt;new notification (IW21).&lt;/P&gt;&lt;P&gt;Mayby someone here has any idea??&lt;/P&gt;&lt;P&gt;I tried through user exit QQMA0014 to insert new rows &lt;/P&gt;&lt;P&gt;to the tasks table - but I didn't succeeded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you all.&lt;/P&gt;&lt;P&gt;Promise to award points.&lt;/P&gt;&lt;P&gt;Ruthie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 13:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611867#M274294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: create tasks automatically when save notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611868#M274295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once I add the same requirement but to add a activity to the notification during creation or changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u can use the &amp;lt;b&amp;gt;EXIT_SAPLIQS0_008&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ZXQQMU27 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever u r entering the notification or leaving the notification after saving it will come to this exit. So the code should be proceed only when it comes for SAVE.&lt;/P&gt;&lt;P&gt;Here if u check the below code i might used   GET PARAMETER ID 'ZQS' FIELD ws_notif_save1 which i will pass 'X' in the save exit. Also u can't use import/emport because all the memory values are getting cleared after the notification is created.&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'ZQN' FIELD ws_qnum. Also u have to SET the notificaiton number to some variable and get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_viqmel-qmart = 'ZA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF sy-tcode = c_iw51 or c_iw52.&lt;/P&gt;&lt;P&gt;    PERFORM notification_activity_save.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  notification_activity_save&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Notification Activity Save.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM notification_activity_save .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: notif_activity TYPE bapi2080_notactvi OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        notif_activity_x TYPE bapi2080_notactvi_x&lt;/P&gt;&lt;P&gt;                                              OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        return  TYPE  bapiret2 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        return1 TYPE  bapiret2 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        return2 TYPE  bapiret2 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        return3 TYPE  bapiret2 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        syststat TYPE bapi2080_notsti OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        ws_notif_save1 TYPE c,&lt;/P&gt;&lt;P&gt;        ws_qnum TYPE qmel-qmnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET PARAMETER ID 'ZQS' FIELD ws_notif_save1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ws_notif_save1 EQ c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    GET PARAMETER ID 'ZQN' FIELD ws_qnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WAIT UP TO 5 SECONDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    notif_activity-refobjectkey = ws_qnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-tcode EQ c_iw51.&lt;/P&gt;&lt;P&gt;      notif_activity-act_key     = '0001'.&lt;/P&gt;&lt;P&gt;      notif_activity-act_sort_no = '0001'.&lt;/P&gt;&lt;P&gt;      notif_activity-act_codegrp = 'Z001'.&lt;/P&gt;&lt;P&gt;      notif_activity-act_code    = 'REQ'.&lt;/P&gt;&lt;P&gt;    ELSEIF sy-tcode EQ c_iw52.&lt;/P&gt;&lt;P&gt;      notif_activity-act_key     = '0002'.&lt;/P&gt;&lt;P&gt;      notif_activity-act_sort_no = '0002'.&lt;/P&gt;&lt;P&gt;      notif_activity-act_codegrp = 'Z001'.&lt;/P&gt;&lt;P&gt;      notif_activity-act_code    = 'CREQ'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    notif_activity-start_date  = sy-datum.&lt;/P&gt;&lt;P&gt;    notif_activity-start_time  = sy-uzeit.&lt;/P&gt;&lt;P&gt;    notif_activity-end_date    = sy-datum.&lt;/P&gt;&lt;P&gt;    notif_activity-end_time    = sy-uzeit.&lt;/P&gt;&lt;P&gt;    APPEND notif_activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_SERVNOT_ADD_DATA'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        number    = ws_qnum&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        notifactv = notif_activity&lt;/P&gt;&lt;P&gt;        return    = return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_SERVNOT_SAVE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        number = ws_qnum&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        return = return1.&lt;/P&gt;&lt;P&gt;&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   = '5'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        return = return2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    syststat-langu = sy-langu.&lt;/P&gt;&lt;P&gt;    syststat-languiso = sy-langu.&lt;/P&gt;&lt;P&gt;    syststat-refdate = sy-datum.&lt;/P&gt;&lt;P&gt;    syststat-reftime = sy-uzeit.&lt;/P&gt;&lt;P&gt;    APPEND syststat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_SERVNOT_CLOSE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        number   = ws_qnum&lt;/P&gt;&lt;P&gt;        syststat = syststat&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        return   = return3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR: ws_qnum, ws_notif_save1.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'ZQN' FIELD ws_qnum.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'ZQS' FIELD ws_notif_save1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-tcode EQ c_iw51.&lt;/P&gt;&lt;P&gt;      LEAVE TO TRANSACTION c_iw51.&lt;/P&gt;&lt;P&gt;    ELSEIF sy-tcode EQ c_iw52.&lt;/P&gt;&lt;P&gt;      LEAVE TO TRANSACTION c_iw52.&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;ENDFORM.                    " notification_activity_save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611868#M274295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: create tasks automatically when save notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611869#M274296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Right now I unable to access SAP. Please check in the menu bar if there exist SAVE+Determine Task button, if it is there click on that and it will save the notification and will create all necessary task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv done this one in IW51 but not for IW21. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl ck and let me know if it there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it help pl reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611869#M274296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: create tasks automatically when save notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611870#M274297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear PRAKASH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using EXIT_SAPLIQS0_008 - INCLUDE ZXQQMU27 - but when I save the new created notification I get an error message in the return table of the first Bapi - 'BAPI_SERVNOT_ADD_DATA'-&lt;/P&gt;&lt;P&gt;"Notification 000010001850 does not exist"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Ruthie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611870#M274297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: create tasks automatically when save notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611871#M274298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunanda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't follow your answer.&lt;/P&gt;&lt;P&gt;I try to achieve that every time a new notification is created, tasks are going to be created automatically&lt;/P&gt;&lt;P&gt;according to the event selected.&lt;/P&gt;&lt;P&gt;I try to achieve it through enhancements.&lt;/P&gt;&lt;P&gt;I didn't find the button SAVE+Determine Task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Ruthie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611871#M274298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: create tasks automatically when save notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611872#M274299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the wait statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WAIT UP TO 5 SECONDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that after the notification  is created it will be updated in the table. Or follow the below logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      WAIT UP TO 1 SECONDS.&lt;/P&gt;&lt;P&gt;      n = n + 2.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE QMNUM INTO lws_qmnum FROM qmel&lt;/P&gt;&lt;P&gt;             WHERE qmnum = &amp;lt;Cretaed notification number&amp;gt;.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      IF n = 600.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it will be inside the DO ENDDO upto it find that qnum in the DB. When the n = 600 it will come out of the enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 14:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611872#M274299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T14:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: create tasks automatically when save notification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611873#M274300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Prakash.&lt;/P&gt;&lt;P&gt;Problem is solved.&lt;/P&gt;&lt;P&gt;Ruthie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 12:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tasks-automatically-when-save-notification/m-p/1611873#M274300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T12:16:29Z</dc:date>
    </item>
  </channel>
</rss>

