Change Large Join to Selects (URGENT)
Hi,
I need to change the following Join to a number of selects, since the Join isn't working as it should. Also, is "for all entries" obsolete or is it still relevant?
Here is the last part of the join, since I cannot list all of the fields:
INTO TABLE itab_data
from viqmelst as b
inner join viqmfe as c on bqmnum = cqmnum
inner join viqmaml as a on bqmnum = aqmnum and
cfenum = afenum
inner join viqmur as d on bqmnum = dqmnum and
cfenum = dfenum
inner join viqmsm as e on bqmnum = eqmnum and
cfenum = efenum
inner join TJ02T as f on bstat = fistat
WHERE a~qmnum in s_qmnum and
a~qmdat in s_qmdat and
a~qmart in s_QMART and
a~matnr in s_matnr and
b~stat in s_stat and
b~charg in s_charg and
f~spras = 'EN'.
sort itab_data by qmnum fenum.
delete adjacent duplicates from itab_data.
Thanks,
John
Hi John,
The FOR ALL ENTIRES option is used to avoid the adverse impact on performence that the JOINS make..
Code like this:
SELECT xx yy zz...
INTO itab1
FROM tab1
WHERE.. Condtions of select options.
IF sy-subrc EQ 0
AND itab1[] IS NOT INITIAL.
SELECT aa bb cc
INTO itab2
FROM tab2
FOR ALL ENTRIES IN tab1
WHERE join codition with tab1
AND select conditions on fields of tab2 if any.
and so on for all other tables..
Thanks and Best Regards,
Vikas Bittera.
**Points for useful answers**
Similar Messages
-
Inner join and select for all entries with respect to performance
Hi Friends,
I just want to know which is more efficient with respect to performance the Inner join or select for all entries?which is more efficient? and how? can you explain me in detail ?
Regards,
DineshINNER JOIN->
The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join. With an inner join, you only get the records of the cross-product for which there is an entry in all tables used in the view. With an outer join, records are also selected for which there is no entry in some of the tables used in the view.
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ec77446011d189700000e8322d00/content.htm
FOR ALL ENTRIES->
Outer join can be created using this addition to the where clause in a select statement. It speeds up the performance tremendously, but the cons of using this variation are listed below
Duplicates are automatically removed from the resulting data set. Hence care should be taken that the unique key of the detail line items should be given in the select statement.
If the table on which the For All Entries IN clause is based is empty, all rows are selected into the destination table. Hence it is advisable to check before-hand that the first table is not empty.
If the table on which the For All Entries IN clause is based is very large, the performance will go down instead of improving. Hence attempt should be made to keep the table size to a moderate level.
Not Recommended
Loop at int_cntry.
Select single * from zfligh into int_fligh
where cntry = int_cntry-cntry.
Append int_fligh.
Endloop.
Recommended
Select * from zfligh appending table int_fligh
For all entries in int_cntry
Where cntry = int_cntry-cntry. -
Full outer join --- bug? Urgent
Hi,
I have a simple mapping using 2 source tables and doing an full outer join. While executing the mapping it is throwing me out with an error --
Starting Execution LOAD_SAP
Starting Task LOAD_SAP
ORA-01790: expression must have same datatype as corresponding expression
ORA-02063: preceding line from ODSD@LOC_TGT_LOC_ODSD
ORA-06512: at "DWH_USER.LOAD_SAP", line 12
ORA-06512: at "DWH_USER.LOAD_SAP", line 481
ORA-06512: at "DWH_USER.LOAD_SAP", line 795
ORA-06512: at "DWH_USER.LOAD_SAP", line 1973
ORA-06512: at line 1
Completing Task LOAD_SAP
Completing Execution LOAD_SAP
The SQL generated at line 12 is -
CURSOR "JOIN_c" IS
SELECT
/*+ DRIVING_SITE("CONNECTION_LOC_TGT_LOC_ODSD") */
"CONNECTION_LOC_TGT_LOC_ODSD"."END_USER_CUST_ID" "END_USER_CUST_ID",
"SERVICE_LOC_TGT_LOC_ODSD"."SERVICE_NAME" "SERVICE_NAME",
"CONNECTION_LOC_TGT_LOC_ODSD"."CE_CLLI" "CE_CLLI",
"CONNECTION_LOC_TGT_LOC_ODSD"."PE_CLLI" "PE_CLLI"
FROM "ODS"."CONNECTION"@"ODSD"@"LOC_TGT_LOC_ODSD" "CONNECTION_LOC_TGT_LOC_ODSD"
FULL OUTER JOIN "ODS"."SERVICE"@"ODSD"@"LOC_TGT_LOC_ODSD" "SERVICE_LOC_TGT_LOC_ODSD" ON ("CONNECTION_LOC_TGT_LOC_ODSD"."END_USER_CUST_ID" = "SERVICE_LOC_TGT_LOC_ODSD"."END_USER_CUST_ID") ;
If I replace the Full outer join with an equi join everything works fine. The SQL generated with an equi-join is ---
SELECT
/*+ DRIVING_SITE("CONNECTION_LOC_TGT_LOC_ODSD") */
"CONNECTION_LOC_TGT_LOC_ODSD"."END_USER_CUST_ID" "END_USER_CUST_ID",
"SERVICE_LOC_TGT_LOC_ODSD"."SERVICE_NAME" "SERVICE_NAME",
"CONNECTION_LOC_TGT_LOC_ODSD"."CE_CLLI" "CE_CLLI",
"CONNECTION_LOC_TGT_LOC_ODSD"."PE_CLLI" "PE_CLLI"
FROM "ODS"."CONNECTION"@"ODSD"@"LOC_TGT_LOC_ODSD" "CONNECTION_LOC_TGT_LOC_ODSD",
"ODS"."SERVICE"@"ODSD"@"LOC_TGT_LOC_ODSD" "SERVICE_LOC_TGT_LOC_ODSD" WHERE ( "CONNECTION_LOC_TGT_LOC_ODSD"."END_USER_CUST_ID" = "SERVICE_LOC_TGT_LOC_ODSD"."END_USER_CUST_ID" );
We are using Oracle 9.2.0.4 AND OWB Clinet 9.2.0.2.8 and runtime repository 9.2.0.2.0.
Any help on this appreciated?The discussion on this thread has moved to the later thread Problem with JOINs
Nikolai -
Error joining the selected airport network?
I'm trying to connect to my linksys wireless using WPA with a powerbook but no luck. My password which I know is correct (it's working on another G4 and my wife's Gateway. I get the following message when selected my network. "There was an error joining the selected airport network". I can connect via a neighbor's unprotected network, so airport is working. Other times I've tried it says password is incorrect.
Wi-Fi Protected Access networks normally require a plain-text password or passphrase. But in rare cases you may have to enter a string of 64 delightful hexadecimal characters.
The HEX password is derived from the plaintext password therefore you shouldn't need to create anything new. Check the linksys router for the HEX version of your plaintext password.
The AirPort interface doesn't welcome this wonderful practice by default (imagine that), but it's buried in there for when you need it. Just hold down the Option key while choosing your network from the AirPort menu, then you'll be set to enter all 64 of those easy-to-remember characters.
iFelix -
How can you change your line access selection? I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?
DIVAB71,
Great question. The line access fees for the account are a set amount and can not be changed unless you are going from a basic to a smartphone or vice versa. If you are wondering about adding the month to month discount if you are out of contract Ann154 has provided great information on how to access and add the feature.
LindseyT_VZW
Follow us on Twitter @VZWSupport -
Burning a disc but getting a too large for current selected disc media mess
Trying to burn a project on to DVD (4.7g disc) but I keep getting a message that says "Compiled project is 2835.4 MB too large for currently selected disc media. Does anyone have any ideas on this? Isn't 2835.4 MB around 2.8G. I'm confused! Should'nt this fit. Any help would be appreciated
Hi
To fit that lenght in a SL DVD you must use Compressor to encode your video and audio before importing in DVDSP. You can take the standard DVD High Quality 120 min preset and use the MPEG2 and AC3 (Dolby 2) settings, then use those files in DVDSP.
If you are currently using DVDSP as encoder, you'll get AIFF uncompressed audio what takes a lot of disc space and bitrate.
Hope that helps !
Alberto -
How do I change the default '/' shortcut (select 'none' in colour swatch) to something different? Where can i find it in Keyboard Shortcuts?
Any ideas?Thanks so much )))))))
-
Change from Parameter to Select-options.
Hi All,
Requirement is to change the existing program.
One of my requirement is to change parameter(P_VKORG) to Select-options(S_VKORG).
I mean earlier we have only one Slaes Organization, now we have got to use multiple Sales organizations. For this requirement I have used select-options insted of Parmeters.
But the code has:
a)PERFORMS using Parameters( P_VKORG). This inturn is used in the select statement of the FORM-ENDFORM.
b)READ statement also has P_VKORG in where condition.
How should these be replaced with Select-options(S_VKORG)?
What would be the effect if I directly replace them with S_VKORG.
Kalyani Tyou cannot just directly replace with S_VKORG.
select option is a structure with 4 fields, sign, option, low and high, hence it has to be dealt accordingly.
a. performs has to be changed to 'tables S_VKORG'
eg. perform get_data tables s_vkorg.
b. read statement has to be modified to deal with multiple values. best option will be to select for data in s_vkorg, and save in an internal table.
for eg, if select option was for vkorg,
select vkorg from tvko into t_tvko where vkorg in s_vkorg.
now t_tvko has list of possible vkorgs - regardless of we had a range or ne or gt or CP or whatever we had in select option.
now modify the read table to do for entries in T_TVKO.
c. in the select statement which is used in forms, wherever you see ' = P_vkorg' , replace with IN S_VKORG. -
To change Default Setting of Selection Screen while Filtering on infoobject
Dear Guru's,
I just want to know where can I change the Deafult Setting from 100 to 500 which we get in the Selection Screen when we want to Filter on Info-Object level in the Workbook.
Hope this will clear the question , incase any further information required please let me know.
Many thanks.Hi Kasi,
Please do not post the same question twice. You can see my reply at:
Re: To change Default Setting of Selection Screen while Filtering on infoobject -
How to change date format in select-option (mm.yyyy).
Hi,
Plz, How to change date format in select-option (mm.yyyy).
in my selection screen date type selection-option is there ,when i am enter date it's taken dd.mm.yyyy format,but i want mm.yyyy format.
how to set that .
Regards,
Kk.sorry
parameters : pmonyr type spmon or
select-options : sspmon for PGPL-spmon .
or what table ccontains spmon.
regards
shiba dutta -
Changing text in a selection drop down
Hi all,
Does anyone know how to change the text(not value) that is displayed in a single line selection drop down box from a javascript function.?
ie.
<select name="companyMenu" size="1" >
<option value=" ">Want to change this text</option>
</select>
regards
JKits ok, found the answer.
simply place an id in the option tag and refer to the innerText.
ie
<select name="companyMenu" size="1" onchange=whatever(this.form);>
<option id="commonText" value="">Want to change this text</option>
and for the function
function whatever(f) {
commonText.innerText = "happy";
which replaces "Want to change this text" with "happy"
cheers
JK -
BPC NW 10.0 - Data Manager Prompt changing from SELECTINPUT to SELECT cleared values
Dear BPC Experts,
We recently went from SP13 patch 4 to SP19 patch 1. When we made changes in the PROMPT values in the Data Manager Organize>Package>Modify Script>PROMPT, we experienced different behavior switching from SELECTINPUT to SELECT in our development system than we did in our production environment. In development, when we changed the value from SELECTINPUT to SELECT, the values entered for Variable name such as %SELECTION% in Property1 and "Select the members to CLEAR" in Property2, and %DIMS% remained. However, when we changed from SELECTINPUT to SELECT in production system, the values for Variable Names and Properties were cleared out. Does anyone know why in our developmet system values were kept but not in our production system during this type of activity? I would like to understand the two different behaviors and what controlled it. We prefer not to have the values for Properties clear.
Thank you in advance for your assistance.
Kind regards,
LisaHi Vadim,
Excellent point, I should have included images as that likely would have shown this odd behavior.
When I made the changes in our development system to a package to switch from SELECTINPUT to SELECT the values outlined in the image below were retained for Varialbe Name, Property 2, and Property 3 after we applied the SP19 patch 1.
When I made the same change in our system to a package in our production system after we applied the SP19 patch 1, the values for Varialbe Name, Property 2, and Property 3 were cleared per the image below. The odd thing is that initially it looked like the values stayed. It was only after you saved and went back in did you see that the values were gone.
Any help in understanding this behavior change would be greatly appreciated.
Thank you,
Lisa -
Change the Parameter as Select option
Hi Guy's,
Please help me friends, present requirement is like this : change the Parameter into Select-Option.
Here they are using one function module, this function module import parameter taking single value, how loop this function module with in this select-option.
PARAMETERS p_fictr LIKE fmfctr-fictr.
START-OF-SELECTION.
Move the select options to internal tables (import parameter for fn)
move_sel_option : sel_buk s_bukrs ,
sel_pern s_pernr ,
sreinr s_reinr ,
spdatv s_pdatv ,
sberei s_berei .
Call the function to get all trips corresponding to sel criteria
CALL FUNCTION 'ZHR_GET_FUND_TRIPS'
EXPORTING
p_fictr = p_fictr
p_sub = p_sub
TABLES
s_bukrs = s_bukrs
s_pernr = s_pernr
s_reinr = s_reinr
s_pdatv = s_pdatv
s_berei = s_berei
i_trip = i_trip
EXCEPTIONS
OTHERS = 1.
Thanks and Regards,
Saihi,
You can first the field values using the select statement and then loop that internal table and pass the values to the function module.
try this
*PARAMETERS p_fictr LIKE fmfctr-fictr.
select-options: s_fictr for fmfctr-fictr.
START-OF-SELECTION.
Move the select options to internal tables (import parameter for fn)
move_sel_option : sel_buk s_bukrs ,
sel_pern s_pernr ,
sreinr s_reinr ,
spdatv s_pdatv ,
sberei s_berei .
select fictr
from fmfctr
into tabel itab
where fictr in s_fictr.
loop at itab.
Call the function to get all trips corresponding to sel criteria
CALL FUNCTION 'ZHR_GET_FUND_TRIPS'
EXPORTING
*p_fictr = p_fictr
p_fictr = itab-fictr
p_sub = p_sub
TABLES
s_bukrs = s_bukrs
s_pernr = s_pernr
s_reinr = s_reinr
s_pdatv = s_pdatv
s_berei = s_berei
i_trip = i_trip
EXCEPTIONS
OTHERS = 1.
endloop.
regards,
Veeresh -
Revision: 10868
Author: [email protected]
Date: 2009-10-05 11:05:50 -0700 (Mon, 05 Oct 2009)
Log Message:
change default value of selectable in ASDoc comment to true
QE notes: -
Doc notes: -
Bugs: -
Reviewer: -
Tests run: - checkintests
Is noteworthy for integration: No
Modified Paths:
flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/controls/TextArea.asThank you much for your response.
I tried that and it did work. But my requirement is to have a user input the date. The basic idea is if the user decides on a predefined time range like Day Shift Today or Yesterday and so on... then the report would automatically calculate the values based on predefined date time values. On the other hand, if the intent is to run the report for an arbitrary period then the user supplies the date and time limits.
What I am trying to achieve is have the same parameter available for user input , but when the User decides he wants Predefined then the "textbox" populates with date and time as per his choice of predefind range.
I understand that by this the user can still overwrite the date and time on the text box, but the report will run the predefined values as long as he has the @PredefinedDateSelection Set to true.
Is there a way I can impement this?
Once again I thank you and appreciate your input. -
Hi. I've added a new page to my iWeb '08 version 2.0.4 website, but can't seem to select the top menu items to make a rollover color change. I can select them on the original pages. What am I forgetting to do?
Old Toad has a tutorial about changing the colors in the iWeb default menu...
http://oldtoadstutorials.net/No.24.html
If you want your website to be found by search engines you would be better to follow Ethmoid's suggestion of creating your own navigation...
http://www.iwebformusicians.com/iWeb/Navigation.html
Maybe you are looking for
-
Hi, it is unpractical to keep wiping the firefox history every time I exit the app and leave the phone down. Is there no other way of setting a homepage that wont show the last sites i was at. There are kids in the house who may lift the phone and us
-
Column contain space in table.
Hi I have one table and one column itself contain space not the column data. Whenever i select that column it gives me error invalid identifier. I tried to rename the column also but it gives me same error invalid identifier. Please help Thanks in ad
-
SoapServerUrl variable in BPEL Admin for TCP tunneling
Hi, I have read the BPEL Techincal note 1 to view SOAP messages by using TCP tunneling. It works great when you change the location in bpel.xml for the partnerlink. But soap-server-url property is not working for me. I was wondering if there is an ea
-
Getting this error on server start up : WLS 6.1 sp2 with a patch CR067966_610sp2.jar. ( pathch for # CR067966) java.lang.LinkageError: loader constraints violated when linking org/xml/sax/HandlerBase class. We have strut actions defined in the struts
-
Adober Reader 6.0 is ghosting my computer.
Hi, I am working aith a computer running Windows XP, and I am trying to install Adobe Reader. The problem is, every time I try to install Reader, whether it's the new version or an older one, the installer fails, because Adobe Acrobat 6 comes up