Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Vendor Search button (using F4)

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:

  1. Copy the info typed in the field
  2. Launch the Vendor Search function (F4)
  3. Select Purchasing vendor
  4. 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:

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?

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

Tags:
Former Member
Former Member replied

Thanks all

The answer to the problem is below.  It has to do with Personal Settings.

To fix, go to Menu >> Help >> Settings

In your personal settings, go into the F4 help tab, and ensure the radiobutton “Dialog (modal)” is selected. Save

This resolved the problem I was having.  I am now able to record and modify scripts in the F4 search screen,

Regards

Gareth

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question