on 2022 Jan 11 9:05 AM
Hi all,
I need to calculate a value of Z field in VIQMEL when the user is creating or editing PM notification ( trans. IW21/2).
I use user exit EXIT_SAPMIWO0_009 (Transfer Notification Data from User Screen) where I can edit the VIQMEL entry.
My problem is that the calculation needs values from VIQMFE (fekat,fegrp,fecod), and I don't have them in the exit mentioned above.
I tried to find some other user exit where the values are full and save them to the memory, but couldn't find any place where I can do that.
Do you have any idea how to solve this?
thank you, Mo
Request clarification before answering.
Got a tip from a team member that solved my problem -
getting the values from the screen using FM DYNP_VALUES_READ:
DATA: ls_dynpfields TYPE dynpread,
lt_dynpfields LIKE TABLE OF ls_dynpfields,
* get fecod from screen
ls_dynpfields-fieldname = 'VIQMFE-FECOD'.
APPEND ls_dynpfields TO lt_dynpfields.
ls_dynpfields-fieldname = 'VIQMFE-FEGRP'.
APPEND ls_dynpfields TO lt_dynpfields.
CALL_FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'SAPLIQS0'
dynumb = '7324'
TABLES
dynpfields = lt_dynpfields
EXCEPTIONS
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to call the FM READ_NOTIFICATION_POSITION with the I_BUFFER parameter set to abap_true.
(You could first check in debug for vaues available in global data LVIQMFE[] of function group IWO0, include LIWO0TOP)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raymond, thanks for your reply.
This doesn't return any data in qmfe (when calling without i_buffer it returns the saved data).
Am I doing something wrong?
APPEND e_viqmel TO lt_viqmel.
CALL FUNCTION 'READ_NOTIFICATION_POSITION'
EXPORTING
i_buffer = abap_true
TABLES
iviqmel = lt_viqmel
iviqmfe = lt_viqmfe
.
Mo,
The catalog codes are not available in the standard user-exit QQMA0001 import parameters - but you can read this data from memory. This can usually be done via standard function modules, if not, then you can use field-symbols to get the data.
Talk to your ABAP team who should be able to help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried Raymond's READ_NOTIFICATION_POSITION suggestion below?
User | Count |
---|---|
95 | |
39 | |
8 | |
6 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.