‎2007 Jun 14 6:25 AM
i have creates f4 help.
but when i select some value from it,, it is not shown in my field.
pls tell me what can be the problem...
‎2007 Jun 14 6:28 AM
Hi Nidhi ,
You must not have specified the feild name in the paramater <b>retfield</b> of the FM or set the parameter <b>value_org</b> as 'S'.
Please check it and if still it does not work u please paste you code so that we can tell the exact problem.
Regards,
Arun
‎2007 Jun 14 6:28 AM
Hi,
If you created a search help in the DDIC...Then check the check box EXPORt parameter for one of the fields
If you used the function module Make sure you pass the correct values..Also the field name in CAPITAL letters..
Check this 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 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
‎2007 Jun 14 6:29 AM
Hi,
did u create ur f4 thru search help?if then check the values of Lpos and Spos.
give values for these.give 1 for both and try.
Regards,
Prajith
‎2007 Jun 14 6:34 AM
hI
look at this code
TABLES : MARD.
DATA: BEGIN OF IT_MARD OCCURS 0,
WERKS LIKE MARD-WERKS,
LGORT LIKE MARD-LGORT,
END OF IT_MARD.
DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.
parameters : P_WERKS LIKE MARD-WERKS.
parameters : P_LGORT LIKE MARD-LGORT.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS.
SELECT WERKS LGORT FROM MARD UP TO 10 ROWS INTO table IT_MARD.
DELETE ADJACENT DUPLICATES FROM IT_MARD COMPARING WERKS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'WERKS'
DYNPPROG = SY-REPID
DYNPNR = '1000'
DYNPROFIELD = 'P_WERKS'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT_MARD
RETURN_TAB = T_RETURN
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
if sy-subrc = 0.
read table it_mard index 1. "transporting werks.
move it_mard-lgort to p_lgort.
endif.
Thanks
Arun
‎2007 Jun 14 6:38 AM
hi
if u use FM
F4_DXFILENAME_TOPRECURSION
pass the parameter name in the importing parameter value
some o_path or i_path...check out