Skip to Content
0

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

Mar 24, 2017 at 06:39 AM

99

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Arpita Save Mar 28, 2017 at 07:12 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded