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 and BAPI_ALM_NOTIF_DATA_MODIFY not working

former_member201541
Participant
0 Kudos
3,882

Hi All,

I'm using the BAPI's BAPI_ALM_NOTIF_CREATE and BAPI_ALM_NOTIF_DATA_MODIFY to create and update the notification data in my report. But both the BAPI's are not giving the expected output.

BAPI_ALM_NOTIF_DATA_MODIFY is giving output as "No changes made" even though I make changes and BAPI_ALM_NOTIF_CREATE is not giving any error.

Can someone give me the sample code for the above two BAPI's to work correctly. I need it urgently.

Thank You

1 ACCEPTED SOLUTION
Read only

former_member201541
Participant
0 Kudos
1,667

Can someone reply with the correct solution. I'm in urgent need.

Thank You

11 REPLIES 11
Read only

jogeswararao_kavala
Active Contributor
1,667

You need to use

BAPI_ALM_NOTIF_SAVE 

BAPI_TRANSACTION_COMMIT

in sequence with each of the FMs you cited above.

Read only

0 Kudos
1,667

Hi,

Thanks for your immediate reply.

I'm using those two FMs in sequence but still not getting any output.

Read only

0 Kudos
1,667

Have you tested in SE37 in sequence?

Read only

0 Kudos
1,667

No

Read only

0 Kudos
1,667

Thanks..solved my Issue..

BAPI_ALM_NOTIF_SAVE

BAPI_TRANSACTION_COMMIT

Read only

Ashg1402
Contributor
1,667

Hi,

for  BAPI_ALM_NOTIF_CREATE you will need two extra bapi,  BAPI_ALM_NOTIF_SAVE and BAPI_TRANSACTION_COMMIT.

         The export parameter from create bapi gives a dummy number like - %0000000001. Catch that value and pass it to the save bapi and then do a commit. This all should be a continuous process.

You will get the notification number number from save bapi.

And for Change you need to pass 'X' for the header( bapi2080_nothdri_x) , item( bapi2080_notitemi_x) , cause ( bapi2080_nottaski_x ) and activity( bapi2080_notactvi_x) tables for the fields which you want to change and do a commit after bapi.

Regards

Ashish

Read only

0 Kudos
1,667

Hi,

Thanks for your immediate reply.

I'm using those two FMs but still not getting any output. The CREATE BAPI is not giving any message in the return parameter and MODIFY BAPI is giving "No changes made" error message.

Can you please paste the exact code for the two FMs so that I can get what you want to say and I can solve my query.

Thank You

Read only

former_member201541
Participant
0 Kudos
1,668

Can someone reply with the correct solution. I'm in urgent need.

Thank You

Read only

0 Kudos
1,667

Hi,

I am attaching the working of create notif. Have a look, This should clarify you.

Regards

Ashish

Read only

0 Kudos
1,667

Hi Ashish,

Thanks for your quick reply. The Notification Creation BAPI is working now.

Can you also post the code for Notification Modification BAPI "BAPI_ALM_NOTIF_DATA_MODIFY".

Thank You

Read only

0 Kudos
1,667

Hi,

  Good to know your one query is resolved. Sure I am attaching the change notif working too.

Regards

Ashish