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.










Please advice me on how to achieve this.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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

    me51n.jpg (512.0 kB)
    Add a 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?



  • Posted on 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.

    PO2.jpg (47.6 kB)
    PO3.jpg (63.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.