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 BAPI_ALM_NOTIF_DATA_ADD

Former Member
0 Likes
3,364

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,535

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

Read only

0 Likes
1,535

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