04-08-2009 11:35 PM
BAPI_ALM_NOTIF_DATA_MODIFY does not update data like IW32. Please help, Thanks!
04-08-2009 11:58 PM
to expect a quick & effective response, pls. eloborate u r query, like wht is ur business requirement? where u r getting issue? etc.
thanq
04-09-2009 12:04 AM
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.
04-09-2009 12:11 AM
I guess, below is typo,
notifitem_x = p_it_notifitem........it shud look like notifitem_x = p_it_notifitem_x
thanq
04-09-2009 12:22 AM
Ah yes my typo in the message but not in the code. It still does not update. Thanks!
04-10-2009 12:31 AM
07-14-2010 8:10 PM
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
10-24-2013 12:47 PM
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.