12-20-2006 10:06 AM
Respected Guys is there any way to attach a search help on Assignment field of F-02.
Is there any possibility add search help using Field Exit or if any serach help exit is available for this.
Thnx
12-20-2006 11:11 AM
HI,
Could you please send me the filed so that i can give you the search help for the same.
thanks
shiva
12-20-2006 11:41 AM
Field Name is BSEG-ZUONR
I tried a code some thing like this.
Now search help is appearing but TICK Button that is enter button in search help is diable due to which its not possible to tranfer selected value in field.
TABLES: T5J65.
data: begin of f4hlp occurs 1.
include structure dynpread.
data: end of f4hlp.
DATA: BEGIN OF HEDU OCCURS 0, "Education HELP ITAB
SCHCD TYPE T5J65-SCHCD,
INSTK TYPE T5J65-INSTK, "Institution Code
END OF HEDU.
*
SELECT SCHCD INSTK
FROM T5J65
INTO TABLE HEDU
WHERE SLART EQ 'Z0'.
SORT HEDU BY SCHCD.
DELETE ADJACENT DUPLICATES FROM HEDU COMPARING SCHCD.
BREAK ADNAN_M.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'INSTCODE'
DYNPPROG = 'F4IF_INT_TABLE_VALUE_REQUEST'
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_TEXT'
WINDOW_TITLE = 'PRIORITY LISTING'
VALUE_ORG = 'S'
DISPLAY = ' '
TABLES
VALUE_TAB = HEDU
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.
12-20-2006 11:51 AM
if u want serch help for tht field in ur program (not in standard program ) then use the followign code just change the table name and feild name accordingly as per ur requirement -
&----
*& Report ZGILL_VALUE_REQUEST *
*& *
&----
*& *
*& *
&----
REPORT ZGILL_VALUE_REQUEST .
data: begin of lt_all occurs 0.
include structure DYNPREAD.
data end of lt_all.
data: begin of lt_selected occurs 0.
include structure DDSHRETVAL.
data: end of lt_selected.
DATA: BEGIN OF lt_code OCCURS 0,
code LIKE zgill_main-PERNR,
END OF lt_code.
data no_dyn like sy-dynnr.
Parameters : ECODE like zgill_main-PERNR.
*parameters: pernr like pa0001-pernr .
no_dyn = sy-dynnr. "give the scren no directly or sy-dynnr in case of report.
At selection-screen on value-request for ECODE.
select PERNR into table lt_code from zgill_main.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ECODE'
dynpprog = sy-repid
dynpnr = no_dyn
dynprofield = 'ECODE'
window_title = 'Employee Details'
value_org = 'S'
DISPLAY = 'F'
TABLES
value_tab = lt_code
RETURN_TAB = lt_selected.
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*if sy-subrc eq '0' .
write: 'success'.
*endif.
read table lt_selected index sy-tabix.
move lt_selected-fieldval to ECODE.
12-20-2006 11:54 AM
Guys Its a standard screen F-02, and I want a logic to attach search help on standard screen with out any modification. Please note that no search help is attached with screen field currently.