Application Development 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 Selected row from search help.

Former Member
0 Kudos

Hi Friends,

I have 2 screen fields EQKTX & EQUNR.I have implemented custom search help for EQKTX.

whenever I press F4 on EQKTX then i get multiple EQUNR for single EQKTX.when I select particular record from search help.then selected value of EQUNR should get populated in the the EQUNR screen field.

I have used ' F4IF_FIELD_VALUE_REQUEST ' FM.But it populating only EQKTX not EQUNR.

what is to be done in this case.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

EXPORTING

tabname = 'EQKT'

fieldname = 'EQKTX'

searchhelp = 'ZI_EQKTX'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'GW_SCREEN-WPTXT'

TABLES

return_tab = lt_return_tab1

EXCEPTIONS

field_not_found = 1

no_help_for_field = 2

inconsistent_help = 3

no_values_found = 4

OTHERS = 5.

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check the RECORDPOS in the return table, if you get the EQUNR field value also then after reading the FM you have to populate the screen Field using the value EQUNR by moving the value from return table.

3 REPLIES 3

Former Member
0 Kudos

Check the RECORDPOS in the return table, if you get the EQUNR field value also then after reading the FM you have to populate the screen Field using the value EQUNR by moving the value from return table.

0 Kudos

But I am not getting RECORDPOS value.its always 001.

so whats to be done.

Former Member
0 Kudos

Hi,

After calling that function module need write some code which i have give below. Try This code..

if It_RETURN_TAB1 is not initial.

READ TABLE It_RETURN_TAB1 INDEX 1.

Fieldname = It_RETURN_TAB1 -FIELDVAL.

endif.

Thanks

Srilatha