Search help result
Hi there.
There is a F4IF_INT_TABLE_VALUE_REQUEST FModule but it returns only 1 field from search-help line chosen
Could You tell me how can I get the whole line ?
Hi,
This is how the FM works.
data:
begin of t_values occurs 2,
value like kna1-begru,
end of t_values,
t_return like ddshretval occurs 0 with header line.
t_values = 'PAR*'.
append t_values.
t_values = 'UGG'.
append t_values.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BEGRU'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc = 0.
read table t_return index 1.
o_begru-low = t_return-fieldval.
if o_begru-low = 'PAR*'.
o_begru-option = 'CP'.
else.
o_begru-option = 'EQ'.
endif.
o_begru-sign = 'I'.
append o_begru to s_begru.
else.
o_begru = i_begru.
endif.
Regards,
ramya
Similar Messages
-
Adding new field in search help result view
Dear Experts,
I want to include one more field in search help result. The field shoud give description.
How can i do this in UI result view?
If I try to add attribute in result view, the result view is of type table, and it does not allow us to add value node. It will allow us to add model attribute. If I add attribute in search help resut table view then will i be able to see it in table form.
Thanks and regards
Pankaj KumarHi Pankaj,
Its not that difficult.
There are two ways
1. You can enhance your Result BOL object through EEWB and append your z-field to std. BOL result object. This then appears automatically for your result context node and then you can pull it to the view in config tool.
2. Directly go to your context node class (CN00 , CN01 etc ) , now copy method GET_S_XYZ , paste it and rename as GET_yourfieldname. Similarly copy SET_S_XYZ, GET_M_XYZ and GET_I_XYZ and paste and rename. Once activated. Quit the component browser completely. Open again using bsp_wd_cmpwb. open you view and then your node. You can find you new attribut present as struct.YourField.
You can then copy code from available setter-getter methods for this attribute. You must handle setter getter by urself in this case. In may std. nodes, this is done for description field. I have personally done this for product descripton field.
if you dont want the field to be part of structure ( i.e. as struct.Yourfield ) then you can also copy paste GET_XYZ, SET_XYZ methods. your filed then do not appear as Struct.YourField but it just appears as YourField name under context node.
Hope this helps you.
Thanks & Regards.
You can check PRODUCTDESCRIPTION attribute of BTAdminI node of BT115QIT_SLSQ/Items view of BT115QIT_SLSQ component. They have added it the same way as i described above. You see the GET_ method to see how they are retrieving product description. In my object, i wrote direct query to Comm_prshtext table to retriev short_text by passing product guid and then assigen it to value variable of Get method.
Edited by: suchita P on Sep 20, 2008 2:22 AM -
Restrict search help results on order types
I need to restrict search help results on the account assignment category for order type for the users when creating a SC. I have define fix values on the attributes PM_AUART & ANR & KNT (Order type, Order & Account assignment category) and maintained the related others PM attributes as well. But when I select the search help the system brings up all the Orders type and not the ones defined at the user attributes - PM_AUART (Order type). Do I am missing something? How can I restrict the search help when searching for order types?
Your support is highly appreciated.
Thanks
WilliamHi
Please elaborate which SRM version you are currently on..
Which Search help you are referring to and the name of the serach help which is being used ?
Regards
- Atul -
How to get search help results in RIGHT-JUSTIFIED column
I am writing a search help with search help exit. Therefore, I use a table lets say tabA. I don't need all fields of tabA but need some further fields which I fill during exit.
tabA does not have currency or number fields.
I need a currency field and use a char20 field of tabA instead. filling of this field and showing results is o.k., but of-course it is shown left-justified.
I did not find any fields of shlp-fielddescr which sounds like left/centered/right-alignment. Another try was to fill char20 field with leading '_' signs - that looked terrible and was not right-justified either, because of not fixed-size font.
Let's resume: there is no number or currency field which I can use. The shown results appear in a column of not fixed-size font.
Any other idea?Hi, I have the same problem. Did you get to resolve it? . Thanks
-
Search help results of cost center
Hi everybody
Cost center is normally assigned to SC item based on the attribute set in PPOMA_BBP (attribute CNT). Now, when you're in the item details screen and want to change that default cost center you can search for other ones using the "glasses icon". This starts some kind of a F4 search help screen and returns a list of all available cost centers existing in the backend system.
Our SRM users are NOT created in the backend system, therefore we're not able to control cost center authorizations via backend user authorizations.
So the problem we have is, that in the result screen we get by far too much cost centers from which the enduser can make his choice. We'd like to reduce this result list to only the cost centers assigned via CNT attribute on org. unit level in PPOMA_BBP.
I already looked at BAdIs BBP_F4_READ_ON_ENTRY and BBP_F4_READ_ON_EXIT (method GET_COSTCENT) and to verify if they could do what I wanted simply tried to delete all entries from table ET_COSTCENT_LIST and ET_COSTCENT_FAVOURITES... no changes, the result list still contains a complete overview of all our backend cost centers.
To all SRM gurus out there: how is it possible to restrict the result list of cost center search help?
Thanks again anyone for some help.
Kind regards,
RenaudHi Case,
We can get this functionality with out changing any standard program.
Herewith I am sending details.
1. Implement the badi using definition BBP_DRIVER_DETERMINE and write below mentioned code in method DETERMINE_DRIVER.
IF functionname = 'B470_SHLP_CALL' AND sy-tcode NE 'PPOMA_BBP'.
functionname = 'ZB470_SHLP_CALL'.
ENDIF.
2. Copy the standard FM B470_SHLP_CALL to ZB470_SHLP_CALL then make
the changes in ZB470_SHLP_CALL.
Here you have to make two changes.
a. Clear the destination name (LV_DESTINATION) for calling search help
from SRM
b. Give your own search help name (ZCOST_CENTER we need to create this search help in SRM )
Now it will call the search help ZCOST_CENTER from SRM only
Sample code
CASE shlp_field.
WHEN gc_g_l_acct.
lv_shlpname = 'SAKO'.
lv_shlpparam = 'SAKNR'.
WHEN gc_cost_ctr.
lv_shlpname = 'ZCOST_CENTER'.
lv_shlpparam = 'KOSTL'.
CLEAR lv_destination.
3. Create you won search help (ZCOST_CENTER) in SRM and write code in search help exit for getting the cost centers from user attributes. For reading the cost centers from user attributed you can use the FM BBP_READ_ATTRIBUTES (pass the CNT as attribute ID)
Regards,
Padmaraju
If it useful to you,please reward points. -
Want search help result directly only key field
Hi friends
i need one help, working on 4.6c, i want any fm that takes search help name and select options and write back the result list .
i know some fm's like DD_SHLP_GET_HELPVALUES which is returning the result in string, for that i have to do lot of other stuff in that one i have to use cl_alv_table_create=>create_dynamic_table which i don't want.
i want only the key field result list like F4IF_FIELD_VALUE_REQUEST rerurns RETURN_TAB type table of DDSHRETVAL .
thanks in advanceHi Shiva,
I know that this post is really old, but just for people who still visit this post, I extended Uwe's solution and came up with this. (Uwe's solution causes a popup to appear which I do not want as am accessing the F4 helps remotely).
DATA: ls_shlp_descr TYPE shlp_descr,
lt_ddshretval TYPE TABLE OF ddshretval,
ls_ddshselops TYPE LINE OF ddshselops.
" Get F4 Help structure
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = 'T006_T'
IMPORTING
shlp = ls_shlp_descr.
" Add filter criterion
ls_ddshselops-shlpname = 'T006_T'.
ls_ddshselops-shlpfield = 'MSEH3'.
ls_ddshselops-sign = 'I'.
ls_ddshselops-option = 'EQ'.
ls_ddshselops-low = 'MON'.
APPEND ls_ddshselops TO ls_shlp_descr-selopt. " You can add more such filter options
" Get the result values
CALL FUNCTION 'F4IF_SELECT_VALUES'
EXPORTING
shlp = ls_shlp_descr
TABLES
return_tab = lt_ddshretval.
Maybe there are other ways to do this, just that I found this pretty OK for my case.
best regards,
Ashwani -
Can AUTHORITY_CHECK effect in search help result list
For example ,authorizaiton objid a value 1,2,the user only have authorization a = 1,but in F4 for search help ,the user can see value 1 and 2 for a .Can i do someting to make the user only can see value 1 for a?
i have an idea using search_help_exit and authority_check,is there any other way to do this ?Hi,
I need to perform authority check on the field NAME1 present in the standard screen - customer master ( T.Code-XD02). Only certain users should be allowed to edit the field and others should be restricted.
I have created a field exit FIELD_EXIT_AD_NAME1 for the ADRC-NAME1 field.
Now inside this field exit i need to write the authority-check code.
I have created the authorisation object Z_KNA1_NAM for the field NAME1 using the SU20 and SU21.
For this scenario how do i write the authority-check code in my field exit?
Below is my field exit code,is that correct?
FUNCTION FIELD_EXIT_AD_NAME1.
""Local Interface:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
AUTHORITY-CHECK OBJECT 'Z_KNA1_NAM'
ID 'NAME1' FIELD SY-UNAME
ID 'ACTVT' FIELD '03'.
IF SY-SUBRC = 0.
MESSAGE 'Not Allowed to Edit the Name 1 Field' TYPE 'E'.
ENDIF.
ENDFUNCTION.
In the above code i have given SY-UNAME in the code line 2 - ID 'NAME1' FIELD SY-UNAME ,is that correct? what should i give there?
Please help me on this issue.
Cheers,
P.S.Chitra -
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.
-
How to disable buttons in Search help screen ?
Hi All,
How do we disable Print button in customer search help ?
We want that nobody should be able to take a printout of Customers from Search help result. Hence we want to disable the print button which comes in Search help.
Any idea how do we go about it ?
Regards,
AshishHi there,
you should be able to do that with the search help exit. Try replacing the PF-STATUS for instance. I am not sure if this works though!
For instance:
IF call_control-step = 'PRESEL'.
SET PF_STATUS 'ZZ' OF PROGRAM 'ZZZ'
ENDIF.
Or you might call the existing PF-STATUS and use EXCLUDING.
Roy -
How to extend search help range?
Hi all,
I have a requirement. I have to display more than 5000 search help results in the selection screen when I press F4 on a field. Usually SAP permits only 5000, but I want to display more than 5000.
Useful answers will be rewarded immediately.
Thanks & Regards,
Venkat.Hi Putcha,
I don't think there is any restriction you can need to provide how many hits you required. and you can give any entry(There may be some limit but much more than 5000)
Regards,
Atish -
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.
-
Search Help: Multiple Return Values in WD4A
Hello,
I would like to fill more than one fields on my WD4A screen when executing a search help for one input field.
So I need to manage somehow to get all the export parameters from the search help and post them to a context node.
Simple example: The customer sales view consists of sales org and customer number. The search help contains both of them as export parameter. So when the user selects one user I need to get and show the sales organization as well.
In "normal" SAP Dynpro development its quite easy as shown in thread
Re: Export search help results to more dynpro fields.
But how can I execute a search help in WD4A to get all the export parameters?
Thanks for you help!!
Kind regards,
HendrikHi,
found the answer by myself.
The solution is:
- Create a structure which contains the fields for the search help.
- then create the search help with all required export parameters.
- Assign the search help to the corresponding field in the structure.
- Create the context node with reference to the structure.
All context node attributes are then filled automatically. -
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 -
PA30, Maximum rows 50, Search help PREM
Hello,
Do you know maybe what could be a problem with transaction PA30
when I'm using search help for finding persons I will get only 50 rows on
the list and the message DH803 :
'There are more than 50 possible inputs"
when I was analysing program it's hard coded for 50th but maybe there is a way to set (increase) this value in configuration?
Thank you in advance Bogumilaeven if (T77S0) RECFA:HIHIT is set to 500, the search help results in PA30 are reduced to 50. where can I temporarily extend that value to e.g. 200?
your input is highly appreciated.
rgds
Lorenz -
Function to create Input Dialog for Search Help
Hi Folks,
Is there any function to create the dialog to limit the search help result as the one that appears when you create the Search Help through the SE11.
This is because when I use F4IF_FIELD_VALUE_REQUEST I'm just being able to set one value to restrict and hopefully the functionality of intervales, exclusions, etc that the search help dialog when created through the se11 does have and haven't found it on F4IF_INT_TABLE_VALUE_REQUEST.
If you can share a little example I really appreciate it.
Thanks in advance.
Regards,
Gilberto LiHi
You can accomplish by using search help exits..... search the forum by "Search help exit" and check my wiki on search help exit code.
Maybe you are looking for
-
How do I create a shared photo stream?
I see discussions regarding shared photo streams - all pertaining to issues with existing shared photo streams. I don't see anything that provides instructions on how to create a shared photo stream. How is this accomplished? And how do I allow so
-
Hi all, I am trying to implement inventory management scnerio in BW3.5 using standard PDF , for this i activate infocube 0IC_C03 and connect that cube througt these data sources 1. 2lis_03_bx,bf and um .At R3 end i fill up set up table and data is v
-
Rs485 and VISA Configure Serial Port.vi ?
I'm given the following spec: RS485, full duplex asynchronous, 19.2K baud, 1 start bit, 1 stop bit, 1 parity bit, and 8 data bits. VISA Confgiure Serial Port.vi does not have input for 1 start bit and parity choices are none, even, odd, mark, space.
-
E71 says "Update error" when updating the Mobile V...
Hi to everybody. I must say mobile VPN client (IPsec) is a pain in the ***. It's incredible how problematic is this software. I'm trying to connect to my VPN server (Linux-based) using Openswan, and after trying for some months, I cannot connect it
-
Followed hyperlinks in PowerPoint 07 WON'T change color
I have created a jeopardy-style game in PPT and the hyperlinks aren't cooperating. When I click on one of the options, it takes me to the appropriate slide, but when I return to the main slide the link I previously clicked did NOT change color. Thi