‎2007 Mar 02 5:56 AM
Hi ,
I want to add search help functionality to screen field 2 based on the values i enter for screen field 1.
Please suggest a solution with codes asap.
My Thanks in advance
‎2007 Mar 02 5:59 AM
Hi,
You just need to assign a search help for the second field which takes the first filed 's data as the import parameter. You need to create a search help with IMPORT parameters corresponding to the first screen field then your search help will take care. Also you need to assign the search help to the structure which you are using to create the screen fields.
For example see the search help: <b>H_SCARR</b>
Regards,
Sesh
Message was edited by:
Seshatalpasai Madala
‎2007 Mar 02 5:59 AM
Hi,
You just need to assign a search help for the second field which takes the first filed 's data as the import parameter. You need to create a search help with IMPORT parameters corresponding to the first screen field then your search help will take care. Also you need to assign the search help to the structure which you are using to create the screen fields.
For example see the search help: <b>H_SCARR</b>
Regards,
Sesh
Message was edited by:
Seshatalpasai Madala
‎2007 Mar 02 6:02 AM
Hi Sesh,
Thanks for the reply.
To make it more clear, do I need to make a search help via Se11 or is it enough to add that to Function module F4IF_INT_...
‎2007 Mar 02 6:07 AM
Hi,
If Standrad search help availble in the dataelement level, Attach searchhelp to dataelement level (or) use the field which is having corresponing dataelement.
If it doesn't hold the searchhelp (reusability is less) then call FM ''F4IF_INT_TABLE_VALUE_REQUEST'' and attach search help values in screen logic it self.
If don't find standrad serach help, then create search help in SE11 and attach to the dataelement of field. (As if thininking Reusability of the field)
If helps plz reward points to all possible answers.
Regards
Bhupal Reddy
‎2007 Mar 02 6:00 AM
chk this from other thread
report ztest .
parameters: p_vbeln type vbak-vbeln,
p_posnr type vbap-posnr.
at selection-screen on value-request for p_posnr.
data: begin of help_item occurs 0,
posnr type vbap-posnr,
matnr type vbap-matnr,
arktx type vbap-arktx,
end of help_item.
data: dynfields type table of dynpread with header line.
dynfields-fieldname = 'P_VBELN'.
append dynfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
translate_to_upper = 'X'
tables
dynpfields = dynfields
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.
read table dynfields with key fieldname = 'P_VBELN'.
p_vbeln = dynfields-fieldvalue.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = p_vbeln
importing
output = p_vbeln.
select posnr matnr arktx into table help_item
from vbap
where vbeln = p_vbeln.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'POSNR'
dynprofield = 'P_POSNR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = help_item.
‎2007 Mar 02 6:56 AM
hi ,
Create a scarch help for the screen field 2, in this scarch help you add a search help exit .Write the logic in the seacch help exit so that it should be based on the selections made on the screen field 1. now use this search help exit for your seacrh help for screen field 2.
This process should work .
thanks
Ranjita