cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger IDOC for SAP PM/QM Notification whenever data is created/changed in real time

kjyothiraditya
Participant
0 Kudos

Hi Experts,

Can you please throw some light on how to trigger IDocs whenever a Quality Notification is created/Saved in realtime ? Like when user changes some data, we have to trigger the notif data via IDOC in real time. The users want it in realtime. I know we have some user exits/badis where we do not have the saved data yet(ie database commit is not done still ) .

Thanks and Regards,

Jyothir Aditya

kjyothiraditya
Participant
0 Kudos

Any updates please ?

Accepted Solutions (0)

Answers (2)

Answers (2)

peter_atkin
Active Contributor

Jyothir Aditya

Have a look at the QQMA* user-exits via transaction SMOD.

You should still be able to see the data in memory before its saved to the database.

PeteA

kjyothiraditya
Participant
0 Kudos

Hi Pete,

yes there is an exit QQMA0014 which if for 'before save'. But i am not sure if we can write there as the changes wouldnt be commited to database by then and also the data could be changed in this exit or other badi afterwards. I want to know if we could trigger after the changes are committed to database ? We also need to send some long texts.

So also another question is would be be a good idea to use this exit ?

kjyothiraditya
Participant
0 Kudos

Is there any standard functionality provided similar to SD module, where we could trigger ALE/EDI according to the settings done in NACE ?

p244500
Active Contributor

Hi,

For the Quality Notification can use, user exit EXIT_SAPMIWO0_020 can trigger IDOC (IDOC INOTIF) or you can use BAPI BAPI_QNOTIFICAT_CREATE in your program.

iDoc for PM Notification (tran IW21)

Regards,

Nawa.

kjyothiraditya
Participant
0 Kudos

Hi Nawa,

Thanks for your response. Yes exit EXIT_SAPMIWO0_020 looks suitable place to trigger IDOC. But there are some validation done in that and other exits also could be triggered in later stages. So i am a bit hesitant about it. Also we need to send some long texts which might not be saved at that time.

Idoc inotif doesn't have all the fields we want. So created a custom idoc.

About BAPI BAPI_QNOTIFICAT_CREATE, our scenarios for Quality notification, and above BAPI interface doesn't have all parameters. Usi g BAPI_QUALNOT*

p244500
Active Contributor
0 Kudos

Hi,

I used only EXIT_SAPMIWO0_020 user exit for trigger IDOC.

Regards,

Nawa