cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI or alternative to create address for a notification header (fill QMEL-ADRNR)?

Marçal_Oliveras
Active Contributor
0 Kudos

Hi,

I don't seem to find the 100% safe way to link an address with a notification.

I did use a similar code to what is described in this blog and it works, but it seems a bit dangerous to directly use IQS0_MODIFY_NOTIFICATION (I used IQS4_MODIFY_NOTIFICATION and it also works). : https://answers.sap.com/questions/364951/generating-adrnr-for-notificationequipmentfunction.html

However, I don't seem to find a BAPI or a good alternative from SAP to solve this issue in a safe and future proof way. Maybe I'm missing something, because seems like it should do a quite common action.

Accepted Solutions (0)

Answers (1)

Answers (1)

peter_atkin
Active Contributor
0 Kudos

What is wrong with the code in the blog?

.

PeteA

Marçal_Oliveras
Active Contributor
0 Kudos

The function to modify the notification will edit the full notification header with the values provided in the I_RIQS5_NEW parameter and this field is informed by MOVE-CORRESPONDING ls_vqmel TO ls_riqs5

Internally, the SAP BAPI is using this logic too (instead of reading directly from the VIQMEL view, it uses the FM IQS4_GET_NOTIFICATION so I replicated the same). But nothing guarantees that one day the mapping to RIQS5 using MOVE-CORRESPONDING is not going to lose some data if SAP decides to introduce some changes.