Application Development 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: 

BAPI_ALM_NOTIF_DATA_MODIFY does not update data like IW32

Former Member
0 Kudos

BAPI_ALM_NOTIF_DATA_MODIFY does not update data like IW32. Please help, Thanks!

7 REPLIES 7

Former Member
0 Kudos

to expect a quick & effective response, pls. eloborate u r query, like wht is ur business requirement? where u r getting issue? etc.

thanq

0 Kudos

Thanks for quick response! Here is the code summary, I just want to update the notification items (solutions). But the BAPI still does not do it. Is there any more parameters should I pass to the BAPI. Thanks!

lwa_notifiitem-item_key = '0001'.

lwa_notifiitem-descript = 'text 1'.

append lwa_notifiitem to p_it_notifitem.

lwa_notifitem_x-item_key = 'X'.

lwa_notifitem_x-descript = 'X'.

append lwa_notifitem_x to p_it_notifitem_x.

  • update the modify notification

call function 'BAPI_ALM_NOTIF_DATA_MODIFY'

exporting

number = p_srv_no

notifheader = lwa_notifheader

notifheader_x = lwa_notifheader_x

importing

notifheader_export = p_notifheader_export

tables

notifitem = p_it_notifitem

notifitem_x = p_it_notifitem

return = lit_return.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'

importing

return = lwa_return.

0 Kudos

I guess, below is typo,

notifitem_x = p_it_notifitem........it shud look like notifitem_x = p_it_notifitem_x

thanq

0 Kudos

Ah yes my typo in the message but not in the code. It still does not update. Thanks!

Former Member
0 Kudos

It only updates when items exists. Thanks!

0 Kudos

I had the same problem. To solve this problem I have to use 3 BAPI´s:

BAPI_ALM_NOTIF_DATA_MODIFY

BAPI_ALM_NOTIF_SAVE (dos not forget this BAPI)

BAPI_TRANSACTION_COMMIT

Best regards

Douglas Capretz

erik_mertens3
Explorer
0 Kudos

In the X table you should supply the key, so try  lwa_notifitem_x-item_key = '0001'  instead  of  lwa_notifitem_x-item_key = 'X'. Should work.

And indeed use the bapi_alm_notif_save and bapi_transaction_commit modules.