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

F4IF_INT_TABLE_VALUE_REQUEST

Former Member
0 Likes
818

Hi All,

I have 2 parameters on my selection screen for which i have given on value request help using fm F4IF_INT_TABLE_VALUE_REQUEST.

the 2 para are firstname and lastname.when the user press f4 help he can see both first name and last name.

my requirement is when he click on first name the last name paramters shl aslo get filled or when he chose for last name f4 help the first name shld get filled.

how can we achive this.

pls help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
759

Hi pawan,

here a short example how i do it:

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FECOD.

*

REFRESH: T_QPK1CDTAB.

*

CALL FUNCTION 'QPK1_GP_CODE_SELECTION'

EXPORTING

I_KATALOGART = 'C'

I_CODEGRUPPE = P_FEGRP

I_CODE = '*'

I_SPRACHE = SY-LANGU

I_PICKUP_MODE = 'X'

TABLES

T_QPK1CDTAB = T_QPK1CDTAB

EXCEPTIONS

NO_MATCH_IN_RANGE = 1

NO_USER_SELECTION = 2

NO_AUTHORIZATION = 3

NO_SELECTION_SPECIFIED = 4

OBJECT_LOCKED = 5

LOCK_ERROR = 6

OBJECT_MISSING = 7

OTHERS = 8.

*

READ TABLE T_QPK1CDTAB INDEX 1.

<b> P_FEGRP = T_QPK1CDTAB-CODEGRUPPE.

P_FECOD = T_QPK1CDTAB-CODE.

*

CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'.</b>*

I set both parameters in the F4. I have 2 F4-Forms for P_FEGRP and P_FECOD.

hope it helps.

Regards, Dieter

5 REPLIES 5
Read only

Former Member
Read only

Former Member
0 Likes
760

Hi pawan,

here a short example how i do it:

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FECOD.

*

REFRESH: T_QPK1CDTAB.

*

CALL FUNCTION 'QPK1_GP_CODE_SELECTION'

EXPORTING

I_KATALOGART = 'C'

I_CODEGRUPPE = P_FEGRP

I_CODE = '*'

I_SPRACHE = SY-LANGU

I_PICKUP_MODE = 'X'

TABLES

T_QPK1CDTAB = T_QPK1CDTAB

EXCEPTIONS

NO_MATCH_IN_RANGE = 1

NO_USER_SELECTION = 2

NO_AUTHORIZATION = 3

NO_SELECTION_SPECIFIED = 4

OBJECT_LOCKED = 5

LOCK_ERROR = 6

OBJECT_MISSING = 7

OTHERS = 8.

*

READ TABLE T_QPK1CDTAB INDEX 1.

<b> P_FEGRP = T_QPK1CDTAB-CODEGRUPPE.

P_FECOD = T_QPK1CDTAB-CODE.

*

CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'.</b>*

I set both parameters in the F4. I have 2 F4-Forms for P_FEGRP and P_FECOD.

hope it helps.

Regards, Dieter

Read only

0 Likes
759

Hi Dieter,

This FM does not exist in my system r u sure this is the FM.

Thanks.

Regards.

Read only

0 Likes
759

Hi pawan,

what i want to show is how i fill 2 parameters in 1 F4.

i show it simpler:

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_lastname.

*

read lastname and firstname as you want.

P_lastname = lastname from table.

P_firstname = firstname from table.

CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_firstname.

*

read lastname and firstname as you wantt.

P_lastname = lastname from table.

P_firstname = firstname from table.

CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'.

Regards, Dieter

Read only

Former Member
0 Likes
759

hi,

after the user selects 1 of the parameter then depending on the first u can write a select statment which can fill the next parameter. or u can may be hardcode the ext parameter depending on your requirement.

hope this helps.

santhosh