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

Problem with USER_COMMAND_9001 (own subscreen)

Former Member
0 Likes
1,015

Hi,

we use an on subscreen for MM01/2/3 and handle some fields in it.

This work OK. Now i will create an Button with Tcode: UNNRDE

and insert some code in USER_COMMAND_9001 like this:

{code}

MODULE USER_COMMAND_9001 INPUT.

*

  CASE SY-UCOMM.

*

    WHEN 'UNNRDE'.

*

      MESSAGE ID 'ZZ' TYPE 'I' NUMBER '010'

        WITH 'Tcoce UNNRDE noch nicht aktiv!'.

*

    WHEN 'UNNREN'.

*

      MESSAGE ID 'ZZ' TYPE 'I' NUMBER '010'

        WITH 'Tcoce UNNREN noch nicht aktiv!'.

*

  ENDCASE.

*

ENDMODULE.                 " USER_COMMAND_9001  INPUT

{code}

This works also like i want.

Problem: after this modul i get allways this Error (sorry in German):

Satz Z1 UNNRDE  in Tabelle T133E nicht vorhanden

Meldungsnr. M3748

Is it possible to avoid this message without changing T133E?

Can i reset UCOMM? I have tried reset SY_UCOMM without result.

Has anyone an idea?

Regards Dieter

3 REPLIES 3
Read only

Former Member
0 Likes
751

Looks like SAP does not like that you are changing the screen sequence and wants you to go through customizing. Is this a repair? How did you put the sub-screen in the first place?

Regards,

Shravan

Read only

RaymondGiuseppi
Active Contributor
0 Likes
751

9001 is a subscreen, so you must manage the ok_code/sy-ucomm in the main screen (the SAP standard), not in a subscreen.

So yes, clear sy-ucomm AND the OK_CODE of the main screen.

Regards,

Raymond

Read only

Former Member
0 Likes
751

Hi to all,

i have solved with doing entries in T133E and T133D.

Thanks.

Regards, Dieter