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

BAPI_ALM_NOTIF_CREATE

Former Member
0 Likes
923

Hi

I hope that i'm in the right topic for my question...

I have create a notification using BAPI_ALM_NOTIF_CREATE and i was happy to see,

that after call BAPI_ALM_NOTIF_SAVE my notification were successful created.

My next challenge is to close this notification.

And now i need finally your help :-).

After the call to BAPI_ALM_CREATE_NOTIF the value of notif_no in the return-structure NOTIFHEADER_EXPORT

shows a value like %00000000001 or something like that.

So far i didn't find a possibility to find out the number of the notification.

But i need this number to transmit a BAPI_ALM_NOTIF_CLOSE call.

I hope this was not to difficult to understand.

Thank you.

2 REPLIES 2
Read only

Former Member
0 Likes
572

A couple of things may be the issue;

1. Your notification may not have created successfully (check the 'return' structure for error messages).

2. You need to call BAPI_TRANSACTION_COMMIT to save the new record, and commit the transaction.

Read only

Former Member
0 Likes
572

You need to first call BAPI_ALM_NOTIF_CREATE.

Check the return structure for errors and if none call BAPI_ALM_NOTIF_SAVE.

For this you will pass the temporary notification number like %00000000001, and get the real notification number like 10000000603.

Then you must call BAPI_TRANSACTION_COMMIT.

After all that is done you can call BAPI_ALM_NOTIF_CLOSE with BAPI_TRANSACTION_COMMIT afterwards to close your notification.