Not allowing to query for all blocks.
hi,
i have a new question.
I'm not able to query in all the fields of all blocks.
I'm able to query only in all fields of master-block. But not able to query in fields of other blocks.
I have set 'query all records' in the property palette to 'Yes'.
What should i do do allow it query & execute in all fields of all blocks?
Thank you.
Pl do not post duplicates - Not allowing to query for all blocks.
Similar Messages
-
Query for all hours in a month?
Hello,
I was hoping someone might be able to assist. I need to query for all the hours in a user specified date range (generally a month). For example,
a query such as:
select all hr_end from dual where start_date between '01-feb-2010' and '28-feb-2010'
that returns:
feb 01 2010 01:00
feb 01 2010 02:00
feb 01 2010 03:00
feb 28 2010 23:00
feb 28 2010 24:00
Ideally, I want to be able to run this query within a WITH clause such that I can reference the temporary table/ list of hours in a subsequent select statement quickly. Something like:
With
all_hrs_in_month AS
select .....
where start_date between '01-mar-2010' and '31-mar-2010'
I've looked around for similar questions, but have only found ones for all the 'days' in a month using level, connect by, row_num, for which I'm honestly not too familiar with and wasn't clear as to how I could modify to my needs.
Greatly appreciate your help with this request.
- j
Edited by: user12942939 on Apr 5, 2010 12:04 PMHi,
Welcome to the forum!
WITH got_parameters AS
SELECT TO_DATE ('01-mar-2010 00:00', 'dd-mon-yyyy hh24:mi') AS start_date
, TO_DATE ('31-mar-2010 23:00', 'dd-mon-yyyy hh24:mi') AS end_date
FROM dual
, all_hrs AS
SELECT start_date + ( (LEVEL - 1)
/ 24
) AS hr
FROM got_parameters
CONNECT BY LEVEL <= 1 + ( 24
* (end_date - start_date)
SELECT TO_CHAR (hr, 'DD-Mon-YYYY HH24:MI') AS h
FROM all_hrs
ORDER BY hr
;Output:
H
01-Mar-2010 00:00
01-Mar-2010 01:00
01-Mar-2010 02:00
01-Mar-2010 03:00
31-Mar-2010 22:00
31-Mar-2010 23:00Notice that start_date and end_date don't have to span then entire month; they don't even have to be in the same month.
If you'd rather specify just one parameter (such as a single string containing the month and year):
WITH got_parameters AS
SELECT TRUNC ( TO_DATE (:p_month, 'mon-yyyy')
, 'MONTH'
) AS start_date
, TRUNC ( ADD_MONTHS ( TO_DATE (:p_month, 'mon-yyyy')
, 1
, 'MONTH'
) AS end_date
FROM dual
, all_hrs AS
SELECT start_date + ( (LEVEL - 1)
/ 24
) AS hr
FROM got_parameters
CONNECT BY LEVEL <= ( 24 -- NOTE: Not adding 1 here
* (end_date - start_date)
SELECT TO_CHAR (hr, 'DD-Mon-YYYY HH24:MI') AS h
FROM all_hrs
ORDER BY hr
How It Works
SELECT LEVEL AS n
FROM dual
CONNECT BY LEVEL <= x
;Produces a result set consiting of the integers 1, 2, 3, ..., x.
There's nothing magical about the dual table; you can use any table AS LONG AS THE TABLE HAS ONLY ONE ROW .
The other examples you saw probably just added this to a starting date, to get successive days, since, in Oracle date arithmetic, dt+n is a DATE n days after dt.
Your case is slightly more complicated, because you want to add hours, not days. Since an hour is 1/24 of a day, we multiply by 24 to find how many integers to genereate, and divide by 24 when adding that number to the base date.
Edited by: Frank Kulash on Apr 5, 2010 3:07 PM -
How I can allow always and for all sites full-screen mode?
How I can allow always and for all sites full-screen mode?
And I want choose anywhere option "never show notification about full-screen mode" (screenshot attached)
RUS
Как я могу всегда разрешить и для всех сайтов полноэкранный режим?
И я хочу выбрать где-нибудь опцию "никогда не показывать уведомление о полноэкранном режиме" (скриншот приложен)There is a preference setting on the <b>about:config</b> page that is meant for developers and testers to make this possible, but it is not meant for normal users.
*full-screen-api.approval-required = false
You can open the <b>about:config</b> page via the location/address bar.
You can accept the warning and click "I'll be careful" to continue.
*http://kb.mozillazine.org/about:config -
Samsung note 3 is not giving audible alerts for all my text messages since the 4.4.4 update. I get an audible tone about 3/4 of the time. Thinking a conversation is over I come back 45 minutes later to find another text I didn't know came in. I've restarted my phone and checked my message settings. Any ideas? Factory reset is not an option!
I'd try going back into the Text Message settings. In Sound setting, work the setting from None to an alert. Then in Vibrate put a check in the box then uncheck. Just to see if that will free it up, could be a possible corruption with the new software update?
-
Is it not recommended to use FOR ALL ENTRIES in version 4.5B
Hi,
Is it not recommended to used For all entries in version 4.5B as Size limit for SQL is 32KB hence we should not be using FOR ALL ENTRIES, instead of this we should be using select inside the loop?
Can anyone please let me know if this is correct and if you can provide me the SAP documentation on the specific statement.
Regards
RiaHi Ria,
From what I understand, you cannot use JOINS with FOR ALL ENTRIES in 4.5b & lower versions. In general the SELECT..FOR ALL ENTRIES statement has been in use from 3.1i versions. For more information, PL take a look at OSS Note #652634.
Regards,
Suresh Datti -
Payroll has not been run successfully for all personnel numbers Message no.
please all , i got this error while doing exit to payroll , although this employee has left one year ago , i m fear of doing the changes from pu03 as stated by SAP , doing that will make personnel numbers processed with this transaction will have an undefined payroll status.
error:
Payroll has not been run successfully for all personnel numbers
Message no. PG508
please helpHI,
Generally, this type of error is occured when all the ee were not sucessfully execute, to clear the same, please follow the below:
Exeucte the program RPUTRBK0 and assign payroll are and execute payroll correction.
After doing this, you may able to delete and create new control record.
Regards, -
Allowing duplicate in FOR ALL ENTRIES statement
Hi folks,
I am using a select query using FOR ALL ENTRIES statement. I could observe one entry is missing from the table data.When i checked that in the data base table, there are two duplicate records among which one entry is missed in the output data from the query.Is duplicates are restricted if we use FOR ALL ENTRIES statement ? Is there any key word like 'ALLOWING DUPLICATES' for this ? if not what is the solution for this.Could any body help me regarding this.
Thanks,
Shyam.
Edited by: Matt on Jul 9, 2009 1:27 PMHi Shyam,
In For all entries you should give unique records only.
sort your base table with key which you are passing in for all entries clause.
delete all duplicate entries.
Hope this will help .
Regards,
Vijay -
Problem with "Group By" in Views - Not Displaying the Same for All Users
We have an Announcements List with its only View being set up to group by a metadata category field. We've done this many times on other kinds of lists and never had a problem. But with this list, about half the users can see only the ungrouped
set of announcements, whereas others actually see the items within their groups.
Those with "View" rights only can't see the grouped items - but that appears to be a coincidence as I promoted them to the same rights as others who can see them correctly, and that did NOT solve the problem. Everyone is using the exact same browser.
Note: the users who do NOT see the groupings see only a single category entry that displays only the name of the category list (but not the names of the actual categories within the category list). All the announcements are grouped under that one
entry for those users. This display looks exactly like it would if the categories had been left blank when the original announcements were created. But the categories are NOT blank, and the rest of the users can see them just fine, and the announcements display
within their appropriate groups.
I can't find anything in the View, the List Settings, or the User Permissions to explain this. What could be causing it, and how can I fix it?Browser settings are controlled by central IT and are all identical.
The only difference I can detect is the second set of users (that don't see the category options) have only Read rights, whereas those with Contribute (or above) rights can see the categories. It doesn't make
sense that permissions would affect this, but I can't come up with any other differences.
Microsoft will not allow me to upload images. it says I can't upload images until they have verified my account, but there is no clue as to how, if or when that might happen. If you can tell me how to fix that, I can provide samples. -
Performance optimization on select query for all entries
Hi All,
I want to optimize the select query in my Program.
The select query is taking lot of time to search the records for the given condition in the where clause
and more interestingly there are no records fetched from the database as the where condition does not matches.
It is taking more than 30 min to search the record and the result is no record found.
Below is my select query. I have also created the secondary Index for the same.
In My opinion FOR ALL ENTRIES is taking lot of time. Because there are more than 1200 records in internal table t_ajot
select banfn bnfpo bsart txz01 matnr Werks lgort matkl reswk menge meins flief ekorg
INTO CORRESPONDING FIELDS OF TABLE t_req
FROM eban
FOR ALL ENTRIES IN t_ajot
WHERE matkl >= t_ajot-matkl_low
AND matkl <= t_ajot-matkl_high
AND werks = t_ajot-werks
AND loekz = ' '
AND badat IN s_badat
AND bsart = 'NB'.
Please suggest.Hi,
that,
FOR ALL ENTRIES IN t_ajot
WHERE matkl >= t_ajot-matkl_low
AND matkl <= t_ajot-matkl_high
AND werks = t_ajot-werks
AND loekz = ' '
AND badat IN s_badat
AND bsart = 'NB'.
looks strange.
However:
How does your index look like?
What executoin plan do you get?
How do the statistics look like?
Whats the content of the variables t_ajot-... and s_badata?
Kind regards,
Hermann -
How to write select query for all the user tables in database
Can any one tell me how to select the columns from all the user tables in a database
Here I had 3columns as input...
1.phone no
2.memberid
3.sub no.
I have to select call time,record,agn from all the tables in a database...all database tables have the same column names but some may have additional columns..
Eg: select call time, record,agn from ah_t_table where phone no= 6186759765,memberid=j34563298
Query has to execute not only for this table but for all user tables in the database..all tables will start with ah_t
I am trying for this query since 30days...
Help me please....any kind of help is appreciated.....Hi,
user13113704 wrote:
... i need to include the symbol (') for the numbers(values) to get selected..
eg: phone no= '6284056879'To include a single-quote in a string literal, use 2 or them in a row, as shown below.
Starting in Oracle 10, you can also use Q-notation:
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements003.htm#i42617
...and also can you tell me how to execute the output of this script. What front end are you using? If it's SQL*Plus, then you can SPOOL the query to a file, and then execute that file, like this:
-- Suppress SQL*Plus features that interfere with raw output
SET FEEDBACK OFF
SET PAGESIZE 0
-- Run preliminary query to generate main query
SPOOL c:\my_sql_dir\all_ah_t.sql
SELECT 'select call time, record, agn from '
|| owner
|| '.'
|| table_name
|| ' where phone_no = ''6186759765'' and memberid = j34563298'
|| CASE
WHEN ROW_NUMBER () OVER ( ORDER BY owner DESC
, table_name DESC
) = 1
THEN ';'
ELSE ' UNION ALL'
END AS txt
FROM all_tables
WHERE SUBSTR (table_name, 1, 4) = 'AH_T'
ORDER BY owner
, table_name
SPOOL OFF
-- Restore SQL*Plus features that interfere with raw output (if desired)
SET FEEDBACK ON
SET PAGESIZE 50
-- Run main query:
@c:\my_sql_dir\all_ah_t.sql
so that i form a temporary view for this script as a table(or store the result in a temp table) and my problem will be solved..Sorry, I don't understand. What is a "temporary view"? -
Select query 'for all entries'
Hello Friends,
SELECT emp_id emp_name
INTO corresponding fields of table itab_emp
FROM employee
for all entries in itab_dept
WHERE emp_id = itab_dept_emp_id.
In the above select query we are using 'for all entries' for the internal table itab_dept.What will happen if the join fails?Will we get any data in the output table?
What is the prerequisites for using 'for all entries'.
Please advice me on this.
Regards
Ashish.Hi
In this case all the records available in employee table are extracted into internal table itab_emp.
It is safe to check whether itab_dept is initial or not.
If it is initial then stop the select query.
Check the following program u will get an idea.
Also try this program by removing comment to 'REFRESH IT_LFA1'.
REPORT ZBM_PG .
TABLES: LFA1, EKKO.
DATA:
IT_LFA1 TYPE TABLE OF LFA1 WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 10,
IT_LFA1 TYPE TABLE OF LFA1 WITH HEADER LINE,
IT_EKKO TYPE TABLE OF EKKO WITH HEADER LINE.
SELECT * FROM LFA1 INTO TABLE IT_LFA1 WHERE LIFNR EQ '0000001000' OR LIFNR EQ '0000001500'.
SELECT * FROM LFA1 INTO TABLE IT_LFA1 UP TO 1 ROWS.
refresh it_lfa1.
SELECT * FROM EKKO INTO TABLE IT_EKKO FOR ALL ENTRIES IN IT_LFA1 WHERE LIFNR = IT_LFA1-LIFNR.
LOOP AT IT_EKKO.
WRITE: / IT_EKKO-LIFNR, IT_EKKO-EBELN.
ENDLOOP.
Reward me if it is useful -
Not Allowing Goods Movements for the confirmed quantity in the delivery
Hi Gurus,
I would like know how to make the system not allowing movement for a batch at MB11 when that batch of one material is confirmed in a delivery?
ex: In the delivery: material number: 9009, Batch 0000A and quantity is 10. And there is no more quantitty in the warehouse for Batch 000A and material number: 9009.
Dont allow any movement type for 9009 and 000A batch.
Thanks a lotHi,
As far as my understanding there is no such provision,
Check is there any option to block assigned batch temporarily, so system can not consider it for next business transaction
Kapil -
Not allow updated into into master block forms6.0
In forms6.o, I created two block dept and emp in canvas1
I created one push button for commit purpose.Inside when-button-press,
I wrote the following code and I updated two block's emp and dept
and I hit the save button i need to update emp block only not dept block.
For this purpose i wrote the following code.But It's updating dept also.
How can avoide update in the dept block.
Thanks
Raghu.K
set_item_property('dept.deptno',ENABLED,property_false);
set_item_property('dept.deptno',NAVIGABLE,property_false);
set_item_property('dept.deptno',INSERT_ALLOWED,property_false);
set_item_property('dept.deptno',UPDATE_ALLOWED,property_false);
set_item_property('dept.dname',ENABLED,property_false);
set_item_property('dept.dname',NAVIGABLE,property_false);
set_item_property('dept.dname',INSERT_ALLOWED,property_false);
set_item_property('dept.dname',UPDATE_ALLOWED,property_false);
set_item_property('dept.loc',ENABLED,property_false);
set_item_property('dept.loc',NAVIGABLE,property_false);
set_item_property('dept.loc',INSERT_ALLOWED,property_false);
set_item_property('dept.loc',UPDATE_ALLOWED,property_false);
commit;
set_item_property('dept.deptno',ENABLED,property_true);
set_item_property('dept.deptno',NAVIGABLE,property_true);
set_item_property('dept.deptno',INSERT_ALLOWED,property_true);
set_item_property('dept.deptno',UPDATE_ALLOWED,property_true);
set_item_property('dept.dname',ENABLED,property_true);
set_item_property('dept.dname',NAVIGABLE,property_true);
set_item_property('dept.dname',INSERT_ALLOWED,property_true);
set_item_property('dept.dname',UPDATE_ALLOWED,property_true);
set_item_property('dept.loc',ENABLED,property_true);
set_item_property('dept.loc',NAVIGABLE,property_true);
set_item_property('dept.loc',INSERT_ALLOWED,property_true);
set_item_property('dept.loc',UPDATE_ALLOWED,property_true);Hi,
If u set the block's update allowed property to false, it will not allow to update the data directly by user. But it will update the back end data. If u don't want to update the data in Dept block, write a trigger on-update in dept block and enter NULL; in that trigger. It won't update the dept block data. Try this.
Sudheer Babu -
TECO Status in WBS ELement not allowing DP91 transaction for RRB
Hi Team,
I would like to look if DP 91 will not allow to Bill a particular cost once the project is in TECO Status.
Please confirm if this is configurable.
Regards
Vignesh RThanks for your clarification.
I have one more query which is not related to the Project status.
When a Dynamic item is being populated in DMR after DP91 transaction,the summarisation of material or activity takes place and If there are A(50$),B(25$),C(25$) are the materials posted and grouped to form Dynamic Item "Material" and E(100),F(50$),G(50$) are the activity posted and grouped to form Dynamic item "Labor" based on grouping set in material determination,
the DMR will reflect as
Line item 10
Material Material
Price 100$
Line item 20
Material Labor
Price 200$
My client need a report which would give a detailed list of Dynamic item along with quantity and value by just entering the Billing document number.
Like
Material
A 50$
B 25$
C 25$
Labor
A 100$
B 50$
C 50$
What are the tables I need to refer to bring up a report as stated above.
I couldnt get these details in AD01DLI and AD01DLIEF
Regards
Vignesh R -
SQL Query for all Function Name attached to Responsibility
I have a requiremnet where in the data needs to be fetched giving all details of User Name, Responsibility Name, Function_user_name at responsibility level.
For e.g when a user logs in ORacle application and gets in to a responsibility and uses short cut key (Cntrl + L), the application lists out all the form functions, i need those form funtion for all users at responsibility level.
follwoing is the SQL i developed but its not listing the form function when we use (cntrl + L).
SELECT fur.user_name, fur.description, fur.responsibility_name,
mnu.user_function_name, mnu.function_name --, mnu.TYPE, mnu.PARAMETERS
FROM (
SELECT /*+ ordered use_nl(ffft) */
DISTINCT fm.menu_id, ffft.user_function_name, fff.function_name,
fff.TYPE, fff.PARAMETERS
FROM (select distinct menu_id
from apps.fnd_responsibility_tl frt,
applsys.fnd_responsibility fr
where 1=1
and frt.responsibility_id = fr.responsibility_id
and frt.application_id = fr.application_id
and frt.responsibility_name = 'SLCHR Admin Asst' ) frm,
apps.fnd_menus fm,
apps.fnd_form_functions fff,
apps.fnd_form_functions_tl ffft
WHERE 1 = 1
--AND fm.menu_id IN (1004979, 1009084)
AND frm.menu_id = fm.menu_id
AND fff.function_id = ffft.function_id
AND fm.menu_id IN (SELECT me.menu_id
FROM apps.fnd_menu_entries me
START WITH me.function_id = fff.function_id
CONNECT BY PRIOR me.menu_id = me.sub_menu_id)
) mnu,
(SELECT fusr.user_name, fusr.description, frv.responsibility_name, frv.menu_id
FROM apps.fnd_responsibility_vl frv,
apps.fnd_user_resp_groups_direct frg,
apps.fnd_user fusr
WHERE 1 = 1
--and fusr.user_name = 'JLEWIS03'
AND frv.responsibility_name = 'SLCHR Admin Asst'
AND frv.end_date IS NULL
AND fusr.user_id = frg.user_id
AND fusr.end_date IS NULL
AND frv.responsibility_id = frg.responsibility_id
) fur
WHERE 1 = 1
AND fur.menu_id = mnu.menu_id
Please helpPlease see these docs.
Checking Functions Associated with a User Menu or a Responsibility [ID 948512.1]
HOW TO GENERATE MENU TREE FOR A MENU ATTACHED TO A RESPONSIBILITY IN ORACLE APPLICATIONS 11i ? [ID 312014.1]
Thanks,
Hussein
Maybe you are looking for
-
COMPUTE_BCD_OVERFLOW in st22
Hi guys, my 4.6C system in st22 show u201CCOMPUTE_BCD_OVERFLOWu201D The dump detail show: ABAP runtime errors COMPUTE_BCD_OVERFLOW Occurred on 12.05.2010 at 17:15:07 Overflow for arithmetical operation (type P) in program "SAPLSTUW " W
-
Getting more information on a slide
I have a couple of slides where there is quite a lot of information I want to pass over, either in the slide iteself or in a sidelet. So can I create something that has a scroll bar or find some way to present 2 - 3 pages of text on one slide! I thou
-
Iphone app that pop ups a list of the day's events everyday?
Is there an iphone app that will automatically 'pop up' a list of the current day's events/appointments?
-
Hi, Currently I have a BO report. The report has a section, where in it has some columns. Currently, I am able to retrieve the columns names and the column types of the report. But, now I am trying to retrieve the width of the columns of the section,
-
Merge Modules Fix Pack 2.3
Hi all, I downloaded the Fix Pack 2.3 but the merge modules is the Fix Pack 2.2 https://websmp130.sap-ag.de/sap%28bD1wdCZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm Crystal Reports 2008 Fix Pack 2.3 - Redist Install Crystal Reports 2008 Fix Pack 2