2007 Mar 05 4:33 PM
parameters : name1 type name1.
suppose if i want to have my own list of customers which function module i have to call. tell me the procedure to do that.
2007 Mar 05 4:40 PM
Hi,
You can use FM HELP_VALUES_GET or F4IF_INT_TABLE_VALUE_REQUEST.
Please check this link for sample codes.
http://www.sap-img.com/abap/value-request-for-parameter.htm
Regards,
Ferry Lianto
Hi,
You can use FM HELP_VALUES_GET or F4IF_INT_TABLE_VALUE_REQUEST.
Please check this link for sample codes.
http://www.sap-img.com/abap/value-request-for-parameter.htm
Regards,
Ferry Lianto
2007 Mar 05 4:34 PM
u have to use this FM
F4IF_INT_TABLE_VALUE_REQUEST
AT SELECTION-SCREEN on VALUE REQUEST for name1.
<b>*populate the data with internal table</b>
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'NAME1'
dynpprog = v_repid
dynpnr = '1000'
dynprofield = 'NAME1'
value_org = 'S'
TABLES
value_tab = itab.
Message was edited by:
Chandrasekhar Jagarlamudi
2007 Mar 05 4:35 PM
Hi,
Did you mean to say when pressing F4 you want to have your own customer lists.
Then you can use the FM F4IF_INT_TABLE_VALUE_REQUEST
Check this example of how to use this FM..
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 END OF LINE.
INITIALIZATION.
v_text = 'Country'.
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 Mar 05 4:40 PM
Hi,
You can use FM HELP_VALUES_GET or F4IF_INT_TABLE_VALUE_REQUEST.
Please check this link for sample codes.
http://www.sap-img.com/abap/value-request-for-parameter.htm
Regards,
Ferry Lianto
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |