‎2008 Dec 17 6:52 AM
Hello experts,
I just want to ask this question which puzzles me a lot.
when i execute this piece of code,
PARAMETERS: sign1 like kna1-kunnr.
I can see a seach help when I press F4.
But when I make a change the above code into:
PARAMETERS: sign2 like ZFLI_SIG-sigid.
I cant see anymore the search help dialog box when I press F4.
Note: zfli_sig is a ztable. sigid is a primary key on that table.
Is there any way to see the search help window when I press F4 though
I created a ztable?
‎2008 Dec 17 6:57 AM
hi,
since it is a custom field you have to create a search help
and assign it at data element level using SE11 transaction.
for more info on that check this.
[https://forums.sdn.sap.com/click.jspa?searchID=20033088&messageID=3051700]
‎2008 Dec 17 6:56 AM
Hi
You have to assign the value table as Ztable to Domain or create a search help for the field.
For KUNNR value table is Value Table KNA1.
Regards
shiva
‎2008 Dec 17 6:57 AM
Hi,
You need to create a search help for the field which you have created in order to get a search help on pressing F4. In case of the kunnr field, it has a pre-defined search help associated with it, so when we call that field the associate search help is also called.
So please create a search help and associate it with the Data element, later when you use this Data element in a ny program, the search help also gets called automatically.
Hope this resolves your query.
Regards,
Nagaraj T
‎2008 Dec 17 6:57 AM
hi,
since it is a custom field you have to create a search help
and assign it at data element level using SE11 transaction.
for more info on that check this.
[https://forums.sdn.sap.com/click.jspa?searchID=20033088&messageID=3051700]
‎2008 Dec 17 7:00 AM
Hi levis,
Check the whether u have specified the search help while creating the filed in the table .
Incase u go and check KUNNR in KNA1 there is the searhc help attached to it while in ur case I am sure it is missing .....
Thnks
Sahil
‎2008 Dec 17 8:58 AM
Thanks expert for your help... I almost got the answer to my problem. However, I have one more problem on the return value when I select from the search hetlp.
Here's the code that I did.
TYPES: BEGIN OF ty_custid ,
sid LIKE zfli_sig-sigid,
lname LIKE zfli_sig-lname,
END OF ty_custid.
DATA: it_custid TYPE STANDARD TABLE OF ty_custid,
wa_custid TYPE ty_custid.
SELECTION-SCREEN BEGIN OF BLOCK sign WITH FRAME TITLE text-004 .
PARAMETERS: sign2 LIKE zfli_sig-sigid.
SELECTION-SCREEN END OF BLOCK sign.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sign2.
SELECT sigid lname FROM zfli_sig INTO TABLE it_custid.
PERFORM search_help_field .
&----
*& Form search_help_field
&----
text
----
FORM search_help_field.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = ?????????????
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = ????????????
value_org = ????????????
TABLES
value_tab = it_custid
return_tab = ???????????
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
ENDFORM.
From ti s program, I had selected two fields namely, sigid and lname. So when I execute the program and pressed F4, I see already the search help box. But when I select an options, what I want to appear is the SIGID and not the LNAME.
Also, may you please elaborate further what should I placed on the function module having question marks.
thanks a lot.
‎2008 Dec 17 9:11 AM
‎2008 Dec 17 9:30 AM
Hello experts,
I just want to ask this question which puzzles me a lot.
when i execute this piece of code,
PARAMETERS: sign1 like kna1-kunnr.
I can see a seach help when I press F4.
But when I make a change the above code into:
PARAMETERS: sign2 like ZFLI_SIG-sigid.
I cant see anymore the search help dialog box when I press F4.
Note: zfli_sig is a ztable. sigid is a primary key on that table.
Is there any way to see the search help window when I press F4 though
I created a ztable?
======================================================
hi
for your sign2 if u r looking for the same F4 help as sign1 u can achieve in following ways
1. make ur dataelement for Ztable same as that of KUNNr (PARAMETERS: sign1 like kna1-kunnr.)
2. if u r not able to do that
use at selection screen on value request for sign2
under this call the FM
F4IF_FIELD_VALUE_REQUEST
passing kunnr
‎2008 Dec 18 2:22 AM
Thanks a lot experts for sparing me your time and knowledge. i got it now.