Skip to Content

SAP Screen Personas: Expand/Collapse of Header and Item details in PO

Hello Experts,

Has anyone got experience with enjoy transactions like ME23N (Purchase order display).

I am planning to display some data from all the three selection like Header, Item and Item details selections (One Tab from each of this selections).

When I am Expanding the Header selection the Item details selections is Collapsed automatically and visa-vasa How I can stop this behavior.

Please guide me, How I can achieve data from all the 3 selection .

I have maintain the entries in Main Control ID Overwrite Logic for ME21N,ME22N and ME23N.

ME21N     SAPLMEGUI     0014



ME22N     SAPLMEGUI     0014



ME23N     SAPLMEGUI     0014



Please advice me on how to achieve this.




Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Oct 06, 2014 at 04:46 PM

    Hi Venky,

    Enjoy transactions are tricky because of their dynamic behavior. The expand/collapse are decided based on the screen area available for display by the program dynamically. If you have a tab which is tall in header area, then selecting that will collapse item or item details area which can lead to tab caching failure if any (control does not exists error). So I would advise you to design your screens differently.

    If you still need to have all expanded, then you can try fullscreen mode and higher resolution and having a script button in oncreatehandler to expand header, item, item details. But as I said before, if screen size is not sufficient, it would lead to collapsing of one of the areas.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 06, 2014 at 04:52 PM

    Yes this is possible, we've done it with ME51N which is similar to ME23N

    Thing is, with these enjoy transactions, there are containers within containers within containers.

    The trick is to ungroup all the containers and drag out all the UI elements you need onto the screen and hide the rest!

    Then you can get all 3 sections on the screen at the same time... see below

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Neil Ward,

      I am currently doing the same thing in ME21N and I have followed your suggestion.

      However, I am loosing all the contents of my header. I have removed 3 fields from the header and placed them outside the container and then the container has been hidden.

      Any suggestion on how to solve this problem?



  • Oct 07, 2014 at 11:30 AM

    HI Chinthan & Neli Ward,

    Thanks for valuable input, I have tried above all the point, but issue remains same.

    1. I have ungroup all the containers and drag out all the UI elements and placed outside containers.
    2. To avoid the space issue, I have remove the item selection (Now I am trying to display only three fields in "Header" selection and one table in "Item details" selection  )
    3. Reduced the height and wide all the elements.

    After doing all above 3 points also the behavior is same,

    @Chinthan - "Having a script button in oncreatehandler to expand header, item, and item details"

    I am not able to figure out point "script button in oncreatehandler to expand header", Could you please explain with more details

    Please find the screen shots below.  

    In the below table "Item Details is Collapsed"

    When click on the "Item Details" Expand/Collapse button the screen changes as shown below.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 16, 2015 at 07:17 AM

    I solved it for ME51N by scripting the button this way:

    session.findById("wnd[0]/tbar[0]/okcd").text = " ME51N";



    session.findById("wnd[0]/tbar[0]/okcd").text = " METOGGON1";


    session.findById("wnd[0]/tbar[0]/okcd").text = " METOGGON2";


    session.findById("wnd[0]/tbar[0]/okcd").text = " METOGGON3";


    You can get the codes from transaction SE41 by keying in the program name.

    Add comment
    10|10000 characters needed characters exceeded