Application Development and Automation 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: 
Read only

How to clear main program´s ok_code when adding a customer button through QQMA0001 enhancement

Former Member
0 Likes
2,103

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.

1 ACCEPTED SOLUTION
Read only

former_member182371
Active Contributor
0 Likes
1,199

Hi,

maybe this thread can give you an idea:

okcode and subscreen | SCN

Best regards.

3 REPLIES 3
Read only

former_member182371
Active Contributor
0 Likes
1,200

Hi,

maybe this thread can give you an idea:

okcode and subscreen | SCN

Best regards.

Read only

0 Likes
1,199

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.

Read only

0 Likes
1,199

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-.