2006 Oct 04 12:09 PM
Hi Guys,
I have 3 screen elements on my screen and one of the screen element has custom collective search Help and the output of this search help has multiple fields (Structure).
My problem is when user selects a record from search help, the selected values should pass values to the respective screen elements. User will not hit the Enter button. SAP will not trigger PBO or PAI as long as we use search help (Not build programatically).
Any idea how to pass all the values to all screen elements at the same time.
Appreciate your comments.
Thanks
Hi Guys,
I have 3 screen elements on my screen and one of the screen element has custom collective search Help and the output of this search help has multiple fields (Structure).
My problem is when user selects a record from search help, the selected values should pass values to the respective screen elements. User will not hit the Enter button. SAP will not trigger PBO or PAI as long as we use search help (Not build programatically).
Any idea how to pass all the values to all screen elements at the same time.
Appreciate your comments.
Thanks
2006 Oct 04 12:13 PM
hi,
use this.
after the f4 help, u will get the selected value from the F4.
based on that value read from the internal table from which u get the other values.
give that values..field1_value..like that blow
DATA: BEGIN OF dynprofelder OCCURS 10.
INCLUDE STRUCTURE dynpread.
DATA: END OF dynprofelder.
REFRESH dynprofelder.
dynprofelder-fieldname = 'FIELD1'.
dynprofelder-fieldvalue = FIELD1_value.
APPEND dynprofelder.
clear dynprofelder.
dynprofelder-fieldname = 'FIELD3'.
dynprofelder-fieldvalue = FIELD2_value.
APPEND dynprofelder.
clear dynprofelder.
dynprofelder-fieldname = 'FIELD3'.
dynprofelder-fieldvalue = FIELD3_value.
APPEND dynprofelder.
clear dynprofelder.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynprofelder
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
rgds
anver
if hlped mark points
2006 Oct 04 12:25 PM
you can get a search help to operate on multiple fields of a particular table BUT you have to do it on the data dictionary...
for example...you have a dictionary table ztab which has vkorg,vtweg and spart fields. You create a search help Ztab_sh which has those three fields. In SE11 change ztab so that the vkorg,vtweg and spart fields link to the search help ztab_sh. On your screen if you have the three ztab fields the ztab_sh will automatically be linked to and will return all three fields BUT it will only work if you use the ztab-vkorg,ztab-vtweg,ztab-spart. If you use other field names it will not work.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |