Skip to Content

Add and hide new tab on ME21N

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

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

    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:

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 24, 2016 at 11:59 PM
    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" ?
    
    
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 25, 2016 at 06:45 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 25, 2016 at 08:38 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded