Application Development 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: 

Need some help on Custome Created screen in ME21N,ME22N & ME23N

Former Member
0 Kudos

Hi Guys,

I have created a new subscreen for the above mentioned Transactions which has only 1 check box.

Every thing is fine ,but i am facing some problem's like when i press click on change/display button I am getting sy-ucomm as 'METOGG'.

I have written a screen logic for the screen.But as the display and change push buttons are same my check box screen is always showing as not disabled.

What should i do, when i click on change it should not be disabled.When i click on display it should be just in display mode.

How to differentiate the same push button whether it is display/change mode.

Thanks,

Prasad.

8 REPLIES 8

Former Member
0 Kudos

Hi

U should have a parameter indicating the action type, u should check it.

Now I don't know what you're using to create your screen: BADI or user-exit?

If the user-exit, check the interface of the fm, here u should see a field called I_TRTYP

The same parameter is in method OPEN of the BADI ME_PROCESS_PO_CUST

Max

0 Kudos

dheeru,

i am just putting a suggestion.

in the PBO, loop at the screen elements, take the screen-active value for some other field of the screen and put the same for your check box.

0 Kudos

HI Max,

As soumya mentioned I am using user-exit.But there is no field I_TRTYP

Hi soumya,

I am using my screen logic code in the PBO module it self.As u said i will check other screen logics too.

Is there any other way to differentiate display and change.

Thanks,

Prasad.

0 Kudos

Hi Soumya,

I tried for the screen loops.

But not working.Is there any other way to differentiate these buttons.

Thanks,

Prasad.

0 Kudos

Hi all,

Can any one tell me how to proceed.

Thanks,

Prasad.

Former Member
0 Kudos

Hi,

What is the enhancement you are using if it is 'MM06E005' the function modules 'EXIT_SAPMM06E_006' and 'EXIT_SAPMM06E_007' would have 'I_TRTYP' which would let you know if you are in change mode or display mode.these would be triggered when the screen is called try here based on this variable.

Regards,

Himanshu

Former Member
0 Kudos

Thanks for both MAX & VERMA.

0 Kudos

Hi,

I am having the same problem as you were for disabling the fields in ME23N.

Please share the solution for this.

Thanks.