09-09-2007 1:44 PM
hi all,
we have four screen parameters assigned to it search help F4. once user chose value from 1st field that search help contain four output values coming from viewtable, i want to assign the rest of value to other fields. so far, the first field in screen get value and the rest of not. so can i do it?
09-10-2007 2:44 PM
Hi,
Yes you can, check the check box expoting in your search help for those fields for which you want values to be filled.
<b>Reward points for helpfull answers</b>
Regards
Tanweer
09-11-2007 7:18 AM
Please go through this link for Elementary search help .
<a href="http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm</a>
reward points if it is usefull ....
Girish
12-09-2008 9:01 PM
Girish,
thanks.. using your answer i could resolve one of my issue..
12-10-2008 4:08 AM
Hi,
Use FM DYNP_VALUES_UPDAE
of in the F4IF_INT_TABLE_REQUEST take the help of FIELD_MAPPING parameter
Best Regards
Ramchander Rao.K
12-15-2008 4:17 AM
I guess you have to roght code for that
REFRESH : i_adrnr, i_regcoun, i_return_tab.
CLEAR:wa_return_tab.
*Read the Screen fields
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
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
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
SELECT adrnr FROM vbpa
INTO TABLE i_adrnr
WHERE parvw = s_parvw-low
AND kunnr >= s_kunnr-low OR kunnr <= s_kunnr-high.
IF sy-subrc EQ 0.
SELECT country region INTO TABLE i_regcoun
FROM adrc FOR ALL ENTRIES IN i_adrnr
WHERE addrnumber = i_adrnr-adrnr.
IF sy-subrc EQ 0 AND i_regcoun[] IS NOT INITIAL.
Function module for f4 help
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = c_regio
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'S_REGIO' "S_REGIO-LOW'
window_title = 'SELECT COUNTRY AND REGION'
value_org = 'S'
callback_program = sy-cprog
TABLES
value_tab = i_regcoun
return_tab = i_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc = 0.
READ TABLE i_return_tab INTO wa_return_tab INDEX 1.
s_regio-low = wa_return_tab-fieldval.
READ TABLE i_regcoun WITH KEY region = s_regio-low .
s_land1-low = i_regcoun-country.
READ TABLE i_dynp WITH KEY fieldname = 'S_LAND1-LOW'.
MOVE s_land1-low TO i_dynp-fieldvalue.
APPEND i_dynp.
*Set values to screen
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-cprog
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.
ENDIF.
ENDIF.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_regio-high.
REFRESH : i_return_tab.
CLEAR:wa_return_tab.
IF i_regcoun[] IS NOT INITIAL.
Function module for f4 help
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = c_regio
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'S_REGIO' "S_REGIO-LOW'
window_title = 'SELECT COUNTRY AND REGION'
value_org = 'S'
callback_program = sy-cprog
TABLES
value_tab = i_regcoun
return_tab = i_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc = 0.
READ TABLE i_return_tab INTO wa_return_tab INDEX 1.
s_regio-high = wa_return_tab-fieldval.
READ TABLE i_regcoun WITH KEY region = s_regio-high .
s_land1-high = i_regcoun-country.
READ TABLE i_dynp WITH KEY fieldname = 'S_LAND1-HIGH'.
MOVE s_land1-high TO i_dynp-fieldvalue.
APPEND i_dynp.
*Set values to screen
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-cprog
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.
ENDIF.
ENDIF.