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

search help values from value table

Former Member
0 Likes
5,615

hi sir,

on my report i hava a input filed where by i have to give a search help.

but to that field data element --> domain is ZZCHAR2 --> when i double click on it we see value range.

if we go to value range below we can find a a value table called --> T578Y.

can we able to display the values from the table to that filed?

field = ZMED_SRV-FIT

data element : ZZRESUL

domain : ZZCHAR2

value range ---> has value table --> T578Y

i should display values from this value table

your input is highly appriciated.

i have searched but could not find the answer thats the reason am posting.

thank you,

pasala.

1 ACCEPTED SOLUTION
Read only

Himayatullah
Active Participant
0 Likes
2,105

Hi basker,

Do this way...

AT SELECTION-SCREEN ON VALUE-REQUEST for <input field>

fetch all the values from t578y table into a internal table.

Then pass this internal table to function module 'F4IF_INT_TABLE_VALUE_REQUEST'.

Hope this will help you.

best regards

Himayat.

6 REPLIES 6
Read only

Himayatullah
Active Participant
0 Likes
2,106

Hi basker,

Do this way...

AT SELECTION-SCREEN ON VALUE-REQUEST for <input field>

fetch all the values from t578y table into a internal table.

Then pass this internal table to function module 'F4IF_INT_TABLE_VALUE_REQUEST'.

Hope this will help you.

best regards

Himayat.

Read only

Former Member
0 Likes
2,105

Hi Basker,

Value Table purpose is to suggest the parent table when you create a FOREIGN KEY relation ship and it doesnt provide F4 Help. You can create a FK relationship then you will get F4 help from this table

or Implement your own F4 Help using F4IF_INT_TABLE_VALUE_REQUEST FM

Cheerz

Ram

Read only

Former Member
0 Likes
2,105

hi,

do in this way..

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'S_TSCY' " select-option field where f4 is needed

dynpprog = sy-repid

dynpnr = sy-dynnr

window_title = 'Task category'

value_org = 'S'

TABLES

value_tab = it_category[] " table contain values to be shown on f4

return_tab = it_f4.

CLEAR wa_f4.

READ TABLE it_f4 INTO wa_f4 INDEX 1.

IF sy-subrc = 0.

s_tscy-low = wa_f4-fieldval.

ENDIF.

CLEAR: wa_f4,it_f4[].

Read only

Former Member
0 Likes
2,105

Hi Basker,

YOu can use search help H_T578Y

IF it is selection screen use the above search help as MATCHCODE OBJECT

parameters abc type char2 MATCHCODE OBJECT H_T578Y. " With this both my posts will serve your purpose
IF it Custom Screen assign this search help at the Field level in the Screen Layout

Cheerz

Ram

Read only

Former Member
0 Likes
2,105

Hi Pasala ,

Just Declare the Parameter like below. It will work and display the F4 help from value table.

Say suppose your table is ZMED_SRV and filed name FIT and that has domain which is linked with value table.


tables  ZMED_SRV.

PARAMETERS p_FIT LIKE ZMED_SRV-FIT.

Read only

Former Member
0 Likes
2,105

thank you all.