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 Exit

Former Member
0 Likes
619

Hi Experts,

I have a doubt on search help values population which i'm descrbing below.

I have a selection screen with 2 fields(VBELN and POSNR).i have developed a custome search help for VBELN and in the search help results i'm displaying Item as well.I have created an Search help exit for this.Results are displaying and works fine

Now the problem is,when user clickcs on any of the VBELN, corresponding Item also should get populated on the selection screen field automatically.how can i achieve this.i have tried F4UT_PARAMETER_VALUE_GET and F4UT_PARAMETER_RESULTS_PUT.can you please suggest what needs to be done here to achieve the functionality.

Regards,

K.C

1 ACCEPTED SOLUTION
Read only

sarang_gujrati2
Explorer
0 Likes
582

Hi,

u need to use DYNP_VALUES_UPDATE function module for that.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

TABLES

dynpfields = i_dynp

EXCEPTIONS

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

undefind_error = 7

OTHERS = 8.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

in i_dynp u need to pass field name and field value.

Regards,

Sarang

Hi Experts,

I have a doubt on search help values population which i'm descrbing below.

I have a selection screen with 2 fields(VBELN and POSNR).i have developed a custome search help for VBELN and in the search help results i'm displaying Item as well.I have created an Search help exit for this.Results are displaying and works fine

Now the problem is,when user clickcs on any of the VBELN, corresponding Item also should get populated on the selection screen field automatically.how can i achieve this.i have tried F4UT_PARAMETER_VALUE_GET and F4UT_PARAMETER_RESULTS_PUT.can you please suggest what needs to be done here to achieve the functionality.

Regards,

K.C

3 REPLIES 3
Read only

sarang_gujrati2
Explorer
0 Likes
583

Hi,

u need to use DYNP_VALUES_UPDATE function module for that.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

dyname = sy-repid

dynumb = sy-dynnr

TABLES

dynpfields = i_dynp

EXCEPTIONS

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

undefind_error = 7

OTHERS = 8.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

in i_dynp u need to pass field name and field value.

Regards,

Sarang

Read only

0 Likes
582

Hi Sarang,

Thanks for the reply.i have used the same FM but still Item is not populating into my selection screen.please find the code and suggest me where i'm going wrong.

IF callcontrol-step = 'RETURN'.

DATA : i_dynp TYPE STANDARD TABLE OF dynpread.

DATA : w_dynp TYPE dynpread.

w_dynp-fieldname = 'S_POSNR-LOW'.

w_dynp-fieldvalue = gv_posnr.

APPEND w_dynp TO i_dynp.

CLEAR : w_dynp.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

dyname = 'SAPMZKLIM_HUREPORT'

dynumb = '0300'

TABLES

dynpfields = i_dynp

EXCEPTIONS

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

undefind_error = 7

OTHERS = 8.

IF sy-subrc eq 0.

  • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

  • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

endif.

Read only

Former Member
0 Likes
582

I have resolved on my own.Thanks for the help experts.