Hi all
I would like to write a script in Personas to simplify the Vendor search in ME21N. But I can't figure out how to paste the value into the Search box. I've tried various options but nothing works. Is it possible and how?
User should type the vendor name in the Vendor field and click a 'Search' button which will:
- Copy the info typed in the field
- Launch the Vendor Search function (F4)
- Select Purchasing vendor
- Enter the value copied in (1) into the name field and press Enter
However when I record the above steps into a script, I can't make sense of it in order to change it!
The script is as follows:
![Snapshot 2014.12.31 10.54.jpg]()
In Step 3, 'TEST*' is entered into the 'Name' field in the Search window (see below). Instead, I want to enter the value I have copied. How do I do that?
![Snapshot 2014.12.31 10.57.jpg]()
Looking at the script recorded in Personas (below) the value pasted in is held within the code (highlighted red). is it possible to replace this value with the value copied from the Vendor field?
{"Id":"6a1662b2-b40d-4b5f-9cd5-8d4c571654df","Actions":[{"ActionCategory":"0","Action":"4097","ControlID":"ses[0]\/wnd[0]\/usrUSRAREA\/subcntSUB0SAPLMEGUI0013\/subcntSUB0SAPLMEGUI0030\/subcntSUB1SAPLMEGUI1105\/ctxtMEPO_TOPLINESUPERFIELD","DerivedID":"ses[0]\/wnd[0]\/usrUSRAREA\/subcntSUB0SAPLMEGUI__COMMON__\/subcntSUB0SAPLMEGUI0030\/subcntSUB1SAPLMEGUI1105\/ctxtMEPO_TOPLINESUPERFIELD","AdjustedID":"ses[0]\/wnd[0]\/usrUSRAREA\/subcntSUB0SAPLMEGUI\/subcntSUB0SAPLMEGUI\/subcntSUB1SAPLMEGUI\/ctxtMEPO_TOPLINESUPERFIELD","Content":null},{"ActionCategory":"0","Action":"4","ControlID":"ses[0]\/wnd[0]\/usrUSRAREA\/subcntSUB0SAPLMEGUI0013\/subcntSUB1SAPLMEVIEWS1100\/subcntSUB2SAPLMEVIEWS1200\/subcntSUB1SAPLMEGUI1102\/tabstripHEADER_DETAIL\/tabbtnDYN_1102TABSTRIP4","DerivedID":"ses[0]\/wnd[0]\/usrUSRAREA\/subcntSUB0SAPLMEGUI__COMMON__\/subcntSUB1SAPLMEVIEWS1100\/subcntSUB2SAPLMEVIEWS1200\/subcntSUB1SAPLMEGUI1102\/tabstripHEADER_DETAIL\/tabbtnDYN_1102TABSTRIP4","AdjustedID":"ses[0]\/wnd[0]\/usrUSRAREA\/subcntSUB0SAPLMEGUI\/subcntSUB1SAPLMEVIEWS\/subcntSUB2SAPLMEVIEWS\/subcntSUB1SAPLMEGUI\/tabstripHEADER_DETAIL\/tabbtnDYN_1102TABSTRIP4","Content":null},{"ActionCategory":"0","Action":"8193","ControlID":"ses[0]\/wnd[0]","DerivedID":"ses[0]\/wnd[0]","AdjustedID":"ses[0]\/wnd[0]","Content":"4"},{"ActionCategory":"0","Action":"461","ControlID":"ses[0]\/wnd[2]\/search\/critcol\/crit1803","DerivedID":"ses[0]\/wnd[2;SAPLWDTM_0100_1242;242]\/search\/ts\/tpentry21\/content\/critcol\/crit1803","AdjustedID":"ses[0]\/wnd[2]\/search\/critcol\/crit1803","Content":null,"Arguments":[{"Key":"sign","Value":"I"},{"Key":"operator","Value":"CP"},{"Key":"low_value","Value":"TEST*"},{"Key":"high_value","Value":""}]},{"ActionCategory":"0","Action":"24","ControlID":"ses[0]\/wnd[2]\/search\/critcol\/crit1807\/cond[0]","DerivedID":"ses[0]\/wnd[2;SAPLWDTM_0100_1242;242]\/search\/ts\/tpentry21\/content\/critcol\/crit1807\/cond[0]","AdjustedID":"ses[0]\/wnd[2]\/search\/critcol\/crit1807\/cond[0]","Content":null,"Arguments":[{"Key":"sign","Value":"I"},{"Key":"operator","Value":"EQ"},{"Key":"low_value","Value":"500"},{"Key":"high_value","Value":""}]},{"ActionCategory":"0","Action":"3","ControlID":"ses[0]\/wnd[2]\/search\/btnSEARCH","DerivedID":"ses[0]\/wnd[2;SAPLWDTM_0100_1242;242]\/search\/btnSEARCH","AdjustedID":"ses[0]\/wnd[2]\/search\/btnSEARCH","Content":null}]}
Thanks
Gareth