LPOS AND SPOS in search help
Hi,
Can anyone tell me whts the use of LPOS and SPOS in search help.
I have read the help but not getting it exactly.
Thanking u all.
Regards,
kavita
<b>LPOS</b> -> Position of field in search help results report/table.
<b>Explaination .</b>
when you data is displayed in the F4 help that time it will be based on the LPos position .
<b>SPOS</b>-> Position of field in search help restriction screen.
<b>Explaination .</b>
When you press the F4 button the selection screen will be displayed with fields of the Search attached to that Field ....there the order of the field in the selection screen was determined by the SPOS .
<b>Note:</b> If you read 10 time again and agani slowly you will better understand the Definition of the line of LPOS & SPOS
<b>Example :</b>
search help ztest
1. matnr spos = 2 , lpos = 1
2. maktx spos = 1 , lpos = 3
3. meins spos = 3 , lpos = 2
Then
use the above search help for table field or for report parameter .
then when you press F4 ... the selection screen will be displayed with
SPOS
<b>
1.MAKTX
2.MATNR
3.MEINS</b>
When press enter you will see the data displayed for above fields as
LPOS
<b>1.MATNR
2.MEINS
3.MATKX</b>
reward points if it is usefull....
Girish
Similar Messages
-
could u plz tell me practically why we give lpos and spos in a searchhelp?what is the advantage?
LPOS:
Position of the parameter in the hit list.
If the parameter should not appear in the hit list, leave this field empty. No position number may occur more than once in this column, but gaps are allowed. They do not affect the design of the hit list.
SPOS:
Position of the search help parameter in the dialog box for limiting the hit list.
If the parameter should not appear in this dialog box, leave this field empty. If no such dialog box appears while making possible entries as defined by this elementary search help, leave this field empty for all parameters.
No position number may occur twice in this column, but gaps are allowed. They do not affect how the selection screen looks.
Award Points If Useful
Bhupal -
Inconsistancy between CRMD_ORDER and ICWebClient in search help
In this ICWCShowF4Help - Doco I asked about calling a search help from the ICWebClient. I now have that working but there is an inconsistancy about how it is working in from CRMD_ORDER and from the Web Client.
The search help is the one associated with field CRMT_PRIL_QUERY_ICWEB_MAIN-CATEGORY_ID ie search help CRM_PROD_CATEGORY
This produces a list of product categories with texts from CRMD_ORDER. Inside the Web Client the same search help is omitting the texts and they cannot be searched.
Does anyone have any clues, notes or ideas about this behaviour?
Any ideas or pointers will be gratefully received and rewarded.
Kind regards,
Nigel JamesStep:1
In the View just add the code for a search help,for example
<!-- Code for input box with search help,just replace structure name and -->
<!fieldname by the actual structure and field name created in se11.>
<crmic:inputField id = "ID"
maxlength = "40"
width = "100%"
value = "<%= Variablename %>"
showHelp = "FALSE"
onValueHelp =
"ICWCShowF4Help(<%= mpage_context->m_page_id %>_FieldName,<%= mpage_context->m_page_id %>_MaterialText,'StructureName-FieldName','','<%= mpage_context->m_page_id %>')"
disabled = "TRUE"
/>
Step:2
Go to se11 create a structure with the respective field and attach the search help to that field and appropriately check exp imp in the field.The important thing here is that the secondary search help should not be used here.I suggest rather define a view and use it in the structure.
thanks,
ashish. -
Help with DYNP_VALUES_READ and DYNP_GET_STEPL in search help exit
Hi,
I'm coding a search help exit for a field on a table control and I need to get access to the value of another field that's on the same line in order to limit the hit list. I can use DYNP_VALUES_READ to return the values from the step loop, but I can't find out which line of the step loop I'm on. DYNP_GET_STEPL always returns 0, presumably because I'm now in a function group and the step loop is getting reset. Any ideas?
Thanks in advance,
AndrewI want to read EBELP and INFNR.
Below is code that i'm using:
MOVE 'MEPO1211-EBELP' TO t_campos-fieldname.
APPEND t_campos.
MOVE 'MEPO1211-INFNR' TO t_campos-fieldname.
APPEND t_campos.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = 'SAPLMEGUI'
DYNUMB = '1211'
TABLES
DYNPFIELDS = t_campos
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
READ TABLE t_campos INDEX 1.
l_ebelp = t_campos-fieldvalue.
READ TABLE t_campos INDEX 2.
l_infnr = t_campos-fieldvalue.
The sy-subrc = 0, but the FM didn't bring the values of the screen fields. Is there some wrong with the filed name?
Thanks. -
VA01 and VA02 Change Search Help
I need to add extra field in the search help of the ORDER in SALES ORDER (VA01, VA02). I want to see both the ORDER and the DESCRIPTION in the search help of ORDER field.
I ask for this in existing thread but it was marked as Answered: [ Re: VA01 and VA02 Search Help Mitigation]
The main problem is that after i create search help in se11, I do not know what to do after that. Where is the place to say this search help is for this field. I search for exits but no results. Some advises will help.
Thank you.I try this and learn a lot. But i think that this is not the exact way. It do not work. The table is VBAP and the field AUFNR (Order Number). It has not search help. It has only the standard one field. When I press F4 on it it shows only its list and I need the description. When I press F4 and see the technical data it show table AUFK and field AUFNR. The description is in AUFK-KTEXT.
I think i miss something small to do it. I think that I do not need collective search help or search help exit because it is for some more complex checks. May be I need only view with this two fields and elementary search help. But how to 'tell' to the field to use it. -
Pa30 to view only a selected infotype and still use search help prem
Is it possible to use PA30 to have non-hr users see a custom infotype but none of the other standard infotypes? I would like for the non-hr users to be able to use the Search Help PREM to find records for the custom infotype.
Is this type of inquiry better served by creating a custom program?These type of requirements are served at the security level but instead going into so much complexity, it is a better idea to write a custom report for the requirement.
Regards,
Amit
Reward all helpful replies. -
How to add search help in Ztable fields and how to make filelad as check bo
Hello Friends,
I have one table named ZAUDIT with 5 fields.
1 . I want to put search help for each field but it shows tht Inactive message.
Sujjest me steps to create search help.
2.. In my table I want to display content as check boxes in my last field.
How to make it?
Points awarded soon.
Regards,
NVMHi,
steps to create search help:
Step1 : Go to Se11 and Select Search Help and Enter One Name and Click Create
Step2 : Enter your Table name in 'Selection Method' Field.
Step3 : Enter the field Name and tick the Flags Imp and Exp and Type 1 and 2 in Lpos,
Spos fields.
Step4 : Save and activate it.
Goto the table, select the field which u want search help and press button search help, give the search help name which u created.
To add check box for particular field,
make use of data element <b>check_box</b> -
Question on Search Help and Authorization Check for Sales Order Type
Question 1:
When I go to VA01 and click the search help, it shows only order type that are not blocked.
However, when I have sales order type in select-options of a Z program,
S_AUART FOR VBAK-AUART
I click on the search help, it gives all the sales order types. How can I have a list with unblocked sales order type only?
Question 2:
I want to check whether a use can extract data from a sales order type (e.g. OR and RE)that he/she authorized to use.
I have include the following in my program:
AUTHORITY-CHECK OBJECT 'AUART'
ID 'AUART' FIELD 'OR'.
It always returns SY-SUBRC = 12.
But order type 'OR' is granted to the user (he/she can create order with type OR in VA01)
Please kindly give me some ideas, thanks.hi,
ad1
use following code:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR auart.
PERFORM auartGet.
FORM auartGet.
CALL FUNCTION 'RV_HELP'
EXPORTING
KEY = VKORG
KEY2 = VTWEG
KEY3 = SPART
KEY4 = '0'
NUMBER = '008'
FIELD_IN = AUART
IMPORTING
FIELD = AUART.
ENDFORM.
ad2.
example:
AUTHORITY-CHECK OBJECT 'V_VBAK_AAT'
ID 'AUART' FIELD 'OR'
ID 'ACTVT' FIELD '01'. "01-create order, 02-change, 03 display
check sy-subrc eq 0.
regards,darek -
Populate and display internal table results using search help exit...
I have copied F4IF_SHLP_EXIT_EXAMPLE and made changes. I want this search help exit to populate and display contents related to 'FIELD1' when the user enters a specific value for it in the search help screen, meaning when the user restricts the search by that value. For field2, field3, field4, field5, field6, field7, and field8 I am using a custom view.
Following is the code:
TYPES: BEGIN OF t_search,
field2 TYPE field2,
field3 TYPE field3,
field4 TYPE field4,
field5 TYPE field5,
field6 TYPE field6,
field7 TYPE field7,
field8 TYPE field8,
field1 TYPE field1,
END OF t_search.
DATA: it_itab TYPE TABLE OF t_search,
wa TYPE t_search,
wa_selopt TYPE ddshselopt,
wa_fielddescr TYPE dfies.
ranges: r_field1 for std_table1-field1
STEP SELECT (Select values)
FREE: r_field1.
**Get the value entered for FIELD1 in search help
LOOP AT shlp-selopt INTO wa_selopt.
CASE wa_selopt-shlpfield.
WHEN 'FIELD1'.
r_field1-sign = wa_selopt-sign.
r_field1-option = wa_selopt-option.
r_field1-low = wa_selopt-low.
r_field1-high = wa_selopt-high.
APPEND r_field1.
CLEAR: r_field1.
ENDCASE.
ENDLOOP.
**Select 'ID' and 'FIELD1' from table into lt_itab
SELECT id field1
INTO TABLE lt_itab
FROM std_table1
WHERE field1 IN r_field1.
IF sy-subrc = 0.
**Now, based on the particular IDs from lt_itab, I need to select other values
from other tables which also have 'ID' as the key.
SELECT std_table2~field2
std_table2~field3
std_table3~field4
std_table3~field5
std_table3~field6
std_table4~field7
std_table4~field8
std_table1~field1
INTO CORRESPONDING FIELDS OF TABLE it_itab
FROM std_table2
INNER JOIN std_table3 ON
std_table3mandt = std_table2mandt AND
std_table3id = std_table2id
INNER JOIN std_table4 ON
std_table4mandt = std_table2mandt AND
std_table4id = std_table2id
INNER JOIN std_table1 ON
std_table1mandt = std_table2mandt AND std_table1id = std_table2id
WHERE
std_table1~field1 IN r_field1.
'id' is common in all the std_tables --> std_table1, std_table2, std_table3, std_table4.
STEP DISP (Display values)
**Then I need to gather all the results in my internal table it_itab and display
in search help results for the value of FIELD1 entered by the user in the search help.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'FIELD1'
fieldname = 'FIELD1'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = it_itab
CHANGING
shlp = shlp
callcontrol = callcontrol.
I am not getting all the data in my internal table and wanted to know if there is anyting wrong in my select statement.
Any guidance will be appreciated and awarded appropriate points.
Thanks.the webdynpro fieldname and the search help input parameter name were made same.
-
Search Help Parameter Default - Problems with VKO and VTW in Sales Order
Hello,
we've implementend an own serchhelp for the material-search.
The fields VKORG and VTWEG have the default VKO and VTW.
If I open this searchhelp in VA03 those values are not filled, if I open it in MM03 or ME23N those values are filled.
My user has the VKO and VTW-parameters set.
We have no custom "preselect-code" implemented.
If I change the values to VKU and VTW the output is the same (works in MM03 / ME23N but not in VA03) (copied default values from MAT1S search help, didn't change my user parameters!)
What could be the problem?Our searchelp was in our own append ZA_SD_MAT1.
Solution:
We deleted this append and added our search-helps to SD_MAT1 and now everythings works in mm03, me23n and va03. -
VA01 and VA02 Search Help Mitigation
Hello Everyone,
I need to restric several search help results to users without authorization to see these values. All these search helps are in transactions VA01, VA02, and VA03. And that is my problem, since they are SAP Standard transactions I can't just modify the way these Search Helps are handle directly.
I did try looking for Search Help Exits or some other Enhancement point where I could place my code and manipulate the Search Helps Information, but I couldn't find something that could help me. If you could please let me know if you know a way to do this, the Search Helps are:
1. Restrict all the searches available in the account assignment tab at the header and item level of the sales order which allow access to view WBS information and projects. Search Help COBL_EX_PRPM.
2. Restrict the plant search that is within the engine model field at the header level of the sales order which that provide access to view the plants names and addresses. Search Help H_T001W_C.
3. Restrict all the sales group searches within the transaction. Search Help H_TVBVK.
4. Restrict all the sales office group searches within the transaction. Search Help H_TVKBZ.
5. Restrict all the product hierarchy searches within the transaction. I think the Search Help is PRODH.
Thanks in advance,
Carlos.
Edited by: SapFigue on Feb 10, 2010 7:06 PMPlease tell how did you do it. Because i have the same problem. I need to add extra field in the search help of the ORDER in SALES ORDER (VA01, VA02). I want to see both the ORDER and the DESCRIPTION in the search help of ORDER field.
-
Hi Abapaers,
i have created a serach help realted to status and descriptiopn .
i have used it in 2 tables . for one table f4 is working for other not working .
Please suggest how can i solve this .
Regards
Arun .hi,
please use any of these methods for applying search help, it will definately help u
you can use function module F4IF_INT_TABLE_VALUE_REQUEST
or
can follow these simple steps for search help:
go to se11==>
put some name after ticking search help radiobutton==>
create==>
then tick " elementery search help " and press enter ===>
then put description and table name in selection method ===>
then put the field on which u want search help in search help parameter==>
tick IMP EXP ==>
write 1 in lpos and spos===>
save and activate===>
double click on table name ===>
select that field and press *search help tab* above===>
then copy
i hope it will help u a lot
thaks and regards
rahul sharma
Edited by: RAHUL SHARMA on Sep 30, 2008 12:52 PM
Edited by: RAHUL SHARMA on Sep 30, 2008 12:53 PM
Edited by: RAHUL SHARMA on Sep 30, 2008 12:54 PM -
Is there any limit for Number of fields in a Search help
Hi,
I have created a search help via SE11 and LPOS and SPOS is defined for all of the fields. The problem is whenever a 12 th field is added it disturbs the list and output is not displayed properly.
The Record Tab is having data of 180 characters, even though it is not taking 12 th field.
Thanks,
Anitha ASelf Answered
Edited by: Anitha A on Aug 24, 2011 5:43 AM -
How to add a field in elementary standard search help ? (H_T012)
Hi everyone,
I need to add a description field in the standard H_T012 search help, I know that collective search helps can be modified by appends, but, how can it be done in an elementary search help ?
Thanks on advance,
VSwarethi swaret,
i tried ur problem.....
nothing special as to be done to add a new field in elementary search........
just press F4 at parameters.
there are already 4 fields...
BUKRS
HBKID
BANKS
BANKL
you just add ur field.....
TEXT1
and specify Lpos and Spos as 5.
and activate...... thats all......
i tried and it worked for me........
i hope it was helpful for u. -
hi,
i want to know the functionality with example on "search help".
how r they useful?....how r they created??...and how to use them in dialog program??
thanksHi Kunal,
There are 3 ways:
1)In the PAI of the screen, add a module Process on value request. For example:
PROCESS AFTER INPUT.
MODULE USER_COMMAND_100.
PROCESS ON VALUE-REQUEST.
FIELD field_name MODULE value_request_for_field_name.
*field_name is the field for which you require search help.
In the Module value_request_for_field_name call this function 'F4IF_INT_TABLE_VALUE_REQUEST'.
2)The above procedure can be used if the field you have defined doesnt have an existing search help.If it already has search help and the field in the screen is taken from the dictionary,then in the attributes,u can check from from dictionary under the dictionary tab.
3)A manual search help can also be created in the se11 transaction by clicking on the search help radio button and giving the table and field name for which search help is required.
Creating Elementary Search Helps
Procedure
In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.
A dialog box appears in which you must select the type of search help.
Select Elementary search help and choose .
The maintenance screen for elementary search helps appears.
Enter an explanatory text in the field Short text.
You can for example find the search help at a later time using this short text.
In the Definition tab page enter the selection method of the search help.
You can enter the name of a table or a view (database view, projection view or help view) here. If you enter a table that has a text table, the name of the text table is automatically entered in the corresponding field.
Using the input help (F4 help), select fields of the selection method as parameter in the Search help parameter area. Select the fields that should be used in the dialog box for value selection or in the hit list.
If the selection method is a table that has a text table, both the fields of the table and the fields of the text table are offered in the input help.
The data element of the parameter is automatically copied from the selection method. The data element defines the output attributes and the F1 help of the parameter in the hit list and in the dialog box for value selection.
You can assign the parameter another data element. To do so, select the Mod flag. The Data element field is now ready for input. Then select a data element with the input help (F4 help). Only data elements whose data type, length and number of decimal places is the same as those of the previous data element can be assigned.
This removes the link between the data element of the search help parameter and the data element of the selection method field having the same name. If you cancel the Mod flag, the data element of the assigned table field is used again.
Define the attributes of the search help parameters.
Select the IMP flag if it is an import parameter. Select the EXP flag if it is an export parameter.
You can define the dialog for the input help with the fields LPos, SPos and SDis. Enter the parameter position in the hit list in LPos. If you enter nothing or the value 0 here, the parameter is not displayed in the hit list.
Enter the parameter position in the dialog box for value selection in SPos. If you enter nothing or the value 0 here, the parameter is not displayed in the dialog box for value selection.
Set the SDis flag if the parameter should be a pure display field in the dialog box for value selection. The user is thus informed that the contents of the parameter restrict the value, but he cannot change this restriction. This makes sense for example when the parameter is an import parameter or if it has a default value.
You can assign the parameter a default value in the Default value field.
Select the dialog type of the search help.
The dialog type defines how the hit list is displayed in the input help.
Save your entries.
A dialog box appears in which you have to assign the search help a development class.
Choose .
Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.
Result
The search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.
Please check this link on how to create search help.
http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
1) after creation of search help, you can assign this to database field in change mode of table and double clicking of the field name.
2) in screen field, double click to see the attributes and give your search help there.
Refer this link
http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
Hope this resolves your query.
Reward all the helpful answers.
Regards
Maybe you are looking for
-
Unable to delete file from trash because it's "in use" not locked.
I'm unable to delete a file from trash. I keep getting the following message: "The operation can't be completed because the item is in use." I've confirmed the file isn't locked and I've tried renaming it but still no luck. I'm running OSX 10.8.4. A
-
Font 3 of 9 is not comming in default concurrent program submition
HI All, i am using font free 30of9 to print barcodes in XML PDF output reports in oracle applications everything is working fine. issue is when i give printer name while sub-meeting the concurrent request it is printing the report with out barcode an
-
Hi, I am using jboss 4.2, java5.0 and Fedora Linux Enterprise Version 4.0 with kernel 2.6 and NPTL 2.3.4 I am using open source network chart generation API provided by geosoft ( http://geosoft.no/graphics/). This API generates chart into swing windo
-
HI, - if I bought an iPad 3 with 30 pin connector and I want it to change it to a lighting connector. that's possible?? -what are the differens with the 30 pin connector iPad 3 and the lighting connector iPad 3 ? -does old iPad 3 has DUAL CORE A6???
-
Can't see certain music files in the music library
I have recently imported some CD's and can see the files in the correct location in the C drive, however I cannot see them in the itunes music library. The file names are identical to others that I can see.