Program got slow in select statment.
Hi,
I have written the following select statement:
select name secu from trdir into table it_tab
where name in s_name
and subc eq '1'or subc eq 'I' or subc eq 'F'
and udat in s_date.
I just added this and subc eq '1'or subc eq 'I' or subc eq 'F' and since then the program is taking lot of time... so can you please tell me what wrong I am doing..
Thanks,
Rajeev
Rajeev,
Your Select statement is ambiguous which might be causing the delay.
I have written the following select statement:
select name secu from trdir into table it_tab
where name in s_name
and subc eq '1'or subc eq 'I' or subc eq 'F'
and udat in s_date.
Try modifying the query as follows and check.
SELECT name
secu
INTO TABLE it_tab
FROM trdir
WHERE name IN s_name
AND ( subc EQ '1' OR
subc EQ 'I' OR
subc EQ 'F' )
AND udat IN s_date.
It's recommended that whenever you use a combination of AND and OR clause to set the precedence of execution brackets should be used.
Regards,
Gajendra
Similar Messages
-
Why is my mac's battery life decreased and got slower after upgrading to lion?
Thank you for helping,
I am using MacBook Pro (13-inch, Mid 2010) and beginning of this summer I upgraded it from snow leopard to lion (from apple store). After installation my mac got slower,it consumes the battery very rapidly and starting time increased. I searched the reason on the net and this time I did a clean installation. I but the problem insisted. last week i updated to 10.7.5. this time i see that coloured spinning wheel even i logging in. I did all the updates and battery calibration as mentioned in apple support communities but nothing have changed. I don't use any grafic programs etc. I only use safari, firefox, iphoto, iwork and microsoft office for mac. My english and my computer knowledge is not very good. So, if you answer my problem please will you explain as much as simple.
Thanks anyway.A couple of things...
...first, you might want to make certain that your internal drive is selected as the Startup Disk under System Preferences. If it's not, this can sometimes lead to a problem of your MBP 'searching' for a boot drive at startup. Second, you might want to read ds store's article - Why is my computer slow? A very handy reference guide with some good tips.
As to your decrease in battery life - that has been reported by some users as a problem with both Lion and Mountain Lion. See the "More Like This" to the right of this page.
Can't offer any real solutions - read Mr. store's article and see if you can find anything that helps. You might also want to download the free "Battery Health" from the App Store and keep an eye on your battery when you're using it.
Clinton -
Safari got slower...:(
I'm using safari 5.1.
My safari got slow nowadays I'm not sure after what it got slow.
The thing is it didn't get slow in browsing speed..
some examples I've experienced :
1.I create a new tab, it opens instantly. But if I move my mouse to the previous tab and click it takes a second gap before it opens, that is, if there are several tabs and I move between tabs using my mouse by clicking it takes time.
2.Once I happened to type a mail in gmail. When i typed something, I was written instantly but if I use mouse or arrow keys to move somewhere to edit, the insertion key freezes and while in that frozen condition if I type something the insertion key comes and types what I type instantly.
This problem doesn't seem to be like problems with low memory..:(
Can anyone help me out...:(
Thanks a lot in advance...:)Right or control click your MacintoshHD icon on your desktop then click Get Info.
See: Capacity & Available.
Make sure there is a minimum of 15% free disk space. Not enough disk space can slow apps down.
From your Safari menu bar click Safari / Reset Safari.
Select the top 7 buttons, click Reset.
Quit then relaunch Safari. See if that speeds things up a bit. -
hi,
the select statment is
SELECT SINGLE * FROM edidc WHERE docnum = l_docnum AND direct = '1' AND status = '3' AND mestyp = 'OILSHL'.
there is an entry in the table edidc for the mentioned conditions.
but it is returning sy-subrc = 4.
please check what is the wrong in the statement and provide me the solution for that.
it is very urgent......
thanks in advance....<b>please use the below program for getting it</b> ....
REPORT ZTES_12 .
TABLES : edidc .
SELECT-OPTIONS : l_docnum FOR edidc-docnum .
DATA : ITAB TYPE TABLE OF edidc ,
ITAB_WA LIKE edidc .
SELECT * FROM edidc INTO TABLE ITAB WHERE docnum IN l_docnum AND
direct = '1'
AND status = '29' AND mestyp = 'MATQM'.
LOOP AT ITAB INTO ITAB_WA .
WRITE / : ITAB_WA-docnum .
ENDLOOP.
reward points if it is usefull .....
Girish -
Performace problem in a select statment how to imporve the performance
fist select statment
SELECT a~extno
a~guid_lclic " for next select
e~ctsim
e~ctsex
*revised spec 3rd
f~guid_pobj
f~amnt_flt
f~amcur
f~guid_mobj
e~srvll "pk
e~ctsty "PK
e~lgreg "PK
INTO TABLE gt_sagmeld
FROM /SAPSLL/LCLIC as a
INNER JOIN /sapsll/tlegsv as e on elgreg = algreg
* revised spec 3rd
inner join /sapsll/legcon as f on fguid_lclic = aguid_lclic " for ccngn1 selection
inner join /sapsll/corcts as g on gguid_pobj = fguid_pobj
where a~extno in s_extno.
sort gt_sagmeld by guid_lclic guid_pobj.
lgreg ctsty srvll
delete adjacent duplicates from gt_sagmeld comparing guid_lclic guid_pobj.
it selects about 20 lakh records
belos select statment whichs is taking time as it is based on the entreis of gt_sagmeld
select /sapsll/corpar~guid_mobj
/sapsll/corpar~PAFCT
but000~bpext
but000~partner
/sapsll/corpar~parno
into table gt_but001
from /sapsll/corpar
INNER join but000 on but000partner = /sapsll/corparparno
for all entries in gt_sagmeld
where /sapsll/corpar~guid_mobj = gt_sagmeld-guid_mobj
and /sapsll/corpar~PAFCT = 'SH'.
SELECT /sapsll/cuit~guid_cuit " PK
/sapsll/cuit~QUANT_FLT " to be displayed
/sapsll/cuit~QUAUM " to be displayed
/sapsll/cuit~RPTDT " to be displayed
/sapsll/cuhd~guid_cuhd " next select
/sapsll/cuit~guid_pr " next select
INTO table gt_sapsllcuit
FROM /sapsll/cuit
inner join /sapsll/cuhd on /sapsll/cuitguid_cuhd = /sapsll/cuhdguid_cuhd
FOR all entries in gt_sagmeld
WHERE /sapsll/cuit~guid_cuit = gt_sagmeld-guid_pobj.
Delete adjacent duplicates from gt_sapsllcuit[].
if not gt_sapsllcuit[] is initial.hi navenet
that didnt worked
we need to try ur range options
but not sure what you told in the last mail as not clear with range can u pls eloboragte more i am pasting the full code here
SELECT a~extno
a~guid_lclic " for next select but000
e~ctsim
e~ctsex
e~srvll
e~ctsty
e~lgreg
INTO TABLE gt_sagmeld
FROM /SAPSLL/LCLIC as a
INNER JOIN /sapsll/tlegsv as e on elgreg = algreg
where a~extno in s_extno.
sort gt_sagmeld by guid_lclic.
delete adjacent duplicates from gt_sagmeld comparing all fields.
IF not gt_sagmeld[] is initial.
SELECT /sapsll/legcon~guid_lclic
/sapsll/legcon~guid_pobj
/sapsll/legcon~amnt_flt
/sapsll/legcon~amcur
but000~bpext
*revised spec
/sapsll/corpar~PAFCT
/sapsll/legcon~guid_mobj
/sapsll/cuit~guid_cuit
INTO TABLE gt_but000
FROM /SAPSLL/LEGCON
for all entries in gt_sagmeld
where /SAPSLL/legcon~guid_lclic = gt_sagmeld-guid_lclic.
IF NOT GT_BUT000[] IS INITIAL.
sort gt_but000 by guid_mobj.
delete adjacent duplicates from gt_but000 comparing guid_mobj.
select /sapsll/corpar~guid_mobj
/sapsll/corpar~PAFCT
/sapsll/corpar~parno
into table gt_but001
from /sapsll/corpar
for all entries in gt_but000
where /sapsll/corpar~guid_mobj = gt_but000-guid_mobj.
and /sapsll/corpar~PAFCT = 'SH'.
DELETE gt_but001 where PAFCT <> 'SH'.
*sort gt_corpar by parno.
*delete adjacent duplicates from gt_corpar comparing parno.
*select gd000~partner
gd000~bpext
from gd000 into table gt_but001
for all entries in gt_corpar
where gd000~partner = gt_corpar-parno.
my ultimat aim is to select bpext from gd000
can u please explain how to use ranges here and what is the singnificance and how ill i read the data from the final table if we use ranges
regards
Nishant -
LOV is slow after selecting a value its taking much time to default
Hi,
I have a dependent LOV. Master LOV is executing fine and its populatin into the field fastly. But Child LOV is very slow after selecting a value its taking much time to default.
Can any one please help me if there is any way to default the value fast after selecting a value?
Thanks,
MaheshHi Gyan,
Same issues in TST and PROD instances.
In my search criteria if i get 1 record, even after selecting that value its taking much time to default that value into the field.
Please advice. Thanks for your quick resp.
Thanks,
Mahesh -
How to created Freely Programmed F4 help in Select Options
hi,all
I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
Thanks and Best RegardsHi Haung,
You need to use FREE_HELP not the component name.
Modify you code as below:
LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
wd_this->M_HANDLER_V->add_selection_field(
i_id = 'ZCYPHDATE'
it_result = LT_RANGE_TABLE_V
i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
i_value_help_id = 'FREE_HELP'
i_no_intervals = abap_false ).
Hope this helps you.
Regards,
Rama -
Hi ,
what is the difference between,select single and
select upto one row .
In a select statment .
Thanks ,
shankar.According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE because you are not
using all the primary key fields.
select single is a construct designed to read database records with primary key. In the absence of the primary key,
it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key
supplied and will try to find most suitable index.
The best way to find out is through sql trace or runtime analysis.
Use "select up to 1 rows" only if you are sure that all the records returned will have the same value for the field(s)
you are interested in. If not, you will be reading only the first record which matches the criteria, but may be the
second or the third record has the value you are looking for.
The System test result showed that the variant Single * takes less time than Up to 1 rows as there is an additional
level for COUNT STOP KEY for SELECT ENDSELECT UP TO 1 ROWS.
The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause
If this results in multiple records then only the first one will be returned and therefore may not be unique.
Mainly: to read data from
The 'SELECT .... UP TO 1 ROWS' statement is subtly different. The database selects all of the relevant records that
are defined by the WHERE clause, applies any aggregate, ordering or grouping functions to them and then returns
the first record of the result set.
Mainly: to check if entries exist.
You can refer to the below link..
http://www.sap-img.com/abap/difference-between-select-single-and-select-upto-one-rows.htm -
Program ZRFFOM100: No records selected - Automatic payment run
Hi Guru's,
I am facing a problem in payment run.
I am able to do the payment run. Vendor balance is getting reduced. But when it come to print(Cheque, payment advise and payment summary) it is not working.
In the print parameters all tick is provided.
I went to job log found a message like this.
Job started
Step 001 started (program SAPFPAYM_SCHEDULE, variant &0000000000096, user ID SATYA)
Step 002 started (program ZRFFOM100, variant &0000000000017, user ID SATYA)
Program ZRFFOM100: No records selected
Job finished
Please help me to solve this
Thanks
Deepakhi
Generally SAPFPAYM program is used for wire transfer, if you want cheque details to be displayed in spool you might choose some other standard program name like Rffous_c and assign it to your payment method at country level
in your case you might have selected different program name, check it out at country level in T.code FBZP.
and if you are using it for wire transfer follow these steps
1create a payment method z i.e. wire transfer for country, select bank transfer instead of cheque and select use payment medium work bench and assign wire transfer form as ACB_ZA in format field
2.Define payment method in co.code.
3.configure bank determination for z payment method.
4.add payment method z in your vendor master record.
5.posting a invoice and mention z payment method in that.
6.run the payment programme in T.code F110.
7.go to T.code SE38 and run the programme called SAPFPAYM by execute button and give identification of your run details and give format as ACB_ZA and click on execute button then pop up window will appear then give all the required fields as one 1 and execute it will give you the out put. -
Automatic payment printing error:Program RFFOUS_C: No records selected
Hi,
I need to excute printing after payment with f110 using program RFFOUS_C.
I have done the following configurations:
- Assigned SAPScript in 'payment methods in company code' in Tcode FBZP.
- Assigned printing program in 'payment method in country
- Created check lot. Check created successfully.
- Entered variant in printing program RFFOUS_C in automatic payment F110.
Automatic payment run successfully. But printing form donnot have data which are check information
This is job log in SM37:
=======================================================================
Job started
Step 001 started (program SAPFPAYM_SCHEDULE, variant &0000000001950, user ID xxx)
Step 002 started (program RFFOUS_C, variant &0000000000093, user ID xxx)
Check number status at beginning of processing: 1002
Program RFFOUS_C: No records selected
Job finished
=======================================================================
Please give me help.
Thanks & Best Regards,Hi,
In F110 in the tab, Additional log, tick all that is there and mention your vendor no. range that you have specified in parameters tab and run Proposal again.
Then go to proposal log to see the exact error reason..It will help..
Regards,
SAPFICO -
Program RFFOAVIS_FPAYM: No records selected (F0073)
hi everyone
im having a nasty issue when trying to output payment advices
no matter what usual way i try, i get the following message:
F0073
Program RFFOAVIS_FPAYM: No records selected
im using RFFOAVIS_FPAYM as print program, which is standard - nothing has been changed in it
and tried outputing the paymend advices through F110 aswell as RFFOAVIS_FPAYM directly
both results in the same message
after a while of searching i found note 503945
unfortunately it applies to release 4.6C while we are using ecc6
neitherless i found REGUH-XAVIS interesting, as in our case they also seemed to be all space.
so i tried setting the CHECK REGUH-XAVIS... in the report to 'X' which gave me an output in some cases,
in others still the same message. and in the cases where it worked, some forms came out with lots of 'XXXXXX' where other values where supposed - probably because those wherent intended to be output in the first place?
we have also doublechecked the customizing with a different system, where it works
and couldnt find any assimilarities
has anyone experienced this issue too? or know anything that might help?
thank you!
PS: it seems to be the same problem with report RFFOAVIS tooF0073
Program RFFOAVIS_FPAYM: No records selected
If I am correct, the issue is when you were executing F110 where system will throw the above error if you have not maintained the payment method. Check in F110 under "Parameter" tab, whether you have maintained Payment Methods for your company code.
thanks
G. Lakshmipathi -
Program RFFOUS_C: No records selected
Hello Experts,
I'm having issue cannot assign cheque in payment run.
Currently I'm using outsource bank to issue cheque. When I do payment run, it will send the data through EDI to the respective bank. In future, I want to have 2 method, outsource and internal cheque payment.
When I do F110, and I create payment medium for program RFFOUS_C - variant (check form = Z110_PRENUM_CHCK) , I always get this error.
Program RFFOUS_C: No records selected
The following documents were not processed since they will be sent by EDI
Is it possible to have both ways of payment ? using EDI and also cheque number assignment in SAP ?
I can do 2 times, 1 time for EDI and next time for the internal cheque number (I maintained my check lot number already).
Can anyone help me ?
Thanks,
MelissaHi Kenghua,
are you saying that when I fill in the parameter for F110, I should maintain the variant for program RFFOEDI1 instead of RFFOUS_C ?
Is this means that the data will be send to bank and also update my cheque number assignment ?
I think this would cause duplication.
what I meant is .. sometimes I will use F110 to send data to bank, and sometimes I will only use F110 to create payment with my cheque number I maintained in FCHI.
Just want to clarify are we having the same thoughts ?
Thanks,
Melissa -
My mac got slow suddenly.... i think too much buildup of cache (i am a ex-windows user).... how to clean wanted files and make my Macbook to run again like a horse?????
#12 here for cleaning the caches with OnyX
..Step by Step to fix your Mac
If you want to make it and keep it fast
Why is my computer slow?
How to safely defrag a Mac's hard drive -
Select statment - fill internal table
Hi,
I have following situation:
TYPES: BEGIN OF q_data,
i_lqua LIKE lqua,
v_xxx(20) type c,
END OF q_data.
DATA: a_data TYPE STANDARD TABLE OF q_data.
Now I would write a select statment and fill the table a_data.
select lqua~matnr lqua~werks... from lqua inner join mch1 into (i_lqua-matnr, i_lqua-werks.....)...
Is it possible to write a statement without writing the whole structure (all the names of columns) of lqua in the SQL-statement (lquamatnr lquawerks lqua~........)?
Thanks
Michael1. you can write that but i think you have to write that in SELECT ...ENDSELECT.
select lquamatnr lquawerks... from lqua inner join mch1 into (i_lqua-matnr, i_lqua-werks.....
append i_lqua.
endselect.
2. OR you can use INTO CORRESPONDING FIELDS OF TABLE
select lquamatnr lquawerks... from lqua inner join mch1 into corresponding fields of table i_lqua. -
Using distinct and orderby in the select statment
Hi All,
Can anyone tell me what is the purpose of using distinct and orderby in the select statment.Hi,
Using the distinct function with more than one column yields some substantial results. SQL will return the rows with distinct or unique combinations of those columns. Assume this same employee table has another column including the salary of each employee. With the use of the distinct function we can pull a list of unique job titles - salaries.
SQL Code:
SELECT DISTINCT job_titles, salary FROM employees;
SQL has returned all the rows with unique combinations of job titles and salaries. Any duplicate combinations of job titles and salaries will be ignored. For example if we had two CEOs in the table making the same salary each year, only one row would be returned but if we had two CEOs with different salaries, both rows would be returned.
Order by
The SQL ORDER BY clause comes in handy when you want to sort your SQL result sets by some column(s). For example if you want to select all the persons from the already familiar Customers table and order the result by date of birth, you will use the following statement:
SELECT * FROM Customers
ORDER BY DOB
As you can see the rows are sorted in ascending order by the DOB column, but what if you want to sort them in descending order? To do that you will have to add the DESC SQL keyword after your SQL ORDER BY clause:
SELECT * FROM Customers
ORDER BY DOB DESC
If you don't specify how to order your rows, alphabetically or reverse, than the result set is ordered alphabetically, hence the following to SQL expressions produce the same result:
SELECT * FROM Customers
ORDER BY DOB
SELECT * FROM Customers
ORDER BY DOB ASC
You can sort your result set by more than one column by specifying those columns in the SQL ORDER BY list. The following SQL expression will order by DOB and LastName:
SELECT * FROM Customers
ORDER BY DOB, LastName
if its useful reward points
Maybe you are looking for
-
I can't open an old Domain file
About two years ago I made a website for my dad. www.larrylewisphotography.com. Well I have finally set up an etsy store to sell his photographs and I need to get back in and link the "order online" tab with the new domain for his etsy store. I have
-
G4 Flat-panel No Longer stays up!?! What the heck?
Can anyone advise on how to repair my G4 flat panel? The screen no longer wants to stay up. It continues to fall as though there is no spring or resistance. I've attempted to look this issue up so as not to repeat a question, but I can't find anythin
-
Hi, Since the upgrade to OS 10.4.4 my computer has more disk permissions issues that are not able to be fixed. Is this normal? thanks, Tom
-
FAGL_FC_VAL: document split
Hi guru I run the program FAGL_FC_VAL and the document splitter is active. For account 4000 I have the following balances: 1000 profit center 100 2000 profit center 200 The program created 1 posting with 4 items. The customer asked me if it is possib
-
Hi all! Is it possible to create and change worksets dynamically via API? I have found documentation how to read pcd objects and their properties but not how to edit pcd objects: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uui