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

Passing values to screen Elements from Search Help

Former Member
0 Likes
439

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

2 REPLIES 2
Read only

anversha_s
Active Contributor
0 Likes
393

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

Read only

former_member186741
Active Contributor
0 Likes
393

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.