cancel
Showing results for 
Search instead for 
Did you mean: 

FM or BAPI For task creation in quality notification

former_member726559
Discoverer
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Ayoub_Habchi
Contributor
0 Kudos

Hello Nayab,

You can try this one : BAPI_QUALNOT_ADD_DATA

Let me know if it works;

Regards,

Ayoub.

Ayoub_Habchi
Contributor
0 Kudos

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

Regards,

Ayoub.

Answers (2)

Answers (2)

former_member726559
Discoverer
0 Kudos

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

Former Member
0 Kudos

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.

NOTIFITEMLIKEBAPI2078_NOTITEMINotification Item for Creation
NOTIFITEM_XLIKEBAPI2078_NOTITEMI_XChange Indicator for Notification Item
NOTIFCAUSLIKEBAPI2078_NOTCAUSINotification Cause for Creation
NOTIFCAUS_XLIKEBAPI2078_NOTCAUSI_XChange Indicator for Notification Cause
NOTIFACTVLIKEBAPI2078_NOTACTVINotification Activities for Creation
NOTIFACTV_XLIKEBAPI2078_NOTACTVI_XChange Indicator for Activities
NOTIFTASKLIKEBAPI2078_NOTTASKINotification Task for Creation
NOTIFTASK_XLIKEBAPI2078_NOTTASKI_XChange Indicator for Notification Task
NOTIFPARTNRLIKEBAPI2078_NOTPARTNRIPartner(s) for Creation
NOTIFPARTNR_XLIKEBAPI2078_NOTPARTNRI_XChange Indicator Partner
RETURNLIKEBAPIRET2Return Parameter(s)
NOTFULLTXTLIKEBAPI2078_NOTFULLTXTINotification 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

Former Member
0 Kudos

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.