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: 

QM Notification and EXIT_SAPMIWO0_020 ( Save Notification )

Former Member
0 Kudos

Hello.

i'm using the customer exit EXIT_SAPMIWO0_020 in XQQM for generating an email when the notification is saved.

Now i want to add the partner I_PARNR in the structure RQM02.

I know that we can call the following statement to get the partner:

SELECT SINGLE *

FROM IHPA

INTO wa_ihpa

WHERE objnr = i_viqmel-objnr

AND parvw = 'KU'.

But this only works, if the notification is already saved to DB.

Do you know, how to get / read the partner in the user-exit EXIT_SAPMIWO0_020

before the notification is saved ?

I tried also to call the function module PM_PARTNER_GET, but with no results.

Thanks for your ideas.

Sebastian

4 REPLIES 4

Former Member
0 Kudos

Hi,

Check the T_VIQMUR table in the user exit if it has the PARNR.

You can directly use that

reward if it helps

0 Kudos

Hi Nanda.

thanks for your fast answer.

i checked T_VIQMUR and it has a field PARNR. But it's empty.

Is there another way to get PARNR ?

Thanks,

Sebastian

Former Member
0 Kudos

Hi Sebastian,

Did you ever find a solution for this one - how to get the value of I_PARNR in the structure RQM02 (User Responsible) within EXIT_SAPMIWO0_020 when saving a PM Notification?

thanks

Jason

andrea_rosati
Explorer
0 Kudos

Use FM QMEM_STATUS_OLD_NEW_READ

Regards,

Andrea