Skip to Content

Unable To Update Notification status to NOCO while closing the Work Order in IW32/IW38/IW37

Hi All,

I have a requirement ,while setting order status to CLSD (Order->Functions->Complete->Do not execute), change the notification status to Notification Completed (NOCO).

I tried to call BAPI_ALM_NOTIF_CLOSE and BAPI_TRANSACTION_COMMIT in exit EXIT_SAPLCOIH_009 to update Notification status to NOCO but BAPI is giving error as Notification is locked by user in both update mode and normal mode. Also i have tried BADI implemenatation for BAPI NOTIF_EVENT_SAVE.this is also giving locking issue.

Could you please suggest any user exit or BADI.

Thanks, Arpita

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 28, 2017 at 07:12 AM

    Hi All,

    My issue is solved. I have called functoin module STATUS_CHANGE_INTERN to change the status of notification to NOCO while closing order. I have written the code in EXIT_SAPLCOIH_009.

    wa_stat1-stat = 'I0070'.
    wa_stat1-inact = 'X'.
    APPEND wa_stat1 TO it_stat1.
    wa_stat1-stat = 'I0072'.
    wa_stat1-inact = ' '.
    APPEND wa_stat1 TO it_stat1.

    CALL FUNCTION 'STATUS_CHANGE_INTERN'
    EXPORTING
    objnr = v_objnr
    TABLES
    status = it_stat.

    Refer below link : https://archive.sap.com/discussions/thread/3828120.

    Thanks,

    Arpita

    Add comment
    10|10000 characters needed characters exceeded