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_DELETE

Former Member
0 Kudos

All,

We have a scenario while using the BAPI - BAPI_ALM_NOTIF_DATA_DELETE.

We execute this BAPI in a loop -

1)The input tasks are deleted for the first notification and the status is set to say, 'ATCO'. This status is stored in an internal table g_sttab inside the BAPI.

2)We have saved the notification using SAVE BAPI for notification and then the COMMIT BAPI.

3)In the next loop pass, we send the 2nd notification to the BAPI_ALM_NOTIF_DATA_DELETE - but the status of the previous notification is still retained in the internal table g_sttab. As a result, it is wrongly updating the status of the 2nd notification.

Has anyone encountered this problem before? Is there any way to refresh this internal table present in the BAPI?

I could not find any FMs/BAPIs for refreshing the internal tables in the corresponding function group.

Any pointers are requested...

Regards

Deepthi.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Before endloop try like this

clear: g_sttab.

refresh: g_sttab.

Regards,

Satish

0 Kudos

Satish,

This internal table is declared inside the BAPI function group. It cannot be accessed in the custom program.

Regards

Deepthi

Former Member
0 Kudos

Hi deepthi

Please Refresh yous Internal Tables Before passing it to BAPI

I Think we cnt refresh a BAPI because it is a FM so wht we can do is Refresh our own Internal Table

Please Check this

Reward Points if it solves your problem

hitesh