Skip to Content
avatar image
Former Member

FM or BAPI For task creation in quality notification

Is there a FM or BAPI that can be used to create a task in for an existing quality notification.

I have tried BAPI_QUALNOT_MODIFY_DATA  but it can only modify an existing task in a quality notification.

I have also tried BAPI_QUALNOT_CREATE     but it can only create a new quality notification and not create a task in an already existing quality notification.

Please kindly provide with a solution.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 30, 2014 at 02:50 PM

    Hello Nayab,

    You can try this one : BAPI_QUALNOT_ADD_DATA

    Let me know if it works;

    Regards,

    Ayoub.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Please note also that you need to use this BAPI with BAPI_QUALNOT_SAVE and BAPI_TRANSACTION_COMMIT to have successful update.

      Regards,

      Ayoub.

  • avatar image
    Former Member
    Oct 30, 2014 at 02:52 PM

    Hello

    With bapi API_QUALNOT_MODIFY_DATA you can perform task creation and modification. Maybe you should talk with an ABAP guy.

    Here you have many tables you canb use, for example, you can create notification items NOTIFITEM or tasks NOTIFTASK but you must complete all required data to perform those activities properly.

    NOTIFITEM LIKE BAPI2078_NOTITEMI Notification Item for Creation NOTIFITEM_X LIKE BAPI2078_NOTITEMI_X Change Indicator for Notification Item NOTIFCAUS LIKE BAPI2078_NOTCAUSI Notification Cause for Creation NOTIFCAUS_X LIKE BAPI2078_NOTCAUSI_X Change Indicator for Notification Cause NOTIFACTV LIKE BAPI2078_NOTACTVI Notification Activities for Creation NOTIFACTV_X LIKE BAPI2078_NOTACTVI_X Change Indicator for Activities NOTIFTASK LIKE BAPI2078_NOTTASKI Notification Task for Creation NOTIFTASK_X LIKE BAPI2078_NOTTASKI_X Change Indicator for Notification Task NOTIFPARTNR LIKE BAPI2078_NOTPARTNRI Partner(s) for Creation NOTIFPARTNR_X LIKE BAPI2078_NOTPARTNRI_X Change Indicator Partner RETURN LIKE BAPIRET2 Return Parameter(s) NOTFULLTXT LIKE BAPI2078_NOTFULLTXTI Notification Long Text

    An ABAPer could help you easily, or you should post how you're completing the data to identify why this BAPI is not working for you.

    Best regads

    Carlos Díaz

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I cannot get BAPI_QUALNOT_ADD_DATA to work when I want to update a notification item task.  Has anyone done this? 

        WA_MANUM = I_WQMSM-MANUM.

           WA_MANUM = WA_MANUM + 1.

           CONCATENATE 'QA' WA_EMAIL-MRB_NOTIFICATION WA_MANUM INTO WA_NOTIFTASK-REFOBJECTKEY.

           WA_NOTIFTASK-TASK_KEY        = WA_EMAIL-MRB_FENUM.

           WA_NOTIFTASK-TASK_SORT_NO    = WA_MANUM.

           WA_NOTIFTASK-TASK_TEXT       = 'Send RGR to Buyer'.

           WA_NOTIFTASK-TASK_CODEGRP    = 'QM-MRB'.

           WA_NOTIFTASK-TASK_CODE       = '0005'.

           WA_NOTIFTASK-PARTN_ROLE      = 'VU'.

           WA_NOTIFTASK-PARTNER         = WA_EMAIL-EKTEL.

           WA_NOTIFTASK-PLND_START_DATE = i_notifheader-startdate.

           WA_NOTIFTASK-PLND_START_TIME = i_notifheader-dessttime.

           WA_NOTIFTASK-PLND_END_DATE   = i_notifheader-enddate.

           WA_NOTIFTASK-PLND_END_TIME   = i_notifheader-desendtm.

           WA_NOTIFTASK-CARRIED_OUT_BY  = SY-UNAME.

           WA_NOTIFTASK-ITEM_SORT_NO    = WA_MANUM.

           APPEND WA_NOTIFTASK TO NOTIFTASK.

  • avatar image
    Former Member
    Oct 31, 2014 at 12:05 PM

    BAP : BAPI_QUALNOT_ADD_DATA is working correctly , thanks for your help.

    Add comment
    10|10000 characters needed characters exceeded