2013 Dec 09 10:48 AM
Hi gurus!!
I have created a project in which I add code to QQMA0001 enhancement. I have also painted a button within dynpro SAPLXQQM – 0101 with function code ENV . In function EXIT_SAPMIWO0_009; include ZXQQMU08 I have this code:
CASE SY-UCOMM.
WHEN 'ENV'.
….
The problem is that when saving QM notification I get this error:
“Función solicitada ENV no prevista.” Nº mensaje: V0104
This means that within program control SAPLIQS0; OK_CODE field has ENV value. How could I make OK_CODE to become blank from include ZXQQMU08 ?
Thanks in advance.
2013 Dec 11 7:59 AM
2013 Dec 11 7:59 AM
2013 Dec 13 10:03 AM
hi!!
This is the solution given in that thread:
in module user_command_0100 of PAI
Here i get the OK-CODE of the main screen
CONSTANTS: c_okcode(17) TYPE c VALUE '(SAPLMR1M)OK-CODE'.
DATA: wa_okcode TYPE sy-ucomm.
CLEAR wa_okcode.
FIELD-SYMBOLS: = l_okcode.
ENDIF.
I´m sorry but I don´´t understand.
I have written this code: in module user_command_0100 of PAI
CONSTANTS: c_okcode(17) TYPE c VALUE '(SAPLIQSO)OK-CODE'.
DATA: wa_okcode TYPE sy-ucomm.
CLEAR wa_okcode.
FIELD-SYMBOLS: = l_okcode.
ENDIF.
What is l_okcode? I have no such field. I have no ok-code in my subscreen because it is not posible to create it; system does not allow it. Anyway; in this code where is the main program´s ok-code cleared?
Thanks in advance.
2013 Dec 13 10:45 AM
I have solved my problem in this way:
In the PAI of SAPLXQQM – 0101 screen I have writen:
DATA: ok_code(21) VALUE '(SAPLIQS0)OK-CODE'.
FIELD-SYMBOLS <ok> TYPE any.
ASSIGN (ok_code) TO <ok>.
if <ok> = 'ENV'.
clear <ok>.
ENDIF.
Now I am not having any error-.