10-09-2007 7:05 AM
10-09-2007 7:07 AM
Hi,
PARAMETER: p_vbeln TYPE vbeln MATCHCODE OBJECT VMVA.
Regards,
Raghavendra
10-09-2007 7:21 AM
Hi,
This is the syntax u were looking for..
parameters : input(10) type c lower case matchcode object Z07_TESTPRG2.
here Z07_TESTPRG2 is the search help created.
Regards,
SJ
10-09-2007 7:35 AM
Hi
by useing this <b>F4IF_INT_TABLE_VALUE_REQUEST</b> you can creat a search help for a parameter on the screen
under <b>AT SELCTION-SCREEN ON FIELD</b>
write a selct query and store that values in the internal table and call that internal table in that FM
<b>example</b>
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.
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.
.
<b>Reward if usefull</b>
10-10-2007 5:13 AM
hi
can we use the value-request addiion to the paraeter to provide the search help
10-10-2007 5:32 AM
Hi,
If u r using searchelp cretaed in Se11, then u shud use MATCH CODE.
If u want to display f4 help craeted in ur program , then u shud use
At selection screen on Value-Request.
and the FM is "F4if_int_table_value_request".
Revrt back if any issues,
reward if helpful,
regards,
Naveen
10-10-2007 5:40 AM
Hi Jyothsna..
We can use the VALUE-REQUEST option in PARAMETER to Generate the Seach help based on the Check table. That means Foreign key relation.
Eg:
PARAMETERS: P_MATNR TYPE MARC-MATNR VALUE-HELP.
Here MARC-MATNR has Check table Relation with MARA-MATNR which will generate the Search help.
but if you want attach a Search help explicitly.use...
PARAMETERS: P_MATNR TYPE MARC-MATNR matchcode object <search help>.
REWARD IF HELPFUL.
10-10-2007 5:17 AM
Hi,
Yes..You can provide F4 help using the ON VALUE-REQUEST event..
Check this sample code..
TABLES: T005T.
DATA: BEGIN OF t_t005 OCCURS 0,
land1 TYPE t005-land1,
END OF t_t005.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(6) v_text FOR FIELD P_LAND1.
PARAMETERS: p_land1 TYPE t005-land1.
SELECTION-SCREEN COMMENT 13(35) v_text1.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
v_text = 'Country'.
v_text1 = ' '.
AT SELECTION-SCREEN OUTPUT.
IF NOT p_land1 IS INITIAL.
SELECT SINGLE * FROM t005t
WHERE spras = sy-langu
AND land1 = p_land1.
IF sy-subrc = 0.
v_text1 = t005t-landx.
ENDIF.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1.
REFRESH: t_t005.
SELECT land1
INTO TABLE t_t005
FROM t005.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = 'T005'
PVALKEY = ' '
retfield = 'LAND1'
dynpprog = sy-repid
DYNPNR = sy-dynnr
dynprofield = 'P_LAND1'
callback_program = sy-repid
value_org = 'S'
TABLES
value_tab = t_t005
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.
Thanks
Naren
10-10-2007 5:29 AM
Hi,
Go to SE11
Choose the radio button which is search help
Enter the field for which u want to have search help.
Regards,
T. Nagaraju