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

issue with BAPI_ALM_NOTIF_DATA_ADD

Former Member
0 Likes
806

Hi all,

Has anyone used BAPI_ALM_NOTIF_DATA_ADD along with BAPI_ALM_NOTIF_DATA_MODIFY to update the service notifications? Individually both bapis are running fine but when BAPI_ALM_NOTIF_DATA_ADD is called after BAPI_ALM_NOTIF_DATA_MODIFY it gives error that notification is locked.

I am calling these bapis in this sequence

1)BAPI_ALM_NOTIF_GET_DETAIL

2)BAPI_ALM_NOTIF_DATA_MODIFY

3)BAPI_SERVNOT_SAVE

4)BAPI_TRANSACTION_COMMIT

5)BAPI_ALM_NOTIF_DATA_ADD

6)BAPI_SERVNOT_SAVE

7)BAPI_TRANSACTION_COMMIT

Regards,

Mehul

Hi all,

Has anyone used BAPI_ALM_NOTIF_DATA_ADD along with BAPI_ALM_NOTIF_DATA_MODIFY to update the service notifications? Individually both bapis are running fine but when BAPI_ALM_NOTIF_DATA_ADD is called after BAPI_ALM_NOTIF_DATA_MODIFY it gives error that notification is locked.

I am calling these bapis in this sequence

1)BAPI_ALM_NOTIF_GET_DETAIL

2)BAPI_ALM_NOTIF_DATA_MODIFY

3)BAPI_SERVNOT_SAVE

4)BAPI_TRANSACTION_COMMIT

5)BAPI_ALM_NOTIF_DATA_ADD

6)BAPI_SERVNOT_SAVE

7)BAPI_TRANSACTION_COMMIT

Regards,

Mehul

1 REPLY 1
Read only

b_deterd2
Active Contributor
0 Likes
436

Hi,

Try commit work AND WAIT.

If that does not help try waiting a second or two between your FM's by using FM RZL_SLEEP (or statement: wait up to ...).

Maybe it helps,

Bert