Regarding the dates to retrieve the required records.
Hi,
In the selection screen, i have radiobuttons for reporting period like ALL, PAST, FUTURE, TODAY,OTHERKEYDATE ,e.tc.
My report should run for the date which i have selected on the selection screen.
For today, we can write the condition as
Begda < = sy-datum and enda > = sy-datum.
But i have to write in general for everydate which i selected.
I am writing report for OM. i am not using PCH LDB.
if i use LDB , i can write Begda < = pnp-enda and endda >= pnp-enda.
But iam not using the LDB PCH.
how to write query to retreive the required date.
hi,
let us say your radio buttons have the name as follows:
P_ALL -> for all
P_TODAY -. for only today
P_PAST -. for all dates in past from today.(not including today)
P_FUTURE -> for all dates in FUTURE from today( not including today)
P_OTHERKEYDATE -> for any other date that user enters.
*Logic:
if P_ALL = 'X'.
code is as such the program runs for all records irrespective of dates.
elseif P_TODAY = 'X'.
p_date = sy-datum. " this p_date is a variable used to hold today's date.
now code it so that it runs only for the records having date = p_date.
elseif P_PAST = 'X'.
*write code to pick all the dates which are in past , I don't know what you have as begin and end dates and what they for, use the begin and end dates to calculate past dates and run the code only for those past dates.
elseif P_FUTURE = 'X'.
*do as done in past,for future dates.
else p_date = otherkeydate "hope this is entered by user somewhere on the screen.
*run the code for only that p_date.
endif.
<REMOVED BY MODERATOR>
deepti.
Edited by: Alvaro Tejada Galindo on Feb 5, 2008 4:54 PM
Similar Messages
-
How to get "all the required records" displayed from my DB
Hi,
In a block i have some fields say MONTH, YEAR, STAFF..... and a button SEARCH.
i want, my app user enter data in one or many fields and after clicking SEARCH button he gets all his relevant data from DB (in next window/canvas).
i am using 10g.
help...plz !!!ManiKanchan wrote:
sorry to bother..
(-----version 10g-----)
i have 3 blocks B1, B2, B3.... let the name of my table in DB is TB
in B1, i have a button UPDATE and a trigger, WHEN-BUTTON-PRESSED, attached to it. the pl/sql code here is "go_block('B2'); enter_query;"
when i come to B2 after pressing UPDATE, i am in query mode as i can say...
here in B2, i have 3 fields UNIT, MONTH, YEAR and a button SEARCH. I let user enter 1/2/3 field as he/she wishes
and with search button there is a trigger WHEN-BUTTON-PRESSED with the code "go_block('B3'); execute_query;"
in B3, fields are STAFF, NAME, WAGES, UNIT, MONTH, YEAR.
what i want is,
according to the inputs in B2 ( one or two or all three) , all the relevant records should be displayed on canvas3 ( as B3 fields) as a table
but i am not getting it right..What is the data type of unit,month and year in block b2 and b3 ?
If i think these three are number data type
try this in the search button of block b2
declare
con varchar2(500);
qt varchar2(10):='''';
begin
if :B2.UNIT is not null then
con:='UNIT='||:B2.UNIT;
end if;
if :B2.MONTH is not null then
con:=con||' and MONTH='||:B2.MONTH;
end if;
if :B2.YEAR is not null then
con:=con||' and YEAR ='||:B2.YEAR;
end if;
go_block('b3');
set_block_property('b3',default_where,con);
execute_query;
end;hopes this helps -
How to fetch the required record into the cache
Dear sirs...
An application written in Jdeveloper 10g 10.1.2.1 that uses ADF. It is requred to process some records. When i get the view object & try to go to the first record i get the following error:
05/11/30 23:13:26 Error Message:JBO-25046: Requested row not available in row set iterator FilesView1.
oracle.jbo.RowNotAvailableException: JBO-25046: Requested row not available in row set iterator FilesView1.
at oracle.jbo.client.remote.RowSetIteratorImpl.first(RowSetIteratorImpl.java:851)
at oracle.jbo.client.remote.RowSetImpl.first(RowSetImpl.java)
at oracle.jbo.client.remote.ViewUsageImpl.first(ViewUsageImpl.java)
at oracle.jbo.common.ws.WSRowSetIteratorBase.first(WSRowSetIteratorBase.java:328)
at view.ViewmailAction.onDelete(ViewmailAction.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java)
at oracle.adf.controller.lifecycle.PageLifecycle.handleEvent(PageLifecycle.java:544)
at oracle.adf.controller.struts.actions.StrutsPageLifecycle.handleEvent(StrutsPageLifecycle.java:252)
at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleEvent(StrutsUixLifecycle.java:249)
at oracle.adf.controller.lifecycle.PageLifecycle.processComponentEvents(PageLifecycle.java:477)
at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processComponentEvents(StrutsUixLifecycle.java:162)
at oracle.adf.controller.struts.actions.DataAction.processComponentEvents(DataAction.java:236)
at oracle.adf.controller.struts.actions.DataAction.processComponentEvents(DataAction.java:430)
at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:126)
at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
How can I fetch the first row into the cache?
I checked the documentation & it says i should call the required API to put the record into the cache & then retry the operation, so what is this API? what should i do?
Thanks alot for any help
best regardsI'd recommend processing the records inside a custom method on your application module. This is a best practice whever you can do it, and it makes your application easier to maintain and test.
I'd also recommend using Immediate Mode instead of Batch Mode. Please see this article on the subject:
http://www.oracle.com/technology/products/jdev/tips/muench/batchmode/index.html -
HI All,
I have not maintained Info record for a material and vendor and plant combination.
If one MM cycle till PO is completed with Tick mark of Info update indicator in Material data in item details purchase order.
Weather the material info record is created automatically
But in SAP it has given as
If no info record exists and "plant condition requirement" was specified in Customizing, an info record with plant is created. Otherwise, an info record without plant is created.
Suggest meEven If you have not maintained Info record for a material, vendor and plant combination.
And PO is Created with Tick mark in Info update indicator in Material data in item details purchase order.
The material info record is created automatically
This is the Case, If NO INFO RECORD EXISTS.
And Based on the Customizing, In SPRO>Matereials mangment>purchasing>conditions>define conditon control at plant level.
Case 1: if you select W/O Plant, then Info record is created with Purchasing organization,
case 2: with plant, then plant specific info record will be automatically created
Based on INFO UPDATE indicator.
Edited by: Ravi Kumar on Apr 24, 2008 11:40 AM -
My computer does not meet the requirements for iTunes 7.7
Okay, so I think all these problems that I'm having are because my new computer does not meet the requirements for iTunes 7.7.
The requirements are listed here: http://www.apple.com/itunes/download/
I checked my system and I have:
1. 1.60 GHz instead of 2GHz
2. 511 MB RAM instead of 512 MB RAM
I have no idea how to check MB for video RAM or MHz. Since it's not shown in system I'm assuming that this computer doesn't have any.
The system requirements compared to mine are just off by a bit, but could this still be the problem?
Also, could I use an older version of iTunes that will work with my system & could you please post the link for the download.
Thanks in advance.Hi,
Firstly, please let us know more details about the issue, such as:
1. What is your network environment, workgroup or domain?
2. How do you implement DirectAccess?
Meanwhile, regarding the requirements, please see
DirectAccess Requirements.
More information:
Networking and Access Technologies-
DirectAccess
Hope this helps.
Jeremy Wu
TechNet Community Support -
Computer does not meet the requirements for DirectAccess
computer does not meet the requirements for DirectAccess
Hi,
Firstly, please let us know more details about the issue, such as:
1. What is your network environment, workgroup or domain?
2. How do you implement DirectAccess?
Meanwhile, regarding the requirements, please see
DirectAccess Requirements.
More information:
Networking and Access Technologies-
DirectAccess
Hope this helps.
Jeremy Wu
TechNet Community Support -
Query regarding the data type for fetcing records from multiple ODS tables
hey guys;
i have a query regarding the data type for fetcing records from multiple ODS tables.
if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
can any one help with some suggestion.Hi Mudit,
One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
AS is used to rename the column name when data is being selected from your DB.
So, the query Select ename as empname from emptable will return the data with column name as empname.
Regards,
Bhavesh -
SQL Query to retrieve the All records based on the Max Dates.
Hello all,
I am trying to retrieve the newest record based on the date field ( nextDate ).
Currently there are only 4 records in the MC_Maintenance table and two in the Machine table.
Machine table
MC_id EquipID
1 0227
MC_id EquipID
2 0228
MC_Maintenance table
Maint_id MC_id Next_maint
1 2 08/25/2010
2 2 07/01/2010
3 1 06/11/2010
4 1 07/11/2010
What I am trying to accomplish is,
list the two machines from the Machine table with the MAX(Next_maint) controlling the MC_Maintenance output list
These are the records that I would like to Display.
Maint_id MC_id Next_maint
1 2 08/25/2010
4 1 07/11/2010
Below is the SQL Query
SELECT
MC.MC_ID as ID,
MC.complete_Date as completed,
MC.next_maint as nextDate,
MC.maint_notes as Notes,
MC.facility as Facility,
M.EquipId,
M.name as name,
M.SerialNumber as SN,
M.dept as dept,
M.Freq as freq
From MC_Maintenance MC, Machine M
where MC.MC_ID = M.MC_ID
' USING MAX(nextDate )
Any ideas would help.
TJI would have thought that was a simple group by problem?
SELECT M.EquipID, MC.MC_ID, Max(MC.next_maint)
FROM MC_Maintenance MC INNER JOIN Machine M ON MC.MC_ID = M.MC_ID
GROUP BY M.EquipID, MC.MC_ID -
Is it possible to change the requirement date of a component?
Hello Gurus,
When a non stock material is defined as a component of service order a requirement date is automatically determinded (RESBD-BDTER) on the current date. Does someone knows if one can be able to influence this field?
It means that I would like to be able to fill it by myself.
Kind regards
ChrisHi Paul,
As you said "
The requirement date is calculated as follows:
1. The start date (earliest scheduled start) of the operation minus
2. The goods receipt processing time of the component and minus or plus
3. The lead time offset for the component in the order
The above values (point 2 and 3) can be adjusted to manipulate the
delivery date."
I have checked for stock & non stock item, but this calculation is not working for work orders. only i can change the date with offset. i checked material master record and change the GR processing time and planned delivery time but its not working. Do you have any idea why its not working?
Thanks.
Shahyan -
HOW TO FIND THE REQUIRED DELIVERY DATE IN VA02
hi
HOW TO FIND THE REQUIRED DELIVERY DATE IN VA02.
i want to display this field in my report. what is the fieldname and in which table it is ?Hi Jyothsna,
There are 2 dates when you say Requested Delivery Date
1. Header level in VBAK-VDATU is the field
2. At item level it is in the schedule line. VBEP-EDATU.
The relationship between item (VBAP ) and schedule line ( VBEP )is 1 to many. But there will be mutiple schedule lines only if you are using the scheduling functionality. Also note to check for confirmed quantity (VBEP-BMENG) to be greater than 0 and use that schedule lines EDATU date as Requested delivery date.
regards,
Advait Gode. -
Scheduling the requirement quantities on different dates for different vend
Dear Gurus,
We have requirement of generating the shcedule line on different dates
in case multi supplier. The part is supplied by 3 different supplier when executing MRP the system generated schedule line on same date for each supplier,
however the business requirement is not to receive all material on same
date. But to receive all the requirements on the 3 consecutive days say for 3 different vendors. We have maintained Quota Arrangement for splitting the requirements order quantity.
Pls suggest the configuration / Material master changes we need to make for the same.
Regards,
Pradeep SantaraHi
If you want different dely dates for each supplier, you maintain different planned dely time in supplier specific inforecord for that particular material.
Hope this will solve your problem.
Reward if so
thanks & regards
sri. -
Retail:Regarding the backend settings for Artilce master data
Hi SAP Gurus,
Can anyone tell me the IMG settings that we do for Article master in Retail.I am expecting the step by step procedure for doing the IMG settings.explain me in details in forum or you can mail to my personal mail id also.
Thanks & Regards
TonyraoHi Kapil,
As i spoke to you regarding the IMG settings of artilce master data.The complete settings we do as per client requirement.(complete procedure like step by step explanation is expecting from you,if possible try to send with screen shots)
(1) How we define number range for each artilcle type?
(2) How we define attributes of article type?
(3)How we assign fields to field selection group?
(4)How we maintain fields selection for data screen?
(5) How we assign screen sequence to user/article type/transaction/industry sector?
(6)How we find what is the field selection group for fields in (as basic view) all views.
CAN YOU SEND IT TO MY PERSONAL MAIL ID "ambajitony at the rate of gmail dot com "
THANKS IN ADVACE THIS WILL HELP ME ALOT IF YOU PROVIDE CLEAR STEPS TO FOLLOW
Thanks & Regards
Tonyrao -
i get an error message saying "system overload, the audio engine was not able to process all the required data in time (10011)
The thing is, that error message has been appearing when playing/recording a track that was running perfectly a few minutes ago and nothing has changed!
That can mean, that your project is too ambitious for your Mac. Are you using many complicated automations on that track?
4GB memory is not much, when doing audio processing. GarageBand will need all memory it can get, or will be forced to continually swap pages to your disk, to free RAM, and that can cause this error.
When this error occurs, it is best to restart the computer. This will free your RAM. Close all other applications that are competing for memory, i.e. other multimedia applications, and Safari.
Also, make sure, that you have plenty of free disk space. Don't let the free disk space drop below 20G.
Where is your project located? On an external drive or your internal drive? If it is on an external drive, connect this drive directly, not daisy-chained, or move the project to your internal drive.
I got up to eat, came back and tried to continue but GarageBand shuts down and displays that message every time I try to run the song. I've also recently run songs with several more tracks than this one and they worked perfectly. Any tips?
Are your other projects, that worked perfectly, still working? -
Can I create a Depart Date for a record, from the Arrive Date in the next record?
I have a Customer database with the tables tblCustomers and tblAddress. The tblCustomers has the following fields; CustomerID, CustomerName. The tblAddress has the following fields; CustomerID, Address, Town, County, ArriveDate. When a customer calls us
we start a new record with the CustomerID, CustomerName, Address, Town, County. The ArriveDate is left blank. When my service guy calls to the customer he fills in the ArriveDate field. We do not have a LeaveDate field. He could be there from 1 day up
to 5 days. Each day he is is there he adds another record with all the above data, including the date in the ArriveDate field. If he finishes on a Friday he will take Saturday and Sunday off. On Monday he moves to the next customer, he has a new
customer/location record waiting for him, as before he fills in the ArriveDate and starts working. If he finishes with a customer midweek he will go straight to the next customer where there is a new customer/location record waiting for him to fill in
the ArriveDate. It looks something along these lines;
CustomerID CustomerName Address Town County
ArriveDate
5437 Mr.A 123 Main St
Nenagh Tipperary 01/01/2015
5437 Mr. A 123 Main St. Nenagh
Tipperary 02/01/2015
5437 Mr. A 123 Main St. Nenagh Tipperary 03/01/2015
off Saturday and Sunday
7890 Mr. B 77 The Avenue Tralee Kerry
06/01/2015
7890 Mr. B 77 The Avenue Tralee Kerry
07/01/2015
I want to generate a DepartDate which will be generated when the Address, County and/or Town fields change from the previous record. The Depart Date should be equal to the last of the Arrive Dates before the Address, Town and County fields change to
the new customer/address.
Is this possible to do, i would appreciate any help with this.Hi NewAccessLearner,
For the results of the query, I think you accord the logic below to find the DepartDate, but the sql query would be much complex.
Take the 123A to make a simple demo:
#1 check the ArriveDate of the next date whether it exist in the ArriveDate
DepartDate
Expr1000
t1.CustomerID
t2.CustomerID
Address
Town
County
ArriveDate
1/2/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/1/2015
1/3/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/2/2015
1/4/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/3/2015
1/8/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/7/2015
6/2/2015
7890
7890
77 The Avenue
Tralee
Kerry
6/1/2015
In the first column the “1/4/2015” is not in the ArriveDate, and then the “1/3/2015” would be the date for DepartDate.
I am not familiar with sql query, I think you need to ask the sql experts for help.
Best Regards,
Leo -
How show the last record by date
Hi Gurus,
i got in the cube the next records for example:
calday Material Quantity
01.01.2011 A 10
15.01.2011 A 20
if i present in the query these IO an KF the query will show these 2 records, now i want just show the last record by date
calday Material Quantity
15.01.2011 A 20
i tried in the query with a calculate KF with exception aggregation , MAX with Reference to calday , but this still show both records... how can i do it? help gurus.Hello,
If there are sales occuring for the material on two different dates and you include date in there will be always two records.
I dont understand the need to show the last transaction. Anyways if you still need that you need to remodel the backend.
Put a DSO on the cube with date in the data field, this will always overwrite the value for the key combination you need.
Then you can return on this DSO.
Regards
Shashank
Maybe you are looking for
-
Adding new data to a notification
Hi everyone, I have a requirement to modify an approval notification and add some new data to it. On the internet I have found examples of how to embed an OA Framework region into a workflow notification. For example here - http://www.oraclearea51.co
-
Will Remote Desktop allow me to access and use my Mac Pro 2009 from my MacBook Pro 2011?
Own a small business, have two locations, I need to use Windows via Parallels on my Mac Pro 2009, but I am forced to spend most of my time at the other location which has a MacBook Pro 2011. Will Remote Desktop allow me to use the MacBook Pro 2011 to
-
Hello, How to deactivate automatic Purchase Order Output det,
Hello, will anyone guide me the steps to deactivate automatic output determination in a Purchase Order. Full points for the answer.
-
How to clear exception cache in VO when using OAAttrValException
I am using OAAttrValException to validate that individual required attributes are populated before a user can submit the page. The function i have in the VOImpl is as follows public void validateRow() { ArrayList exceptions = new ArrayList(); String
-
Relationship between XML Forms
Hello, I have 3 XML Forms, Macro Process, Process and SubProcess. The 3 xml Forms must have a sequential id (like a tree structure). For example: I created a Macro Process with Id=1, when I created a Process I have to associate this Process with a Ma