Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Update Completion date in QM01 using BAPI

Former Member
0 Likes
1,034

Hi All,

I am trying update completed on in a quality Notification(QM01 tcode) using BAPI.I found out below BAPI could be of use for me.

CALL FUNCTION 'BAPI_QUALNOT_CHANGETSKSTAT'
        EXPORTING
          number           = *Notification number passed*
          task_key         = '0001'
          task_code        = '02''
          carried_out_date = sy-datlo
          carried_out_time = sy-timlo
        TABLES
          return           = it_return.

But it is not getting updated in notification. Am I missing somethibg. Kindly let me know if you have any idea.

Best Regards

Himayat

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
789

Hi,

Please read the documentation.

Read only

0 Likes
789

Hi Keshav,

Thanks for the update.BAPI_QUALNOT_MODIFY_DATA doesnt have any fields in its interface which I can use to pass completed on date and completed on time..thats why I tried using BAPI_QUALNOT_CHANGETSKSTAT in which I could find Date on Which the Task Was Completed,Time at Which Task Was Completed fields(CARRIED_OUT_DATE,CARRIED_OUT_TIME).

But this was also wasnot of any help..

Read only

0 Likes
789

If the return parameter doesnt give any error call these two function modules after that , BAPI_QUALNOT_SAVE and BAPI_TRANSACTION_COMMIT

Read only

0 Likes
789

When I apply BAPI_QUALNOT_SAVE and BAPI_TRANSACTION_COMMIT, I get an error that notification does not exist.

Does anyone have a Follow up answer to this?