on 11-25-2021 6:06 PM
Hello, I have been trying to write a script to complete the following in MB11.
1. Using a text field enter an equipment record number the click 'SEND' button.
2. This will then goto IE03 and grab the following data, Material Master, Serial Number, Plant, and Storage Location.
3. Return to MB11 and then apply the above data to the relevant fields (vendor number will be always the same) and then post.
Ideally I would like the message then displayed below the text field where we applied the Equipment Record in step 1.
Is this possible in personas scripting? Your help is greatly appreciated.
Regards,
Ben
Hi Tamas,
Thank you, this has worked perfectly.
While i have your expert attention, may i ask how to apply two drop down boxes and when i populate one with say the `PLANT`, the other drop down box values `STORAGE LOCATION` change depending on the PLANT selection?
Many Thanks,
Ben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I have cracked it! 🙂 Using MIGO instead of MB11 seemed to have worked.
The only thing i would like to add is the ability to return the Performance Assistance message detailing the material document number in a text field bellow my script button.
Is this possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you could try reading the table data from the popup into an array, parse it and extract the created document number from it. I never tried this though so this is just a guess.
Alternatively, perhaps reading the memory parameter MBN via an RFC may work, since that should be set when a new material document is created.
Hi Tamas,
Thank you for your reply. I am not completely sure what or where the script is going wrong, but it seems to get stuck at the point of applying the serial number. And i have noticed that i am unable to inspect this field and obtain the `text string` for me to link the `SERN` (Serial Number) i have obtained from IE03.
In theory this seems like a simple script to apply. And if i can crack this, it will open a raft of opportunity for us to streamline business processes.
I appreciate any help anyone can provide on this.
Many Thanks,
Ben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Benjamin,
You say that "something is not working". What is this "something", i.e. what is the exact problem you are experiencing?
Also, are those
// An OnLoad or OnAfterRefresh script was executed.
lines just comments in your script or come from somewhere else?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Personally, I never have much success when it comes to inter-transaction scripts i.e. If I launch another transaction\session; I just couldn't figure out how to make that new transaction\session communicate back to my original transaction\session.
To get around this; I typically end up using an RFC call. i.e. Create an RFC that mimic your call to IE03; and then return the result directly to the Personas Script.
HTH ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.