cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Screen Personas scripting question

Former Member
0 Kudos

Hi SAP Guru´s

I´m new to SAP Screen Personas and I wanted to know some things about it.

I´m not really familiarized with the scripting options of Sap Screen Personas even after seeing videos and reading stuff about the subject.

I want to complete some fields automatically in va01 at item level but when I do this, I´ am only able to do it when the soldtoparty company and the material are the same . The same happens when I want to create a material in mm01 (also, when I´m editing the mm01 I can´t swith to another tab even when I have marked that tab as cachable). My specific question would be: Is there a way of leaving fields automatically fulfilled but not for only a single sold to party and material (va01) or material number (mm01)?

Look forward to hearing from you.

Thanks,

Maximilian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

To answer the easy question first, you can't switch tabs while in edit mode. You have to save & exit, change tabs, and then go back into edit mode. Even for cached tabs.

If I understand your first question correctly, you've recorded a script to fill in some fields in a transaction - VA01 or MM01 - and you've attached that script to a script button. Now when you press that button the script runs and fills in the values you typed while recording. And your question is how to vary those values and have the script create sales orders for other customers or materials. Is that right? In particular, you want the user to be able to specify the customer or material to use?

On the screen with the script button you need to add one or more text fields where the user can type customer and material numbers. Your script can then use a "Copy Value" action to grab the values from those fields and you would replace the existing "Enter Value" for the customer number with a "Paste Value" to use the value you previously copied. Does that make sense?

My blog describes using this technique for controlling a display transaction, but the principle would apply just as well to your create scenario.

If I've not understood your problem, my apologies - please clarify and I'll try again!

Steve.

Former Member
0 Kudos

Hi Steve!

I understand the point but by doing that, will I be able to open the matchcode for each field?

Former Member
0 Kudos

No, I'm afraid it is not possible to use search helps on custom text fields. The second part of the blog I mentioned describes how to build a "find" function by scripting a list display transaction, for functional location in that example. This is a lot like a search help and might be good enough for you. Sometimes there isn't a suitable list display transaction already, but writing one is not a difficult thing to ask of your ABAP team.

Steve.

TobiasQueck
Advisor
Advisor
0 Kudos

Hi Steve,

Steve Rumsby wrote:

To answer the easy question first, you can't switch tabs while in edit mode. You have to save & exit, change tabs, and then go back into edit mode. Even for cached tabs.

I am happy that I can correct you here. If you have cached the tab container then you have to Save & Exit once. From then on, you can switch tabs in edit-mode as well. It is sometimes a bit tricky because you have to double click the tab header (not the tab header text) to switch.

Cheers,

Tobias.

Former Member
0 Kudos

Thanks for the correction I had tried, but obviously have never clicked in quite the right place. I think I always caught the label and didn't think to try clicking around the edges.

Steve.

Answers (0)