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

F4 Help Needed F4IF_INT_TABLE_VALUE_REQUEST

Former Member
0 Likes
1,793

hi gurus,

i am using the F4IF_INT_TABLE_VALUE_REQUEST function module to populate an F4 help. I am getting a weird situation.

this is the code i am using:

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = f_name "field name to be populated

  • PVALKEY = ' '

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = lv_dynprofield

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = it_t77tp[]

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3

.

the table it_t77tp has 2 colums [4 digit number and associated text]. the f4 help does show the 2colums, but on clicking on the right value, it always picks the last 4characters of the second column.

so if i make it text followed by number, it gives me number,

but i make it number followed by text (which is what the user wants), it selects the first 4 characters of the text.

could you please tell me where am i going wrong? is there some table that i am passing / providing?

thanks,

vivek

ps:rewards for useful answers

5 REPLIES 5
Read only

Former Member
0 Likes
1,739

hi there....

u must be fetching the values into some variables, right?? then check the data type of the variables u are using and try modifying them....

i hope it works...

do reward if helpful or get bak for further assistance.

Read only

Former Member
0 Likes
1,739

Hi,

Use the below logic.

parameters: p_abkrs(4) type c.

data: begin of it_abkrs occurs 0,

abkrs type abkrs,

atext type abktx,

end of it_abkrs.

at selection-screen on value-request for p_abkrs.

select abkrs atext from t549t into table it_abkrs

where sprsl = sy-langu.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'ABKRS'

DYNPPROG = sy-repid

DYNPNR = sy-dynnr

DYNPROFIELD = 'P_ABKRS'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = it_abkrs

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.

Read only

Former Member
0 Likes
1,739

i hv kept in mind the above 2 solution, but this doesnt seem to be working. is there something like using some more tables or some other parameters?

so i am still looking for answers...

cheers,

v

ps:points for answers...

Read only

0 Likes
1,739

wht is the value of lv_dynprofield tht ur passing to dynpro field?

u should always pass the parameter DYNPROFIELD the parameter on the screen this fm matches thes definitions and passes the value to the screen accordingly if it does not get proper value it will give some default in return...

Edited by: ashwinee mali on Apr 8, 2008 2:17 PM

Read only

0 Likes
1,739

i am sending the selection_option -high / low field in lv_dynprofield, depending on which value request is made.

is there some tables that i need to pass more, or some conversions etc to do once the FM is run?

cheers,

v

ps:points still up for grabs..