2010 Nov 22 7:29 AM
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
2010 Nov 22 10:11 AM
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
2010 Nov 22 10:11 AM
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
2010 Nov 22 11:06 AM
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.
2010 Nov 22 12:10 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |