How to achive current date in report
Hi Expeorts,
I have below Filter in one of report. how to achive this?
Ship Date = Current Date
What is the meaning of this? and how to do this?
Thanks in advance
David
Edited by: david Rathod on Jan 10, 2012 7:50 AM
Hi ,
You can achieve the same using Customer exit variable .You can use the following code .
FORM do_user_exit USING i_vnam LIKE rszglobv-vnam
i_vartyp LIKE rszglobv-vartyp
i_iobjnm LIKE rszglobv-iobjnm
i_s_cob_pro LIKE rsd_s_cob_pro
i_s_rkb1d LIKE rsr_s_rkb1d
i_periv TYPE rro01_s_rkb1f-periv
i_t_var_range TYPE rrs0_t_var_range
i_step TYPE i
CHANGING e_t_range TYPE rsr_t_rangesid.
if i_step = 1.
clear l_s_range.
l_s_range-low = sy-datum.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range TO e_t_range.
endif.
ENDFORM.
Hope it helps .
Thanks
Kamal
Similar Messages
-
How to view current date and time on SAP screen
Hi Everybody,
How to view current date and time on SAP screen .I have set time zone in T-code STZAC.now iam getting correct date n time in my tranctions but i want to check without any tractions
Plz repay,Regards,
Sadik.Hi,
You can check the time by running a report .
It will show the database and central instance time : Report name :rsdbtime
Thanks and Regards
Vijay kumar G
Edited by: vijay kumar gopal on Mar 4, 2008 1:09 PM -
APEX CSS - How do I get data in report columns to wrap?
I found information here http://www.orafaq.com/wiki/APEX_FAQ
About How do I get data in report columns to wrap?
This works and another way to do it is by adding the CSS directly into the
Home>Application Builder>Application 137>Page 1>Report Attributes>Column Attributes page
in the Column Formatting area. I added 'white-space:normal' and this works in FF but in
IE it has a different behavior.
In FireFox
testasdgadhad
gadfadgadgadg
adgafhsrgjsgnsfg
nsdfbadfafhafha
dfhadfh
In Internet Explorer
testasdgadhad gadfadgadgadg adgafhsrgjsgnsfg nsdfbadfafhafha dfhadfh
Is there a way to force it so it display in IE the same way that it displays in FF?
The correct display format is FF.
Thanks,
Nestor :)I have try this because I found it during a search and it makes no difference in IE.
This is what I am using now 'display: block; width: 100px;max-width:100px;white-space:normal'
I also tried 'display:block; width:500px'
If I use the values 'normal' or 'pre' for white-space' it works in FireFox but not in IE, The display block
does not seem to make a difference. It seems that all I need is 'white-space:normal' but again
it does not works on IE.
Thanks,
Nestor :-) -
How to display current date in query header?
Hi,
How to display current date in query header?
I use Query Designer for development.
Thanks,
Arun KKHi Arun,
You can define fixed header lines and footer lines so that when you generate the query list, they can receive current values of certain fields. When you define a header line or a footer line, you must specify a character string of the type &field, where field is the short name of a field.
This function allows you (for example) to place a sort criterion in the header line.
You can include the following fields as variables in the headers directly:
%NAME
Name of the user processing the query
%DATE
Current date
%TIME
Current time
%PAGE
Current page number (6 characters)
%P
Current page number (3 characters)
These fields can be used in the short forms N,D,T and P. If you want to use these letters as short names for query fields, the field values from the query are used.
You can also see the link
[http://help.sap.com/saphelp_nw70/helpdata/EN/6e/dd68721faf11d6b1d500508b6b8b11/frameset.htm]
Regards,
NR -
How to get current date for posting date
hi,
how to get current date for posting date ? any sample code ?
ThanksHi......
Use
Select getdate()
for current date.......
Regards,
Rahul -
How to assign current date/time to a formula variable in Query Designer
How do I assign the current date to a formula variable in Query Designer? I need to use current data in a calculation and just need the date the report was run.
ThanksHi Philip,
There is an SAP formula variable to supply the current date in a formula. I think it is 0F_ADAY...install it from business content if you cannot see it in the query designer (formula box, under formula variables) and try using it.
Hope this helps... -
How can I include date in report header
How can I display the current date in my report header? I do not wish to modify the sql statement to include the sysdate.
Can I add the date in the 'Report and Customization Form Text' or in 'Additional PL/SQL Code'? If so then how?Maxine,
In the last tab of the report wizard,
you can add the plsql to display the date.
Alternately,create an unstructured UI template and add the [oracle][oracle] tag
and insert the plsql in it to display the
date -
How to put current date in File name while saving PDF file.
Hi expert,
A report is scheduled for broadcasting in PDF format . User wants it should have current date in its file name.
Now system generated file name is Z_XXX_YYY_0000.pdf , but it should have Z_XXX_YYY_10012012.pdf or in any date format.
Regards,
Anand Mehrotra.First, how to best change the name of the folder. In Library view, there is a Folders panel within the lest hand side panel. If you select the folder and bring up the context menu, you can select the rename option to change the name/date of the folder. Lightroom will also cause the name to be changed on the HDD so both Lightroom as well as the OS will know about the change. This is the simplest way to handle folder name changes.
Renaming the photos contained within the folder is a bit trickier. I have tried the Lightroom batch rename function, which should work by the way, I encountered some issues in which Lightroom wanted to substitute a sequence number, starting at 0001 rather than use the starting number I wanted to use. This was in Lightroom 4.x and I ended up having to manually rename files. To rename the files within the folder, select the folder to display the grid view of the images within that folder. Next, select all of the photos you want to rename and then select Library/Rename Photos (must be in Library mode) or just press the F2 key. This will open a Rename Photo dialog. Use the drop down box to select your naming scheme (or custom, which will open the Filename Template Editor where you can build your own template. From there, just click to confirm your choices and you should be able to rename your files.
As I said above, I did have trouble with this in V4.x so I suggest only selecting one of the photos and testing it out. If it works, you can select the rest and complete your task. If it doesn't, then you can fix that, try again to get it to work or just manually rename your photos which is what I ended up doing. -
How to filter the data on Reports from collected from differnet Agents
1) I have to write a Plug-in which would fetch the same type of data from 7 Agents. I need to generate the report for each Agent separately,This plug-in will be deployed in various different environment. So I will not know the host name as it will be deployed different environment. Can anyone suggest how to filter the data for each agent from the table. I see one solution of using Bind variable for the Target GUID in PL/SQL file. Can you please suggest if there is any other better way of doing this.????
Also Can you please suggest what are the best ways to debug the OEM Plug-in?
Thanks Anyway.....What I mean filtering data means displaying data for each Agent Seperatly. Assume I have collected Filesystem data from 5 Agents (5 different server). Now I want do display file system data for Agent1 (server 1). How would I fetch it from MGMT$Metric_Current. Currently I use a bind variable
??EMIP_BIND_TARGET_GUID?? to filter the data for a Agent from MGMT$Metric_Current view. I compare Target Name entered while deploying Plug-in with the Target_Name column of specified view.Is there any other way of fetching data from this table for a Agent?
I hope I am prety clear now. My Problem is IO dont want to force user to enter exact Server name while deploying Plug-in.
Thanks...... -
How to Get Current Date from MS Access in a Select Statement
From a java method, I want to use JDBC to get the current date from MS Access. In Oracle I would do "select sysdate from dual", but I can't figure out how to do it in MS Access. Here are some of my attempts. I have a table in my Access db called PARM.
// String sql = "SELECT '0', NOW() FROM PARM";
//rs.next() is false
// String sql = "SELECT NOW() AS CURR_DT FROM PARM";
//rs.next() is false
// String sql = "SELECT DATE() AS CURR_DT FROM PARM";
//rs.next() is false
// String sql = "SELECT NOW()";
//StringIndexOutOfBoundsException: String index out of range: -1
// String sql = "select { fn now() } from parm";
String sql = "SELECT Date()";
//java.lang.StringIndexOutOfBoundsException: String index out of range: -1
ResultSet rs = stmt.executeQuery(sql);
if (rs.next()) {
return rs.getString(1);
} else {
return null;
}Why are you getting it as a String? You should be getting it as a timestamp.
Although getString works for me too. There is something else wrong that you haven't shown.
Here is some shoddy, but simple, test code that demonstrates it working.
import java.sql.*;
public class Test{
public static void main(String args[])throws Exception{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c = DriverManager.getConnection("jdbc:odbc:stats");
Statement s = c.createStatement();
ResultSet rs = s.executeQuery("SELECT NOW()");
while(rs.next()){
System.out.println(rs.getTimestamp(1));
rs.close();
s.close();
c.close();
} -
How to get current date in a specified format ?
Hi,
I want to get the current date (java.util.Date()) in the format yyyy-MM-dd HH:mm:ss.
Can you please tell me as to how to get that ?
RegardsI have used the same and the code looks like this. But i am getting java.text.ParseException : UnParseable Date: "Fri Jul 11 13:29:43 CDT 2003"
The Code is :
java.util.Date sysDate = new java.util.Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String formatted_date = df.format(sysDate);
It is erroring out in the last statement !! -
How to DEFAULT CURRENT DATE in the filed of a Z_screen of Z_Module pool prg
Hi Experts,
In my module prog., input/output field defined, which is for DATE in screen_1000.
So, this DATE shuld always defalted with CURRENT DATE in screen displplay(not necessorily Grey).
So, while defining this P_DATE in top include, like,
P_DATE type sy-datum value sy-datum---> syntax error
so, tried like,
constant_sy_datum = sy-datum
P_DATE type sy-datum value constant_sy_datum---> syntax error
no use,
So, in PBO , I hv wrote like, p_DATE = sy-datum.
but, its not working, so, How to do it, request for piece of code.Hi,
For module pool declare p_date as data in TOP i.e.
data: p_date TYPE sy-datum
Then in PBO , we move sy-datum to the g_date i.e.
*& Module init OUTPUT
* text
*********************** Initialization part.***************************
MODULE init OUTPUT.
MOVE sy-datum TO g_date.
ENDMODULE. " init OUTPUT
This will solve your problem.
plz reward if useful.
thanks,
dhanashri. -
Pages - How to get current date when opening a template!
I have a stationery template with the date on itl When the template opens can I get it to display the current date.. It so how is that done.
Yes, and the worst:
http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=424&sid=ba144f60f149 4f75c94316b0c7fbff2b&mforum=iworktipsntrick
If you had Pages previously it should be in your Applications > iWork folder.
Peter -
I'm working on a bulletin template and would like to have a text box with the current date automatically generated and placed in it. Is this possible? If so, how do I go about doing this?
Type>Text Variables>Modification or Output Date
You can modify the variable by editing it
MMMM YY for June 10 etc
Modification date will change when you save the document (F5 to refresh)
Output will change on output of the file. -
hi all
if i make the source for a field is a current date with formate dd/mm/rrrr hh:mi:ss
and the report published on the application server
and the clients from diffrent machines run this report
what the field display on cline or on DB or On Application Server?
thanksdear Viru,
you can try to put '=NOW()' in the excel cell you want to display and save as worrbook.
there also some other text from bex query
menu business explorer -> display text elements -> general
Re: Date should be displayed on query execution
hope this helps.
Maybe you are looking for
-
I have emailed a itunes support guy named noel ask a question about buying add-on content. . I was stupid enough to go to a link off the internet to the apple website not knowing if i could been fake. so later on that day the guy replied back with,
-
Adobe Flash Player, will not work. Crashes EVERYTIME.
I'm not a huge computer person, so this explanation will suck: Okay, I have a Toshiba laptop, OS is Windows and I use Mozilla Firefox as my browser. About 3 days ago, I opened Youtube and tried to play a video, and it said I need to update Adobe. I u
-
SRM - Catalog Content Management
Hi SRM Masters Can any one could send me the config documentaion for SRM Catalog Content Management document and functionality(other than SRM260 and SRM270 both I have). and also SUS config documents and functionality. Regards Rajesh
-
Binding fault in SOA composite
Hi all, we are having trouble with a soa composite wich has 1 web service and 3 jca db adapters. After deployment, only the first time the web service is consumed all is ok and the ws client receive the response (some data from db), but starting from
-
Calendar-based confirmation (holidays and weekends off)
Hello, Our company needs the sales order´s schedules lines to be confirmed only on non-holiday and non-weekend days. How can I achieve this? I have a proper calendar with all the holidays set correctly. Things that I've tried which didn't work: 1) As