Skip to Content
0

Add and hide new tab on ME21N

Oct 23, 2016 at 04:49 PM

142

avatar image

Hi,

I'm new to work with user-exits and BAdIs. I have to change the transaction ME21N to have another tab with a specific name and two fields Z, but only when the EKGRP field (in another tab) has a specific value, the new tab should appears .

I found the user-exit MM06E005 and used the 101 screen to add the tab, but I have two problems, first do not know how to change the name of the tab that appears with the name "customer data" is possible to change this name?

After the most important I've seen some examples of how to put the tab invisible, but not I am able to do. Do where should I put the code for the tab initially appear invisible and only after changing the value of the field appears EKGRP?

Thanks in advance for answers and assistance you can provide me, sorry if my English is not so good...

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

avatar image
Former Member Oct 24, 2016 at 03:20 AM
0

Hi Filipe,

About 'when the EKGRP field (in another tab) has a specific value, the new tab should appears',

My proposal as below: (For example: If pur.group = '020', Then new tab should disapper)

1. Screen number add: MODULE MODIFY_SCREEN_101.

2. Code as follow:


ekko-01.jpg (32.4 kB)
ekko-02.jpg (31.8 kB)
Share
10 |10000 characters needed characters left characters exceeded
Filipe Martins Oct 24, 2016 at 11:59 PM
0
Hello, thanks for the reply 

But the screen-active, the screen-input and even screen-invisible just make disappear the sub-screen, tab to "customer data" still appears, simply shows an empty frame... 

Does anyone know another solution may have to use another screen-exit, it appears that this will not serve to what I whant ... not seem to me to be possible to change the tab name by using this screen always gets the name right "customer data" ?

Share
10 |10000 characters needed characters left characters exceeded
Simone Milesi Oct 25, 2016 at 06:45 AM
0

Did you check the tons of existing threads in the archive?

Like here or this doc or even this?

They got nice guides and explains on how to add a custom screen: I followed them years ago and I got no problem in my implementation.

Share
10 |10000 characters needed characters left characters exceeded
Nic Teunckens Oct 25, 2016 at 08:38 AM
0

There's a really comprehensive SAP Press book on the Enhancement / Development approach in SAP MM : "ABAP Development for Materials Management in SAP: User Exits and BAdIs". This could be of great help if you need to do Enhancements in the Materials Management area ...

Kind regards

Nic T.

Share
10 |10000 characters needed characters left characters exceeded