on 04-27-2015 2:43 PM
Hello Friends,
I am trying to get hands on experience in Screen Personas and while trying to work on display vendor details in one screen getting error.
First, I am trying display XK03 details in one screen and I am going step by step (first to display address details), before I include all information in one Screen.
Clarifications:
1. In XK03, I want to make certain check box (General Data & Accounting info) as selected and make it as “Default”.
2. I want to make Company Code as default “1000”.
3. And from next screen, I want to copy Address details in first screen.
If you can help me, that would be of great help.
Please find below screenshot of Script
Screenshot of Vendor screen.
Please let me know what mistake I am doing.
Regards,
Srikanth
In step 4, you are pasting the vendor number into the wrong object. Use the object picker to select the correct target field...
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the script editor, in the Paste action you have in step 4, click on the target object, currently "ses[0]" in your script. It should look like this:
The arrow at the right-hand end is the object picker. Click on that and you can then select the screen element you want to paste the value into. In XK03 I'd expect that to be "ses[0]/wnd[0]/usrUSRAREA/ctxtRF02KLIFNR".
Steve.
Following on from Steve's response, I note that in step 2 of the script, again you have not specified where the 'Vendor' Value is to be copied from. Again, you need to use the object picker to specify this.
The screenshot supplied looks as though the vendor has not been entered so perhaps this could explain why you are getting the error message as the address is not displaying hence Control is unknown?
regards,
Ian
Hi Ian & Steve,
Thanks for your help.
I made changes to the script and now I am getting the value as required. But, I need a small help in the script.
After entering the vendor name and if I press enter, it goes to the actual vendor screen and I need to stop it. Can you please help me, how to make changes. Attached script for your reference.
Regards,
Srikanth
Hi,
If that is the complete script, then it ends once you have copied the address fields. I think what you need at this point is to return to your main screen after copying the values and paste them into your target fields.
After step 14 in your script you need to push the green back button so try adding this to your script:
in step 15.
This will return you to your main screen where you will then need to paste all your address fields into the relevant target fields.
I hope I have understood your issue correctly.
Regards,
Ian
Hi Srikanth,
I think I understand you now. When you press enter, it goes to the vendor display address screen instead of running the script?
Have you linked the script to the enter vendor number field?
If not, click in the vendor number area:
then click the link button:
You will see this:
Again, use the object picker to select your script button.
Then Press Link:
And save.
This way when you press enter it should run the script for you.
Again, I apologise if I have misunderstood you.
regards,
Ian
For the check box (in his case for example the Address, select the field
and then click on the properties button and change the IsSelected to be true:
For default values, one way would be to record the values in the script so they get populated the with the same values whenever the script is executed. Thats what I tend to do. I also then hide them if they are always the same.
Other users on here will no doubt have other ways to have default values as well.
Regards,
Ian
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.