‎2009 May 15 4:26 PM
Hi Colleagues !
I'd like to enhance a notification with the above BAPI. The notification had 3 positions, I'd like to add new positions. I fill the table gt_item:
gt_item-refobjectkey = gw_qmnum.
gt_item-item_key = gw_key. "Old position no + 1
gt_item-item_sort_no = gw_key. "Old position no + 1
gt_item-d_codegrp = '13FE-ART'. "New value
gt_item-d_code = ZQMMESSAGES_TBL-cdfart. "New value
gt_item-dl_codegrp = '13FE-ORT'. "New value
gt_item-dl_code = ZQMMESSAGES_TBL-cdfort. "New value
append gt_item.
I call the BAPI:
CALL FUNCTION 'BAPI_ALM_NOTIF_DATA_ADD'
EXPORTING
NUMBER = gw_qmnum
TABLES
NOTITEM = gt_item
RETURN = gt_ret
.
After this BAPI I call
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
The BAPI will be processed without error (GT_RET is empty). But I don't see the new position !
Do You know, what's wrong ?
Thanks a lot and kind regards
Peter
‎2009 May 16 7:12 PM
Hi,
I cannot interpret your bug. As per I know, follow the below sequence.
'BAPI_ALM_NOTIF_DATA_ADD'
'BAPI_ALM_NOTIF_DATA_MODIFY'
'BAPI_ALM_NOTIF_SAVE'
'BAPI_TRANSACTION_COMMIT'
I hope this helps.
Regards
‎2009 May 18 9:03 AM
Hi Lohitha,
the FM BAPI_ALM_NOTIF_SAVE solves my problem, thank You.
I have a question to FM BAPI_ALM_NOTIF_DATA_ADD. How do I have to fill the parameter structure NOTFULLTXT (BAPI2080_NOTFULLTXTI) ? What do I have to define for the elements of the structure OBJTYPE and OBJKEY ? Can You give me an example ? I'd like to save a long text for a position.
Thanks a lot and kind regards
Peter