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: 

Enable disable custome screen in me21n me22n me23n

Former Member
0 Kudos

Hi,

I have created a custome tab in me21n at header level.Every thing is working fine expect edit/display mode.

My custome tab should be edit/display  along with standard screen.

I am not getting,how to do thid.

I created this tab using screen exit 'MM06E005'.

Regrds

Neeraj

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

Hi

You can hide the tab dynamically or you can enable disabled the elements in the custom tab by using

LOOP AT SCREEN.

iF SCREEN-NAME EQ 'ABC'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Nabheet

10 REPLIES 10

hemanth_kumar21
Contributor
0 Kudos

Hi Neeraja,

Create a Group(name - test) for those fields Modulepool.

Code in PBO

\


Case sy-ucomm.

when 'ME21'.

Loop at screen.

        IF screen-group1 EQ 'test'.

          screen-active = 1. ->change as per your requirement/standard screen

    ENDIF.

endloop.

When 'Me22'.

Loop at screen.

        IF screen-group1 EQ 'test'.

          screen-active = 1.    ->change as per your requirement/standard screen

    ENDIF.

endloop.

When 'Me23'.

Loop at screen.

        IF screen-group1 EQ 'test'.

          screen-active = 1. ->change as per your requirement/standard screen

    ENDIF.

endloop.

endcase.

nabheetscn
Active Contributor
0 Kudos

Hi

You can hide the tab dynamically or you can enable disabled the elements in the custom tab by using

LOOP AT SCREEN.

iF SCREEN-NAME EQ 'ABC'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Nabheet

0 Kudos

Hi Nabheet,

I already tried all this, some time it works fine but not all scenario.

IN Me22n there is a button change/Display, according to that button my tab my tab should get display or change along with other standard tab.

Regards

Neeraj

0 Kudos

Yes you must be doing it based on tcode right now. So you need to move that check based on I_TRTYP/ I_AKTYP. This will have the values based on create/change/display

 

AKTYP = 'H' - create PO

AKTYP = 'V' - change PO

AKTYP = 'A - Display PO

0 Kudos

Thanks Nabheet you saved me again.

I have on more problem.

when i created project in cmod, it is working fine.

But i get a message:

The project contains inactive include tables:

CI_EKPODB

what should i do to activate it.

Regards

Neeraj

0 Kudos

You must have added some field in this include. Go to SE11 and activate it

0 Kudos

No i did not add any field in this structure and when i go to SE11 to activate it.

it says:

CI_EKPODB does not exist. Check name.

I also adjust the database.but still the thing is happening.

Regards

Neeraj

0 Kudos

If you have to add soome custom fields at items level it should be added in this include. First you need to got se11 enter table EKPO scrooll down you will this include name double click to create and add fields. Save and activate

0 Kudos

I do not have to add any field in this inclue, cause i did not created any thig at item level.

Former Member
0 Kudos

Hi Neeraj,

  For all the screen elements, maintain Group ID as G1 for example.

  In PBO of your screen, write

 

LOOP AT SCREEN.

  IF SCREEN-GROUP1 = 'G1'.

   SCREEN-INPUT = 0.

   MODIFY SCREEN.

ENDIF.

ENDLOOP.