Screen element search help
hi all,
i set input/output field search help in screen.
when i choose one of the values in f4 help i hav to do modify another screen element how to do it.
please reply if u know..
thanks in advance.
Hi,
Attaching a search help to a screen element
A search help can be directly assigned to a screen field in two ways.
The name of the search help must be entered in the Screen Painter in the Attributes for the field in the field Search help.
The name of the search help can be defined for selection screens in ABAP reports in the PARAMETERS or SELECT-OPTIONS statement directly following the supplement MATCHCODE OBJECT.
However, input help is only available for this particular screen.
In this case, the search help is only available for this screen.
OR by useing FM
refer this code
TYPES : BEGIN OF ST_OBJID_SH,
OTYPE TYPE HRP1000-OTYPE,
OBJID TYPE HRP1000-OBJID,
END OF ST_OBJID_SH.
DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
***********SELECTION SCREEN DESIGN***********************
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
*SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
**********END OF SELECTION SCREEN DESIGN*****************
*********VALIDATION FOR SCREEN FIELDS********************
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
IF S_OBJID IS NOT INITIAL.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
FIELD_TAB =
RETURN_TAB = RETURN_TAB
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Reward Points if found helpfull..
Cheers,
Chandra Sekhar.
Similar Messages
-
Getting values from screen to search help exit
Hi Experts,
I have created a search help in which I am not using selection method but search help exit. Dialog type is 'Dialog with value restriction'. My requirement is to get the values entered in restriction screen into search help exit. Please suggest a parameter which will hold this value in search help exit function module.Hi M,
As you know there are 5 steps in search help exit. For each step, the values in parameter of your search help exit is different.
For your requirement, you need process in step 'DISP', and get the selection value from 'SHLP-SELOPT'.
Example:
*Build range for customer number
LOOP AT shlp-selopt INTO ls_selopt WHERE shlpfield = 'KUNNR'.
lr_kunnr-sign = ls_selopt-sign.
lr_kunnr-option = ls_selopt-option.
lr_kunnr-low = ls_selopt-low.
lr_kunnr-high = ls_selopt-high.
APPEND lr_kunnr.
CLEAR: lr_kunnr.
ENDLOOP.
Then using the lr_kunnr range in your select statement.
regards,
Archer -
Screen Painter - search help for field
Hello All,
I have some fields in a screen created with Screen Painter.
The filelds's types are standard system types like BU_PARTNER or other.
How do I have to define them so that in the screen to appear the match code?
Thank you very much,
Diana.Hi Diana Cotelea,
You can use standard search help 'BUPA'.
Do as follows,
1. Goto 'Dict' tab of the property of BU_PARTNER field in your screen, in 'Search Help' property enter the search help name 'BUPA'.
2. Goto 'Program' tab, for 'Poss. Entries Key' property select 2 or 3 from its DropDowm List values.
Try this.
Regards,
R.Nagarajan. -
'Screen Group' in Screen Painter, & 'Search help Exit'
Hii All,
1. What is 'Screen Group' in Screen Painter
attributes. In which Scenario we will go for it.
2. What is 'Search help Exit'.
Please post your messages and guide me in this topic,
Thanks & Regards,
John.Hi John,
A Search help exit is something similar to a user exit. Every search help will have an option of attaching a search help exit under the definition tab( when you view the search help from se12).
For example take a look at the search help VMVA - you will notice a search help exit SD_F4_SHLP_EXIT_SUBSHLP_CHOOSE attached to it.
Basically the serah help exit which is nothing but a function module with a predefined interface which gets triggered before a f4 help is displayed. The exit is used to supress or do any other related modification required.
We have implemented many search help exits and the reason is that we have given a custom interface to our business partners to carry out some transaction on our SAP systems. Though we have given them access to our SAP system we also want to ensure that the business partner does not view any additional data in the system. We have controlled this via many ways like using z objects, using authorizations etc. Still once the user has authorizations to any transaction he or she can do a f4 help on any field and see the data which he should not be able to do. So we have implemented search help exits to supress the drop down only for the business partners. We control this based on the unique login id's we have given to them.
So in short it is used to modify the behaviour of F4 help, mostly used to supress the drop down.
It has to be defined in a specific format.
Hope this helps.
Cheers
VJ -
HI,
I have designed the Search Help in SE11.
Its working fine.
When executed, it pops up the screen for input search criteria.
My question is : is it possible to have this popup screen as our own customised screen.
Can we add some Heading and Subheadings to it?
If yes, please let me know how can we do this.
Thanks in advance.HI,
I have designed the Search Help in SE11.
Its working fine.
When executed, it pops up the screen for input search criteria.
My question is : is it possible to have this popup screen as our own customised screen.
Can we add some Heading and Subheadings to it?
If yes, please let me know how can we do this.
Thanks in advance. -
Hi All,
I have created a custom search help and assigned it to a filed in the screen painter. This field provides me the F4 help, but when i manually enter some other data which is not present in search help it will accept it.
How to configure so that when we enter any data which is not present in search help it should throw an error.
Thanks,
MarsHi,
You created a Elementry search help and attached to a field in screen. Is it right then -
In PAI use chain ... endchain. Inside call a module in which, Select query from a table for a given input .
If it not get selected , use a error message 'E' which won't allow to proceed untill a value entered is correct.
If the field in not a manditory , check only if the field is not initial. -
Selection-Screen and Search Help
Hi
I'm trying to show a Search Help (using trabstrip) from an internal table, but when I execute the code, search help is showed twice.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
SELECT-OPTIONS:
a0 FOR ZCTRL01-ZSTATUS,
a1 FOR ZCTRL01-ZLOTE,
a2 FOR ZCTRL01-BELNR.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 100.
wa_estejec-zstatus = 'E'.
wa_estejec-zdescrp = 'Error'.
APPEND wa_estejec TO ti_estejec.
wa_estejec-zstatus = 'P'.
wa_estejec-zdescrp = ' Processed'.
APPEND wa_estejec TO ti_estejec.
AT SELECTION-SCREEN on value-request for A0-low. PERFORM search_help.
AT SELECTION-SCREEN on value-request for A0-high. PERFORM search_help.
*& Selection-screen
AT SELECTION-SCREEN.
CASE sy-dynnr.
WHEN 1000.
CASE sy-ucomm.
WHEN 'PUSH1'.
mytab-dynnr = 100.
mytab-activetab = 'BUTTON1'.
MESSAGE s888(sabapdocu) WITH text-010.
sy_ucomm = 'PUSH1'.
PERFORM inicializar.
ENDCASE.
FORM SEARCH_HELP.
*& Form SEARCH_HELP
FORM SEARCH_HELP.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ZSTATUS'
dynprofield = 'A0'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = ti_estejec.
ENDCASE.
Thanks in advance.Well, the code you posted won't pass a syntax check. You have an extra form statement, a missing endform statement and an extra endcase statement.
But have you put the assignments to ti_estejec in the INITIALIZATION event??
Rob -
Screen element with help values..
hey,
for example i want to have a ship to user entry in my screen, how do i create it ? i need only the ship to customers to be listed when he selects the drop down arrow..pl advise the code and the field name.
thksYou want that F4 options in the Selection screen or Dialog screen.
If it is selection screen
You can define it using MATCH CODE oBJECt
parameters: p_a type c matchcode object <shelp>. if no help then you have to use at selection screen on value request event.
if it is Dialog screen then you can Set the F4 help u, set the Attribute in for that field in screen painter.
if no Search help then You have to use POV( process on Value Request event) -
Hi,
I need to get WBS Element in the Selection screen in a zreport with collective search.how do i get it?
Thanks & Regards,
Apurva.Hey Chandra,
I've already tried this, but still i am not getting collective search options. Do i need to create collective search and add it to the standard table as per the requirement?
Thanks. -
Regarding Search help on selection-screen field
Hi there,
I am working on custom tables.
I have a requirement to maintain search pattern on a selection-screen field.
selection-screen parameter: p_name which is company name filed from Z table.
By giving a string like Holl* and by pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
Thanks in advance.
-TulasiHi
Go through the link given below :
How to create a search help for my own fields in selection screen
F4 search help on report selection screen
also try :
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'VKORG'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_VKORG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
TABLES
VALUE_TAB = T_TABLE1
FIELD_TAB = field_tab
RETURN_TAB = RET_TAB
DYNPFLD_MAPPING = DYN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
With Regards
Nikunj shah -
How to pass the default value to search help selection screen
Hi
I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.
Could you please let me know how can we do this?
When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this default value based on condition.
Regards
AnilHi Arun
I'm using SE11 search help.I'm giving you my code for your reference here.
DATA:
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lr_qs TYPE REF TO cl_crm_bol_dquery_service,
lr_current TYPE REF TO if_bol_bo_property_access,
lv_category TYPE STRING.
ls_map-context_attr = 'struct.zzattr_i_1'.
ls_map-f4_attr = 'ATTRIBUTE'.
APPEND ls_map TO: lt_inmap,lt_outmap.
CLEAR ls_map.
ls_map-context_attr = 'struct.zzattr_i_1'.
ls_map-f4_attr = 'SERVICE_LINE'.
APPEND ls_map TO: lt_inmap.
CREATE OBJECT rv_valuehelp_descriptor
TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZATTR1'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_trigger_submit = abap_true
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Here 'ZATTR1' is my search help name in SE11 and the field which is having 'F4' help is 'ATTRIBUTE'.
Now when I press 'F4' on 'ATTRIBUTE' then it will give a popup and this popup is having 3 fields..
1.'ATTRIBUTE'
2.'SERVICE_LINE'
3.Description of 'SERVICE_LINE' and hence by pressing 'F4' i should get a value in the field 'SERVICE_LINE' based on
a condition.
However, if there is a value for ATTRIBUTE on the screen and when we press 'F4' on this then in the popup the value of
ATTRIBUTE which is there on the screen is appearing in the 'ATTRIBUTE' field and the same value is being copied to
'SERVICE_LINE' field in the popup.
Please guide me how do we populate the value to 'SERVICE_LINE' field inside the search help popup of 'ATTRIBUTE'.
Best Regards
Anil -
How to create an search help for standard Screen
Hi,
Can any one help me out ... How to create a search help for standard screen field.......
thanks & regards,
Naveen...Hi Naveen.
I would like to suggest a couple of references,
[SDN - Standard Reference for create a search help for own fields in selection screen |How to create a search help for my own fields in selection screen;
[SDN - Standard Reference for Attaching search help to standard screen|Attach search help to standard screen;
[SDN - Reference for want to add a field in standard search help screen|want to add a field in standard search help screen;
[SDN - Reference for Attaching a search help to a standard screen - Case 2 |attaching a search help to a standard screen;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
Hi Guys,
please.. How can a Search Help call a SCREEN ?
I have a problem in a ABAP WebDynpro app, apparently because the search help is calling a SCREEN from the program SAPLSZA1.
This is the error message:
"Sending of dynpro SAPLSZA1 0201 not possible: No window system type specified"
The search help is KRED.
Any idea??
Thanks!Hi,
it can call screen using search help exit. KRED is a collective search and for example it contains search help KREDY. This search help uses exit F4IF_SHLP_EXIT_VENDOR_FUZZY. It is just a function module.
Cheers -
Hi All,
I have a standard SAP ABAP dictionary Search help. I want to execute that search help programmatically and get the return values in a internal table. Please note that I dont want the pop-up's for the Selection screen of Search help. Also I dont want the return values to be displayed as pop-up. I want the return values in internal table. Any suggestions to do this?
Thanks & Regards,
Mayank AgarwalHi,
If u don't want search help pop up screen, then no need to go for search help.
Anyway search help also doing database retrieval only, it is fetching data from database.
so u can directly fetch the data from database and put it into an internal table.
The execution time also will be reduced.
What u have to do is , analyse that search help from which table it is fetching data at wat condition.
there will be a search help exit for that search help in the elementary search help . This exit is FM.
In this FM They might have done validation or check that elementary search help to get the fields displayed on the pop up and the table from it is fetching the data. -
Need Search help to appear on Multiple Value Screen - Monitor SC
Hello All,
We have a requirement where we need to add a new field in Monitor Shopping Cart screen. This field is at the item level and should be able to take in multiple values.
The problem we face is - On getting the multiple value screen, the search help for the field is dissappearing.
We already have a standard field 'Purchase Group' for which this functionality is provided and the search help works for the multiple value screen.
Please provide any pointers to how to fix the problem. Would the problem be on the ABAP side or the HTML side?
Thank you.
JohnsonHi,
Jsut to see in the error is on abap side, sign on in SRM sapgui and run /n then bbp_mon_sc to enter the monitor SC application.
Navigate till your Zdevelopment field and check it
Kind regards,
Yann
Maybe you are looking for
-
Hi. My name is Ivana. I have a problem using find my iphone app. I've tried to use "erase my iphone" and now my iphone (4s, ioS 5) can't be open. The screen always comes out with the black and loading button. Please help me with this problem. Thank y
-
Interactive console using Swing
Hi, I am trying to implement an application administrative tool with interactive console (i.e. showing some info to the user and taking user input) using Swing and JDK 1.4. Up until now I have done info display part after selecting items from the men
-
hi iam new to java and jdom parsing.my imput is user passes the xml file and a string (string is not a tag in xml its a attribute value).i need to look for the string in the xml file and get all its child attributes .my xml looks like <Trs> <cet
-
When trying to install the OS X 10.7.5 update, all i see is a grey screen with the software bar on top, nothing happens,it is supposed to install then restart! Any clues as to why this is happening?
-
Leopard & Ricoh Aficio 2022: lost printer options
After upgrading to Leopard, I've been unable to correctly print on our Aficio 2022 PS printer. More precisely, I can print, but I've lost all the specific features of the printer: no stapling, no duplex printing, nothing. I did an archive & install,