Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

just one doubt regarding parameter option

Former Member
0 Likes
495

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
467

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

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.

3 REPLIES 3
Read only

Former Member
0 Likes
467

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

Read only

Former Member
0 Likes
467

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

Read only

Former Member
0 Likes
468

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