Searchhelp-Exit: F4IF_SHLP_EXIT_EXAMPLE
Dear developers,
our company produces SAP add-ons which are supposed to
run under 4.6C as well as under 4.7 Enterprise.
As far as ABAP commands are concerned some of which
behave a little differently in both environments,
we usually solve those problems by calling up FM modules
dynamically after checking the appropriate syst-variable.
Unfortunetaly this doesn't work for our searchhelp-exits,
where 4.6C and 4.7-systems demand different references
for the SHLP and SHLP_TAB parameters of the exit-FM.
4.6 wants the SHLP_TAB to refer to SHLP_DESCR_TAB_T and
SHLP to refer to SHLP_DESCR_T, both of which are
definitions in type group SHLP.
4.7 wants the SHLP_TAB to refer to SHLP_DESCT (DDIC) and
the SHLP parameter to SHLP_DESCT (DDIC).
Both types of system do not know the structures of the
"other" system and you have difficulties activating a
searchhelp, when both of thoses parameters remain without
a reference. It is possible to do it though, but I
don't feel comfortable with the warnings we get during
the imports of our program transports.
Does anyone have an idea how to get rid of that problem?
Thanks in advance
Andreas
Hello Andreas,
it shouldn't be a real problem, because when you look in Rel.4.7 into the type-pool SHLP, you'll find the definition:
TYPES: SHLP_INTDESCR_T TYPE SHLP_INTDS,
<b> SHLP_DESCR_T TYPE SHLP_DESCR,
SHLP_DESCR_TAB_T TYPE SHLP_DESCT</b>.
Regards Wolfgang
Similar Messages
-
Fuzzy Logic in a SearchHelp Exit
Hi All,
I have a requirement where In a search help exit, I need to retrieve the Contracts based on its Description from the EKKO table. In the description I give a part of Description followed by * and it has to fetch all the Contracts whose description has a part of the search Key.
All together, I need to fetch the Complete Text(Description) and Contracts from EKKO based on the search key(partial text of description).
<< Removed >>
Thanks and Regards,
Naresh Babu. Kandula
Edited by: Rob Burbank on Jun 23, 2009 2:13 PMHi,
Check this out,
https://wiki.sdn.sap.com/wiki/pages/pointstab/viewpageversion.action?pageId=32440&version=2.
Regards,
Raghavendra -
Hello together,
is there a possibility in SAP to check some things e.g. in an user-exit before any search help is called.
The background is, we have an external provider with shoud use some Z-Reports of us.
The problem is, that we show in this case a lot of information over the standard searchhelps like plants
or matchcode to external people.
Thomas
Edited by: Thomas Aust on Jul 3, 2008 1:44 PMHello.
Yes, it's possible.
In your search help, you have an empty field called search help exit (below selection method).
Here place a ZEXIT. As an example, check exit F4IF_SHLP_EXIT_EXAMPLE.
Regards.
Valter Oliveira. -
Hello,
first the situation and then my question.
I have to implement a search help exit on knttp. I know the search help and have implemented the exit.
Know i need proccesing data in the exit of the purchase.
For example:
I start ME22N,
then i push F4 on KNTTP in position screen.
Then i have to check the field BSART in header screen to decrease the result of search help with a condition on BSART.
my opinion for a good solution is to find a user exit or badi in the process of displaying the purchase and set a static attribute of a new implemented Z class. To get this parameter in searchhelpexit create an instance of this class and get this attribute.
The release is 4.6C so i can't implement an enhancement point.
At time of Badi processing ME_PROCESS_PO_CUST - subscribe there are no purchase data in access.
I need the information of the purchase header at the time of showing this purchaseorder, and when you change the purchase order.
This changes have to be implemented in the enjoy transactions ME21N,ME22N, ME23n, ME51N,ME52N, ME53N.
Thank you in advance.
Best regards,
Dennis
Edited by: Dennis Goerke on Dec 8, 2008 3:33 PMMy Problem, was i have no information about the purchase order in the searchhelp exit so i can't process a check on the field BSART.
But i have found two badis for my problems.
ME_PROCESS_REQ_CUST
and
ME_PROCESS_PO_CUST
There is the Method OPEN, which is execude at opening the purchase or requisision.
There i can cast the header data and write a static attribute.
Then i can create an object in search help exit to access the attribute, so i can do a check on BSART in this search help now.
Thanks for your answer.
best regards, Dennis -
Hi Every one,
when sales order creation or change, while selecting the route i have written a code for to fetch the data from ztable.till here it is ok then now my boss wants
while F4 help in route when it is hitting the list i have copied a search help exit F4IF_SHLP_EXIT_EXAMPLE , there i have selected control = 'DISP' , there when i have to filter the data in exit but i am not getting any importing parameterslike plant, customer,storage location from the sales order.
How to rectify this problem, pls explain me its urgent..
Thanks in advance.Hi,
I think you are using elementary search help for this. Check your search help dailog type , It should be "dialog with value restriction" and also check the search help paramters ie "Spos" column positions. Always give the order in which your fields dislayed in search help.
Look at the below link
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm
Regards
Sudheer -
Values from Search help not returned to UI
Hi,
For a field on Web UI, i have to open a popup which would be configured from a search help created in transaction SE11. The search help uses a Searchhelp Exit. On the UI, I am getting the popup but the value i select is not reflecting on the UI. The moment i select the value, the popup closes. The 'Get_XXX' method of the attribute also does not triggered. Following is the code which i am using to call the search help in the GET_V_XXX method of the attribute.
DATA:
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
ls_map-context_attr = 'STRUCT.ZZSTORAGE_LOC'.
ls_map-f4_attr = 'STORAGE_LOC'.
APPEND ls_map TO: lt_inmap, lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor
TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZOFI_SHLP_STORAGE_LOC2'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
I have tried various approaches suggested in the forum, but none could solve the issue. Please guide.
Thanks and Regards,
RadhikaHi,
The client wants to use the search help method only. i am using the following code to call the serach help.
DATA:
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
CLEAR ls_map.
ls_map-context_attr = 'EXT.ZZSTORAGE_LOC'.
CONDENSE ls_map-context_attr no-GAPS.
ls_map-f4_attr = 'STORAGE_LOC'.
APPEND ls_map TO: lt_inmap, lt_outmap.
CLEAR ls_map.
ls_map-context_attr = 'EXT.ZZPLANT'.
CONDENSE ls_map-context_attr no-GAPS.
ls_map-f4_attr = 'PLANT'.
APPEND ls_map TO: lt_inmap, lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor
TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZOFI_SHLP_STORAGE_LOC2'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
this code is written in the GET_V of the field ZZSTORAGE_LOC.The ZZ Storage_Loc field is getting saved but the field ZZPLANT does not. Please provide your inputs.
Thanks,
Radhika -
How to use BAPI_HELPVALUES_GET with functional location
I try to create an RFC connection searchhelp for my ECC system to the functional location table.
I thought of using the bapi_helpvalues_get but I get stuck in determing the right input data
I have found the right objectype in SWOI
BUS0010
now I found out thanks to see where the function was used and how it was filled in with which values
OBJTYPE BUS0010
OBJNAME FUNCTIONALLOCATION
METHOD GETLIST
PARAMETER FUNCLOC_LIST
FIELD FUNCTLOCATION
but still I get an error
ES&003Parameter FUNCLOC_LIST voor objectmethode BUS0010.GETLIST not available
what do I miss here ??
and If abnybody nows how I can build a searchhelp with just a searchhelp exit without a view to search for values it will also solve my problem in creating a searchhelp with data from another system which I have to retrieve by RFC
kind regards
arthurBAPI_PTIMEOVERVIEW_GET
Just pass in the a From date and To date, and then in tables, pass in a employee no, in EMPLOYEES field.thats all, execute. Any prompts you get to enter a value for anything just click save without entering any values. You will get data returned in Result table of TIMEOVERVIEW.
You can find the Documentation of this, when you go into display mode of this Bapi, you will find function module documentation on top right hand side of the screen. in any case i am pasting it below.
Functionality
This method defines a time data overview for employees.
The time data determined can be used as a value guide for recording in
another system (such as in a time sheet or an external system).
Notes
An "asynchronous access" to R/3 Time Management data determined by the
method PTimeOverview.Replicate specifies the employees for whom a time
data overview is to be created.
A "sysnchronous access" to R/3 Time Management data determined by the
time period entered and the external application specifies the employees
for whom a time data overview is to be created.
The employees selected are returned in the EMPLOYEES parameter. A list
of the time types for these employees also to be included in the
overview is returned in the TIMETYPES parameter.
The time data overviews are returned in the TIMEOVERVIEW parameter.
The selected time types and the applicable number of hours are returned
in the TIMETYPEVALUES parameter.
The overviews are transferred to the other systems by the method
PTimeOverview.SaveReplica.
Parameters
FROMDATE
TODATE
EXTAPPLICATION
EMPLOYEES
TIMETYPES
TIMEOVERVIEW
TIMETYPEVALUES
RETURN
Exceptions -
Hi Friends,
I am working on the F4 help of a custom field on the WebUI screen.
I have implemented the GET_V method of the context node attribute and it is working fine, and displaying the results in the F4 help. However, I need to filter these values. So, I have created a Searchhelp exit.
The issue is while filtering in Search help exit, the record_tab[] is filled with only first 500 entries. For this I have manually changed the value of CALLCONTROL-MAXRECORDS = '99999' and it fetches all the existing records in GUI and the filtering works fine. But the same logic doesn't work for Web UI screen. The reason for this is, from Web UI, the class CL_THTMLB_F4HELP is called. In this the method GET_DATA is used to fetch the records. Here there is a field gv_maxrows that is by default '500'. Now, in debugging if i change this to '99999', it works fine. So, how can I do this in coding. How can I change the value of gv_maxrows of the method GET_DATA of the class CL_THTMLB_F4HELP. Can I do this in GET_V method or in the Search Help exit.
Your response will be appreciated.
Thanks & Regards,
Raju.Hi!
I think that I was not clear in my requirement actually i need to add the document to a folder in a product catalog. So the document is stil not there.
please suggest to get the folder info where the document needs to be attached.
Thanks
Mayank -
Filter off all the unwanted org elements from the selection screens
Hello all,
The client does not want to see SAP predelivered organization elements in the production system.
Is there a way to achieve this globally, by some kind of filter applicable to selection screens of all transactions?
Just to be clear- i do not want to do this for every transaction separately. neither will security set up help, because it becomes voluminous.
Highly appreciate your inputs in this regard.
best regards,
SriniUse a searchhelp exit for the relevant search helps. There are manyy but less than transactions
Matthias -
Adding search help to standard SAP field
Hi Experts,
I need to add search help to field ZUONR i.e assignment field in various tcode like fb70,fb60,f-02.etc which will select data from
Z tables . I have found out serach help exit F4IF_SHLP_EXIT_EXAMPLE but as per my knowledge that is to change existing standard search help.But to field ZUONR there is no search help attached.How can new Z search help be added to field ZUONR without use of access key.
Please suggest.
Regards,
Kaustubh Kabre.Hi,
I don't know how to change "Value table" field on domain without access key, but if nothing else work, you can add new fixed values. From menu Goto->fixed value append.
Other possibility is to use GuiXT -> write script that will call your FM that will get data from your table and show them.
Best regards
Marcin Cholewczuk -
Enhancing search help of Workcenter in cr03
Hi,
The F4 help on Workcenter in cr03 transaction gives the option to search by :
Work Center category
Find by Class
Name of Work Center
Technical Data
Person Responsible
An enahanement should be done so that the search should also be possible by Cost Center, i.e, after the enhancement, the F4 help should offer search by:
Work Center category
Find by Class
Name of Work Center
Technical Data
Person Responsible
<b>Cost Center</b>
How to go about this??
Advance Thanks
AadarshHi Adarsh,
The serach help used in this case is 'CRAM' which includes many other searchhelps.. Go to SE11 and display the search help CRAM & dig through the included serachhelps.. you might run into a searchhelp exit that might be useful.. there are a couple of exits in COI2O2_CRAM..
Good luck,
Suresh Datti
P.S. PL rewrad helpful answers -
Possible to change output of searchhelp with exit
I was wondering if it is possible that in the exit of a searchhelp or in an other way if you can change the color of the rows depending on certain values ?
so if a vendor is blocked for instance that the row wil be made red, and otherwise the default color
kind regards
arthur de smidtI have tried a different method where I made a new datatype and a new domain which converts the output from an xfeld to an traffic light.
in the domain ZXFELD_ICON
I have input char 1 and output char 4
I made 2 conversion routines for the exit routine
CONVERSION_EXIT_ZXFEL_OUTPUT
and transformed the data in here
if input = ' '.
select single id from icon
into output
where name = 'ICON_GREEN_LIGHT'.
else.
select single id from icon
into output
where name = 'ICON_RED_LIGHT'.
endif. -
Searchhelp User Exit ??
Hi all
I want to know about the detail functionality & coding of User exit Specially Searchhelp User exit . Can anyone please explain it with a good example ??Hello Vtest,
This is how u do...
In user exit EXIT_SAPMM06E_004.
data: begin of th_head occurs 0.
include structure thead.
data: end of th_head.
data: begin of th_line occurs 0.
include structure tline.
data: end of th_line..
clear: th_head, th_line.
refresh: th_head, th_line.
th_head-tdobject = 'EKKO'.
th_head-tdid = 'F14'.
th_head-tdspras = sy-langu .
append th_head.
th_line = '*'.
th_line = 'this is first line'.
append th_line.
clear th_line.
th_line = '*'.
th_line = 'this is second line'.
append th_line.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = th_head
INSERT = ' '
SAVEMODE_DIRECT = ' '
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
LINES = th_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
this should work for you. -
Hi,
I need to enhanse search help and add F4 functionality to display list of company codes when cursor is in PBUKR field. I put F4IF_INT_TABLE_VALUE_REQUEST
into the user exit but nothing works.
I get error that PROCESS is not defined. If I remove that line there is no error but nothing works.
Can someone tell me what is wrong in the code below.
Thank you.
FUNCTION z_hr_shlp_wbs_element.
""Local interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCR_TAB_T
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" VALUE(SHLP) TYPE SHLP_DESCR_T
*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
TABLES: prps.
DATA: it_prps LIKE prps OCCURS 0 WITH HEADER LINE.
DATA: status_tab LIKE jstat OCCURS 0 WITH HEADER LINE.
DATA: l_posid LIKE prps-posid.
DATA: l_subrc LIKE sy-subrc.
DATA: l_pbukr LIKE prps-pbukr, " Added by vr
value TYPE DDSHIFACE-VALUE.
EXIT immediately, if you do not want to handle this step
IF callcontrol-step <> 'SELONE' AND
callcontrol-step <> 'SELECT' AND
" AND SO ON
callcontrol-step <> 'DISP'.
EXIT.
ENDIF.
------------------------------------------------------ added by vr
PROCESS ON VALUE-REQUEST.
FIELD PRPS-PBUKR MODULE PBUKR.
DATA: BEGIN OF VALUE_TAB OCCURS 0,
LPBUKR LIKE PRPS-PBUKR,
LPOSID LIKE PRPS-POSID,
END OF VALUE_TAB.
DATA: BEGIN OF RETURN_TAB OCCURS 0.
INCLUDE STRUCTURE DDSHRETVAL.
DATA END OF RETURN_TAB.
SELECT PBUKR POSID FROM PRPS UP TO 20 ROWS
INTO TABLE VALUE_TAB WHERE SLWID = 'QLT UDF'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'PBUKR'
WINDOW_TITLE = 'Statusselektion'
VALUE_ORG = 'S' "hierdurch kann die Struktur genommen werden
TABLES
VALUE_TAB = VALUE_TAB
RETURN_TAB = RETURN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
end of additions
STEP SELONE (Select one of the elementary searchhelps)
This step is only called for collective searchhelps. It may be used
to reduce the amount of elementary searchhelps given in SHLP_TAB.
The compound searchhelp is given in SHLP.
If you do not change CALLCONTROL-STEP, the next step is the
dialog, to select one of the elementary searchhelps.
If you want to skip this dialog, you have to return the selected
elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
either to 'PRESEL' or to 'SELECT'.
IF callcontrol-step = 'SELONE'.
PERFORM SELONE .........
EXIT.
ENDIF.
STEP PRESEL (Enter selection conditions)
This step allows you, to influence the selection conditions either
before they are displayed or in order to skip the dialog completely.
If you want to skip the dialog, you should change CALLCONTROL-STEP
to 'SELECT'.
Normaly only SHLP-SELOPT should be changed in this step.
IF callcontrol-step = 'PRESEL'.
PERFORM PRESEL ..........
EXIT.
ENDIF.
STEP SELECT (Select values)
This step may be used to overtake the data selection completely.
To skip the standard seletion, you should return 'DISP' as following
step in CALLCONTROL-STEP.
Normally RECORD_TAB should be filled after this step.
Standard function module F4UT_RESULTS_MAP may be very helpfull in this
step.
IF callcontrol-step = 'SELECT'.
Maximum records are set to 0 because the counter for Max records keeps
running, even if you filter out certain records. This is a similar
problem as described in OSS Note 148525.
Feb 3, 2004 LS: devk907353
(maxrecords = 0 defaults to maxrecords 500)
As of release 4.7, it appears that maxrecords is
being considered on the read of the view, rather
than prior to presenting the selection list.
When only 500 records are passed into this exit,
the subsequent evaluation yields very few records
in the selection list. By setting maxrecords to
8000, the entire contents of the view are passed
to this user exit, and therefor the search help
yields a reasonable selection list to the user
(as was the case in release 4.6b).
callcontrol-maxrecords = 0. " devk907353
callcontrol-maxrecords = 8000. " devk907353
PERFORM STEP_SELECT TABLES RECORD_TAB SHLP_TAB
CHANGING SHLP CALLCONTROL RC.
IF RC = 0.
CALLCONTROL-STEP = 'DISP'.
ELSE.
CALLCONTROL-STEP = 'EXIT'.
ENDIF.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.
Added by vr, Nov. 2007 ---------------------------
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
PARAMETER = 'PBUKR' " Reference to search help parameter
IMPORTING
VALUE = value
TABLES
SHLP_TAB = shlp_tab
RECORD_TAB = record_tab
CHANGING
SHLP = shlp
CALLCONTROL = callcontrol.
l_pbukr = value.
End of additions by vr ---------------------------
STEP DISP (Display values)
This step is called, before the selected data is displayed.
You can e.g. modify or reduce the data in RECORD_TAB
according to the users authority.
If you want to get the standard display dialog afterwards, you
should not change CALLCONTROL-STEP.
If you want to overtake the dialog on you own, you must return
the following values in CALLCONTROL-STEP:
- "RETURN" if one line was selected. The selected line must be
the only record left in RECORD_TAB. The corresponding fields of
this line are entered into the screen.
- "EXIT" if the values request should be aborted
- "PRESEL" if you want to return to the selection dialog
Standard function modules F4UT_PARAMETER_VALUE_GET and
F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
IF callcontrol-step = 'DISP'.
DEVK909420 Begin
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'.
Changed by vr, Nov. 2007
IF l_pbukr <> ''.
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'
AND fkstl <> ''
AND pbukr = l_pbukr.
ELSE.
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'
AND fkstl <> ''.
ENDIF.
End of changes
DEVK909420 End
SORT it_prps BY posid.
LOOP AT record_tab.
l_posid = record_tab+96(24).
READ TABLE it_prps WITH KEY posid = l_posid.
IF sy-subrc = 0.
CALL FUNCTION 'STATUS_READ'
EXPORTING
objnr = it_prps-objnr
only_active = 'X'
TABLES
status = status_tab.
DEVK909329 Begin
read table status_tab with key inact = ''
stat = 'E0001'.
if sy-subrc is initial.
read table status_tab with key inact = '' "DEVK909345
stat = 'I0002'. "DEVK909345
endif.
DEVK909329 End
ENDIF.
IF sy-subrc NE 0.
DELETE record_tab.
ELSE.
IF record_tab+114(1) EQ '.' AND
record_tab+115(1) EQ '9'.
DELETE record_tab.
ELSE.
DEVK909420 Begin
IF record_tab+102(1) EQ '9'.
DELETE record_tab.
ELSEIF record_tab+104(1) EQ '9'.
DELETE record_tab.
ENDIF.
DEVK909420 End
ENDIF.
ENDIF.
ENDLOOP.
EXIT.
ENDIF.
ENDFUNCTION.Hi Vitaly,
Process on Value Request and search help exit is entirely two idea to display the f4 values.please remove the PROCESS ON VALUE REQUEST from the function module.write the required select statements after CHECK callcontrol-step EQ 'SELECT' . and pass the value to the function module
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = l_record
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF ( sy-subrc = 0 AND l_record IS INITIAL ).
MESSAGE 'No values found' TYPE 'S'.
ENDIF.
callcontrol-step = 'DISP'.
Find the documentaion for this function module for further help
message edited by
shibu -
Populate and display internal table results using search help exit...
I have copied F4IF_SHLP_EXIT_EXAMPLE and made changes. I want this search help exit to populate and display contents related to 'FIELD1' when the user enters a specific value for it in the search help screen, meaning when the user restricts the search by that value. For field2, field3, field4, field5, field6, field7, and field8 I am using a custom view.
Following is the code:
TYPES: BEGIN OF t_search,
field2 TYPE field2,
field3 TYPE field3,
field4 TYPE field4,
field5 TYPE field5,
field6 TYPE field6,
field7 TYPE field7,
field8 TYPE field8,
field1 TYPE field1,
END OF t_search.
DATA: it_itab TYPE TABLE OF t_search,
wa TYPE t_search,
wa_selopt TYPE ddshselopt,
wa_fielddescr TYPE dfies.
ranges: r_field1 for std_table1-field1
STEP SELECT (Select values)
FREE: r_field1.
**Get the value entered for FIELD1 in search help
LOOP AT shlp-selopt INTO wa_selopt.
CASE wa_selopt-shlpfield.
WHEN 'FIELD1'.
r_field1-sign = wa_selopt-sign.
r_field1-option = wa_selopt-option.
r_field1-low = wa_selopt-low.
r_field1-high = wa_selopt-high.
APPEND r_field1.
CLEAR: r_field1.
ENDCASE.
ENDLOOP.
**Select 'ID' and 'FIELD1' from table into lt_itab
SELECT id field1
INTO TABLE lt_itab
FROM std_table1
WHERE field1 IN r_field1.
IF sy-subrc = 0.
**Now, based on the particular IDs from lt_itab, I need to select other values
from other tables which also have 'ID' as the key.
SELECT std_table2~field2
std_table2~field3
std_table3~field4
std_table3~field5
std_table3~field6
std_table4~field7
std_table4~field8
std_table1~field1
INTO CORRESPONDING FIELDS OF TABLE it_itab
FROM std_table2
INNER JOIN std_table3 ON
std_table3mandt = std_table2mandt AND
std_table3id = std_table2id
INNER JOIN std_table4 ON
std_table4mandt = std_table2mandt AND
std_table4id = std_table2id
INNER JOIN std_table1 ON
std_table1mandt = std_table2mandt AND std_table1id = std_table2id
WHERE
std_table1~field1 IN r_field1.
'id' is common in all the std_tables --> std_table1, std_table2, std_table3, std_table4.
STEP DISP (Display values)
**Then I need to gather all the results in my internal table it_itab and display
in search help results for the value of FIELD1 entered by the user in the search help.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'FIELD1'
fieldname = 'FIELD1'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = it_itab
CHANGING
shlp = shlp
callcontrol = callcontrol.
I am not getting all the data in my internal table and wanted to know if there is anyting wrong in my select statement.
Any guidance will be appreciated and awarded appropriate points.
Thanks.the webdynpro fieldname and the search help input parameter name were made same.
Maybe you are looking for
-
Hello, We are having the following issue: when our lync users are outside of our network, just connected to their home internet or a public WiFi and not on VPN, they cannot place calls to other Lync users inside our network. They get a poor network
-
Display Integrated Oracle Report in New Browser Window
Hi All, I am using APEX 3.0.1 and Reports Builder 10g and have integrated my Oracle Reports (.rdf) successfully with APEX. The trouble is that the report output (in PDF format) is opening in the same browser window as my APEX application and I would
-
How to remove css style from source code?
Hello, I am working on launching a website soon and saw that I have some repetative css styles in the source code. I would like to remove them, because I want my style sheet "115209.css" to be the main controller. Below is my code. I just need to kno
-
Can not edit Forms and Reports in WebDB. Any bug?
I could not edit a form or report on the WebDB. I am geting an error :-- ORA-03114: not connected to ORACLE Actually I am still connected to Oracle. I am using WebDB version 2.0.5.6.1 What is the way ? Is it a bug ? Is there a patch for it ? null
-
Bismillaah. Peace. Earlier versions of firefox to the present version 3.6.8 have a tendency to automatically scroll from the top of the page to the bottom, and then up to the top again, repeatedly. Hitting the up or down arrow repeatedly will sometim