cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Screen Personas - Enjoy transactions

Former Member
0 Kudos

Hi,

Has anyone got experience with transactions like ME51N (create purchase requisition)?

I'm having difficulty with the various subscreen open/close states, i.e. getting them to stay open, and also simply merging fields from various tabs in the item subscreen. It won't seem to let me refresh the subscreen after I've enabled caching of the tabs.

I've read a blog that states Personas plays nicely with enjoy transactions, but so far thats not my experience.

any tips and tricks would be great thanks!

Neil

Accepted Solutions (1)

Accepted Solutions (1)

TobiasQueck
Advisor
Advisor
0 Kudos

Hi Neil,

Could you please show in a video what you did that caused this behavior? I am not fully sure I understand the problem, yet.

Cheers,

Tobias.

Former Member
0 Kudos

Hi Tobias,

here is a short video of the problem... I hope you can see what I mean, there doesn't seem to be a way to refresh the cached tabs.

steverumsby
Active Contributor
0 Kudos

This is just a stab in the dark, but I've seen behaviour like that in ME23N when the "Control Id Overwrite Logic" wasn't properly set up for the transaction. I don't have any such settings for ME51N in my system - do you? Look in the "General Actions" section of the /persos/admin_ui transaction.

I wonder if they are needed to make this transaction work properly? ?

Steve.

Former Member
0 Kudos

I have nothing there either

Not entirely sure how this feature works .... I'll consult the config guide again unless theres an idiots guide for this feature?

0 Kudos

Hi Neil,

Please update the control ID overwrite logic for ME51N transaction.

The following should be the entries:

Transaction : ME51N

Program : SAPLMEGUI

Screen Number : 0014

Original COntrol ID : ^ses\[0\]/wnd\[0\]/usrUSRAREA/subcntSUB0SAPLMEGUI\w+$

New COntrol ID : ses[0]/wnd[0]/usrUSRAREA/subcntSUB0SAPLMEGUI__COMMON__

Save and relaunch Personas.

Try it now, and let us know.

Regards,

Sushant

steverumsby
Active Contributor
0 Kudos

Hi Sushant.

Is this functionality documented anywhere? Why is it there, what does it do, and how do we construct new entries where necessary?

Thanks,

Steve.

0 Kudos

Hi Steve,

We will have a note shortly having all the Screen and Control Id overwrite logics discussed in detail and also about the entries.

I am trying to write down something more generic and useful because if we leave on the end users to figure out what exactly goes in, we MIGHT have more issues

Thats why we ship some of the values already and which are tested out.

Regards,

Sushant

steverumsby
Active Contributor
0 Kudos

Thanks Sushant. That sounds exactly right!

Steve.

Former Member
0 Kudos

Well that worked!

Look forward to the note where we can learn more about this.

0 Kudos

Hi Neil,

Just to add, these above values should already be there with you in client 000 of your system.

As part of configuration, you need to implement SAP Note 1869640. It copies all the values shipped from client 000 to XXX of your system.

Regards,

Sushant

steverumsby
Active Contributor
0 Kudos

These weren't in my system in client 000. Perhaps you've added new ones to the installation as time has gone one and my installation is just too old? Do you need a way to automatically add new standard settings as you produce them? Can you provide them as part of a service pack, maybe?

Steve.

Former Member
0 Kudos

We have the same issue as Steve indicated. Our client 000 contains some configuration, but nothing for transaction ME51N. Is there any way the config can be made available for all the current  transaction codes that require it?

Former Member
0 Kudos

Hi Neil, I just started messing around with the ME51N screen yesterday and in addition to the issue you've highlighted here, I'm encountering some issues hiding various portions of the screen. There's no issue editing the screen, but I find that when I attempt to view my new flavor the transaction is defaulting to the collapsed sections (Header, item details, etc) and I'm not seeing the modified screen I designed. Granted I'm "VERY" new with Personas so it could be my lack of knowledge.

Are you experiencing this as well?

Former Member
0 Kudos

Hi,

Yes I have the same issue, and I notice someone posted the same issue in a new thread.

I'm afraid I don't have an answer yet

TobiasQueck
Advisor
Advisor
0 Kudos

Neil,

Have you tried using an onload script for the screen that expands all the collapsable areas? That works nicely for me.

Cheers,
Tobias.

Former Member
0 Kudos

Thanx Tobias. I actually used a suggestion you made on a previous thread and have the onload script calling the shortcut keys to expand each section. Works perfectly.

Former Member
0 Kudos

Hi again, thanks for the tip... being a bit dim I don't actually know what an 'onload script' is? ... i've searched the forum but can't find anything but this post.

Is there a tutorial video for this or something similar?

thanks.

Former Member
0 Kudos

If you look at the properties for your main user area you'll see one called "OnCreateHandler". This event will fire every time you screen is created/refreshed.

If you create a script to expand the three collapsed areas and assign it to a script button, you can then put the script button id in the OnCreateHandler property. This will result in the button being virtually "pushed" every time you load the screen. You would then obviously hide the script button and it all appears seamless to the end user.

Former Member
0 Kudos

We were having the same issues with ME51N, but added the transaction configurations listed above and everything is working now. 

However, I am not able to switch between tabs when in edit mode as shown in the demo vid.  Instead, I have to pull fields out of a single tab, then save and exit, then switch to the next tab, then go back into edit mode and repeat the process for every subsequent tab.  It's not really a flaw, just a convenience issue, so I wanted to mention it as an FYI to anyone else who was using the video as a guide.

Cheers!

Cheryl

steverumsby
Active Contributor
0 Kudos

If you have tab caching enabled you can switch between cached tabs while in edit mode by double clicking on the tab. You do need to avoid the tab label, though, which isn't easy. It was a while before I realised you could do this. I try to aim just to the left of the label, but still on the tab itself.

Steve.

former_member193190
Participant
0 Kudos

Hi,


Thanks for your reply....


Can you please elaborate on the scripting side, I want to put a condition that whenever the collapsible areas are already expanded then no action is required and if it is closed then only the script should get triggered. Can we put such condition in scripting, if so then how to do that?


geoff_dowell
Member
0 Kudos

Sushant,

I'm having a problem with this transaction as well.  I've done as you said, with adding the control ID overwrite logic.  To Me, It seems like the tabs aren't caching correctly.  I'm trying only to show the 'Account Assignment' tab and the 'Valuation' Tab.  From what I can tell, they are two different 'screens', and I'm not sure what the problem is.  It will constantly freeze up on me, and it refuses to hide the Material Data tab, even though I have told it to do so.

I can provide a video if needed.

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear all!

I'm still having problems with ME51n and hoping to get some help here....

I've started collecting experience with Personas cause we think about simplifying this purchse requisition screen in that way to bring only the needed fields on 1 screen.

But I get some irritations/ problems - to me Personas doesn't work properly with this transaction.

Biggest problem are the expanding/ collapsing buttons. I would need information from Header text area, ALV-position entering area and position details as well. Never mind what I'm doing - the header text area is beeing thrown away by personas...

I nearly read every post I could find and added these settings according to SAP Note 1999747 to the /PERSOS/ADMIN_UI - SAP-Dynpro Personas Administration - Maintain Control Id Overwrite Logic (and re-created a new flavor after having done this):


But ME51n-flavor is still getting confused with the screens - can anybody tell me I am missing something?

This is how my new flavor looks like:

thank you, Jens

Former Member
0 Kudos

Hi,

The big challange for ME51N is that the GUI layout changes depending on the backend data chnages, and the GUI change stays in next launch.  And no matter if you do change datat from Personas or change the data from SAP GUI, the UI will reflect the change too.

In your case, you expend the Header icon, but if someone in SAP GUI run ME51N and collapse this icon, it will be collapsed in your Personas UI as well.

My solution: I made a button to make sure the 3 icons are always expended when the screen is loaded. This is important as you will get script failure when you try to copy data into the SAP objects which located inside a collapsed icon.

Moreover, you likely need to collapse the "side panel" too in Personas, otherwise, if someone expand it from SAP GUI. you will see a suprising sidepanel in Personas UI too - not too good.

Does this help?

Dong Zhu

manukapur
Active Participant
0 Kudos

I used a slightly different technique to come over the problem with Document Overview/ header open close.

Header Open / Close and Line Open / Close are governed by various F Codes in ABAP. You can check the F Codes in SE41 for a transaction.

Try calling these F Codes using call transaction and you can open /close header or line item or even the Document overview.

It worked well and was a robust solution.

See if it helps

Regards,

Manu

Former Member
0 Kudos

nice trick, what's the program called for me51n that can be used in se41? Thx.

Dong

manukapur
Active Participant
0 Kudos

For ME51N

The Program name is SAPLMEGUI

and click on Function List and select display in Transaction SE41

So the following Function Code exists for various Collapse and Expand bits

METOGGOFF1           Collapse Header

METOGGOFF2           Collapse Overview

METOGGOFF3           Collapse Item

METOGGON1            Expand Header

METOGGON2            Expand Overview

METOGGON3            Expand Item

METROF               Document Overview Off

METRON               Document Overview On

Now when you open ME51N -- in the TCODE box you can just key in these codes to perform collapse and expand.

So in Personas if you have to do it just use CALL transaction and key in the code.

If you need to an item selection expansion screen and don't know if the user has it already or not, you can safely call this Function Code after you load the main transaction which is in this case is ME51N.

Give it a go. See if it helps.

Regards,

Manu

Former Member
0 Kudos

Hi Manu,

Very nice trick. This is an easy and stable way of making sure that all 3 icons are expanded, and is better than pressing the icons. Thanks a lot for sharing! I would give you credit if I could. 🙂

Dong

former_member105930
Active Participant
0 Kudos

Thanks Manu,

That is an amazing trick. I will be using this from now on.

Many thanks,

Ian

Former Member
0 Kudos

Hi Manu,

I am new to Personas and am also facing same issue in ME53N.

"Now when you open ME51N -- in the TCODE box you can just key in these codes to perform collapse and expand"


Can you please elaborate above step, After calling ME51N through Tcode do we need to manually call the FC?


Thanks,


Peter

manukapur
Active Participant
0 Kudos

Hi Peter,

If you open Transaction ME51N in SAP GUI and then in the TCode Box you need to enter the FC mentioned. Press Enter.

You can see the header / item section collapsing and expanding.

You can build this in Personas using a script button later.

Regards,

Manu.

Former Member
0 Kudos

Thanks Manu, I am able to do that.

I am trying to close the Help Window when screen loads, I got below code from recording and tried to use it in Script, but it's not working.

"session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:*/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell").setFocus();

session.findById("wnd[0]/shellcont/shell/shellcont[0]/shell/btnHIDEHELP").press();"

-> And when I go to account assignment tab in item level, it collapses header text window, how to handle it.

-> For different Account (Cost Center,Project etc), we get different fields how to design screens in that scenario

Thanks for your support.

Peter

diwheeler
Explorer
0 Kudos

That is a *very* elegant solution. Thank you - saves what I was doing, but far less clunky.  Makes sense now you know. 😉