Purpose
Specify additional searchhelp selection criteria
Solution
Check the searchhelp definition via transaction SE11. All "import" parameters can be used (checkbox in column "Imp"):


InputField
(12,2) "Material number" (12,20) size=10 _
 
  name="matnr" searchhelp="MAT1" _
 
  shselname1="WERKS" shselvalue1="0001"

This mechanism does not work if the parameters are not marked as "import" parameters. For example in searchhelp VMVAA:

InputField (12,2) "Order number" (12,20) size=10 name="aufnr" searchhelp="VMVAA" _
  
shselname1="TRVOG" shselvalue1="0"

"Transaction group" is empty, and so sales orders, inquiries, quotations, contracts,... will be selected unless the user specifies "0" in this field for sales order selection.
In the case of searchhelp "VNVAA" there is an easy workaround, since the user parameter id VTV is specifed for the parameter TRVOG (column "Default value" in the searchhelp definition). Using the notation "$VTV" as parameter name you can address this user parameter:

InputField (12,2) "Order number" (12,20) size=10 name="aufnr" searchhelp="VMVAA" _
  
shselname1="$VTV" shselvalue1="0"

This trick does not work for the other parameters. To handle these, copy the SAP searchhelp and change the "import flag":

Now all parameters can be addressed:

InputField (12,2) "Order number" (12,20) size=10 name="aufnr" _
  
searchhelp="/GUIXT/VMVAA" _
  
shselname1="VKORG" shselvalue1="1000" _
  
shselname2="VTWEG" shselvalue2="10" _
  
shselname3="SPART" shselvalue3="00" _
  
shselname4="TRVOG" shselvalue4="0"

Components
InputAssistant