cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to access and modify the data in QM01 from user-exit QQMA0001?

bobi04
Explorer
0 Kudos
103

Hello,

In transaction QM01 when I create a notification type 'Q3' I want to display a new subscreen with Purchase Doc. and Item similar as 'Q2' type notification. In order to do it I'm trying to do it with user exit QQMA0001 and I'm able to create a new subscreen with these fields but I also want to be get the material and plant from the Purchase Doc/Item which is entered and set it to the next subscreen ( standard ) and I'm not being able to achieve it since the PBO of this standard subscreen is not triggered. I already tried to fill the E_VIQMEL but it's being cleaned and not propagated to this field...

bobi04_0-1749457655333.png

 

Any ideas on how to do it?

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

RaymondGiuseppi
Active Contributor
0 Kudos

In this enhancement, the FM EXIT_SAPMIWO0_008 should copy the values of I_VIQMEL to the shared area VIQMEL, meaning the Dynpro is already able to display these values.
Be aware that the PAI exit EXIT_SAPMIWO0_009 copies I_VIQMEL to E_VIQMEL before your code copies data from your subscreen to E_VIQMEL.

Have you tried accessing purchase order item data from memory (or the database in case of failure) using an FM such as ME_EKPO_SINGLE_READ (without refreshing or bypassing the buffer), or using a dirty assignment to memory? Have you also checked memory IDs such as MAT and WRK?

bobi04
Explorer
0 Kudos
absolutly nothing of that works and that's because it's not triggered the PBO of the subscreen area of Material...