To print the Date as January 12 , 2008.
Hi to ALL,
1. I want print the date as January 12,2008 in date window instead of 01.12.2008.
2. how can i print the date.plz help me. And also i want give I/P fields to smartforms mainwindow like "your salary hike from Rs.25,000 to Rs. 35,000" .
3. And i have to give date &I/P Personnal Subarea.It is display in main window, these two also I/P fields.
Ex: your sevice transfer to personnal subarea(chennai) effect from date i/p date(10.07.2008)
plz help me in issue.
Thanks & Regards
Pracash.
Yes hiddu u can this by that code patch
do this
data: dd(2) type c ,
mm(2) type c ,
yy(4) type c .
dd = P_DATE+6(2).
mm = p_date+4(2).
yy = p_date+0(4).
select single ltx
into p_output
from t247
where SPRAS = sy-langu
and mnr = mm.
till here u finshed splitting dates and extracted your month text
Now u simply have to concatenate the way u want
continue those code lines with these statements
concatenate wa_output
dd into wa_output separated by space.
concatenate wa_output
into wa_output .
concatenate wa_output
yy into wa_output separated by space.
This is how i do in my hr reports and it work fine. this will exactly give u that format
P_date what i used there u declare this way
data: p_date type pa0001-begda,
wa_output type char(25).
reward points if its useful
Swetha.
Edited by: Swetha on May 16, 2008 2:40 PM
Similar Messages
-
Trying to print the date arrays in reverse order....
Hi,
I'm trying to print the dates in the arrays in reverse order using the for loop, but its not working and i think ive got something in the wrong order perhaps the constructor or method. Or do i need to define 'a', because i tried it and i couldn't unless, probably because i was putting the wrong code for it.
Thanks for your help
public class Array
public static void main(String[] args)
a[0] = new Date(2, " January ", 2005)
a[1] = new Date(3, " February ", 2005)
a[2] = new Date(21, " March ", 2005)
a[3] = new Date(28, " April ", 2005)
printDate();
class Date
public int day;
public String month;
public int year;
public Date(int d, String m, int y)
day = d;
month = m;
year = y;
public void printDate()
for (int i = a.length - 1; i >= 0; i--)
System.out.println(a);I don't see where this 'a' variable is declared anywhere, so what did you expect it to do? Also, you can't just call Date's printDate method from your Array class like that. You really need to start with the java tutorials or take a course. The forums aren't going to effectively teach you the very basics.
-
How can print the data from notepad into the web application.
Hi,
I am Buntty, I want to read the data from the notepad and print into text area of web application, I have written the code to invoke the file and store data in temporary buffer, then I want to Print that data, but while printing the data 1st line replaces when the 2nd line prints, java code is below.
BufferedReader bin=new BufferedReader(new FileReader("mydata.txt"));
while((credit_number=bin.readLine())!=null)
selenium.type("inputString", credit_number);
Please help me to print all the lines in the text area of web application.
Any method to print the all the data in the notepad at a time into the text area on web application.
Thanks
Buntty
Edited by: Buntty on Nov 15, 2008 4:24 PM
Edited by: Buntty on Nov 15, 2008 4:37 PMTry this:
BufferedReader bin=new BufferedReader(new FileReader("mydata.txt"));
String tempString = "";
while((credit_number=bin.readLine())!=null)
tempString = tempString + credit_number;
selenium.type("inputString", tempString); Hope this helps.
All the best -
Hiu2026u2026
I have created a query using SQVIu2026The output is likeu2026
Zone | Customer Group | Customer Name | Date | Value(Rs)
East | ABC/JPR | ABC pvt ltd | 01.08.2011 | 50,000
West | LMN/Delhi | LMN pvt ltd | 02.08.2011 | 1, 50,000
South | PQR/Haryana | PQR auto sales p l | 03.08.2011 | 1,00,000
My problem is i have to print the date in the format like
Zone | Customer Group | Customer Name | 01.08.2011 | 02.08.2011 | 03.08.11 | 04.08.2011 |..............31.08.2011|
East | ABC/JPR | ABC pvt ltd | 50000 | 150000 | 100000 | | |
Thanks&Regards,
Pranitha.Hi Pranita,
You could try with logic:
CONCATENATE LINES OF itab INTO warea SEPARATED BY '|'.
BR
Dep -
How to print the data in the grid?
Hi all,
I'm new to java. So, I need some helps.
I want to print the data in the grid. Data could be more than one page. But I have no idea how to start writing code.
Please let me know if you know.
Thank you.
DT.Follow this steps.
1- the Grid which you wish to print must locate in a class which implements Printable() interface.
e.g.
import javax.swing.table.*;
import java.awt.print.*;
import javax.infobus.*;
public class myGridControl extends GridControl implements Printable{
// add the following statements in the definition section of your class
int m_maxNumPage =1;
JTable m_table;
TableModel m_tableModel;
ScrollableRowsetAccess myRs;
// add the folowing statemnts in the
//constructor or init method or start method
//(Notice:if you couldn't print, possible
//you didn't put these stetment on the right
//location and one or all of them
//are "null".change the location and make
//sure they are not null when you issue a
//print order)
m_table = new JTable();
m_table = masterGrid.getTable();
m_tableModel = m_table.getModel();
myRs = (ScrollableRowsetAccess)masterGrid.getDataItem();
3- add following methods to your class(myGridControl). just cut and paste.
// Print Methods
public void printData() {
try {
PrinterJob prnJob = PrinterJob.getPrinterJob();
prnJob.setPrintable(this);
if (!prnJob.printDialog())
return;
prnJob.print();
catch (PrinterException e) {
e.printStackTrace();
System.err.println("Printing error: "+e.toString());
public int print(Graphics pg, PageFormat pageFormat,int pageIndex) throws PrinterException {
JLabel m_title=new JLabel("Alexus Report : "+titleName);
if (pageIndex >= m_maxNumPage)
return NO_SUCH_PAGE;
pg.translate((int)pageFormat.getImageableX(),
(int)pageFormat.getImageableY());
int wPage = 0;
int hPage = 0;
if (pageFormat.getOrientation() == pageFormat.PORTRAIT) {
wPage = (int)pageFormat.getImageableWidth();
hPage = (int)pageFormat.getImageableHeight();
else {
wPage = (int)pageFormat.getImageableWidth();
wPage += wPage/2;
hPage = (int)pageFormat.getImageableHeight();
pg.setClip(0,0,wPage,hPage);
int y = 0;
pg.setFont(m_title.getFont());
pg.setColor(Color.black);
Font fn = pg.getFont();
FontMetrics fm = pg.getFontMetrics();
y += fm.getAscent();
pg.drawString(m_title.getText(), 0, y);
y += 20; // space between title and table headers
Font headerFont = m_table.getFont().deriveFont(Font.BOLD);
pg.setFont(headerFont);
fm = pg.getFontMetrics();
TableColumnModel colModel = m_table.getColumnModel();
int nColumns = colModel.getColumnCount();
int x[] = new int[nColumns];
x[0] = 0;
int h = fm.getAscent();
y += h; // add ascent of header font because of baseline
// positioning (see figure 2.10)
int nRow, nCol;
for (nCol=0; nCol<nColumns; nCol++) {
TableColumn tk = colModel.getColumn(nCol);
int width = tk.getWidth();
if (x[nCol] + width > wPage) {
nColumns = nCol;
break;
if (nCol+1<nColumns)
x[nCol+1] = x[nCol] + width;
String title = (String)tk.getIdentifier();
pg.drawString(title, x[nCol], y);
pg.setFont(m_table.getFont());
fm = pg.getFontMetrics();
int header = y;
h = fm.getHeight();
int rowH = Math.max((int)(h*1.5), 10);
int rowPerPage = (hPage-header)/rowH;
m_maxNumPage = Math.max((int)Math.ceil(m_table.getRowCount()/
(double)rowPerPage), 1);
int iniRow = pageIndex*rowPerPage;
int endRow = Math.min(m_table.getRowCount(),
iniRow+rowPerPage);
// take an array to store columns header
String colNames[] = new String[nColumns];
for (nCol=0; nCol<nColumns; nCol++) {
colNames[nCol] = myRs.getColumnName(nCol+1).toString();
try{
for (nRow=iniRow; nRow<endRow; nRow++) {
y += h;
// set RowSet on the specific row
myRs.absolute(nRow+1);
for (nCol=0; nCol<nColumns; nCol++) {
/* the next 3 lines are old code
int col = m_table.getColumnModel().getColumn(nCol).getModelIndex();
Object obj = m_tableModel.getValueAt(nRow, col);
String str = obj.toString();
// take the values column by columns
ImmediateAccess ia = (ImmediateAccess)myRs.getColumnItem(colNames[nCol]);
String str = ia.getValueAsString();
if (str.equals("")) str=" ";
/* this if is usefull if we'd like to have coloring in printing
if (obj instanceof ColorData)
pg.setColor(((ColorData)obj).m_color);
else
pg.setColor(Color.black);
pg.drawString(str, x[nCol], y);
}catch(Exception e){
e.printStackTrace();
System.gc();
return PAGE_EXISTS;
public void printData() {
try {
PrinterJob prnJob = PrinterJob.getPrinterJob();
prnJob.setPrintable(this);
if (!prnJob.printDialog())
return;
prnJob.print();
catch (PrinterException e) {
e.printStackTrace();
System.err.println("Printing error: "+e.toString());
public int print(Graphics pg, PageFormat pageFormat,int pageIndex) throws PrinterException {
JLabel m_title=new JLabel("Alexus Report : "+titleName);
if (pageIndex >= m_maxNumPage)
return NO_SUCH_PAGE;
pg.translate((int)pageFormat.getImageableX(),
(int)pageFormat.getImageableY());
int wPage = 0;
int hPage = 0;
if (pageFormat.getOrientation() == pageFormat.PORTRAIT) {
wPage = (int)pageFormat.getImageableWidth();
hPage = (int)pageFormat.getImageableHeight();
else {
wPage = (int)pageFormat.getImageableWidth();
wPage += wPage/2;
hPage = (int)pageFormat.getImageableHeight();
pg.setClip(0,0,wPage,hPage);
int y = 0;
pg.setFont(m_title.getFont());
pg.setColor(Color.black);
Font fn = pg.getFont();
FontMetrics fm = pg.getFontMetrics();
y += fm.getAscent();
pg.drawString(m_title.getText(), 0, y);
y += 20; // space between title and table headers
Font headerFont = m_table.getFont().deriveFont(Font.BOLD);
pg.setFont(headerFont);
fm = pg.getFontMetrics();
TableColumnModel colModel = m_table.getColumnModel();
int nColumns = colModel.getColumnCount();
int x[] = new int[nColumns];
x[0] = 0;
int h = fm.getAscent();
y += h; // add ascent of header font because of baseline
// positioning (see figure 2.10)
int nRow, nCol;
for (nCol=0; nCol<nColumns; nCol++) {
TableColumn tk = colModel.getColumn(nCol);
int width = tk.getWidth();
if (x[nCol] + width > wPage) {
nColumns = nCol;
break;
if (nCol+1<nColumns)
x[nCol+1] = x[nCol] + width;
String title = (String)tk.getIdentifier();
pg.drawString(title, x[nCol], y);
pg.setFont(m_table.getFont());
fm = pg.getFontMetrics();
int header = y;
h = fm.getHeight();
int rowH = Math.max((int)(h*1.5), 10);
int rowPerPage = (hPage-header)/rowH;
m_maxNumPage = Math.max((int)Math.ceil(m_table.getRowCount()/
(double)rowPerPage), 1);
int iniRow = pageIndex*rowPerPage;
int endRow = Math.min(m_table.getRowCount(),
iniRow+rowPerPage);
// take an array to store columns header
String colNames[] = new String[nColumns];
for (nCol=0; nCol<nColumns; nCol++) {
colNames[nCol] = myRs.getColumnName(nCol+1).toString();
try{
for (nRow=iniRow; nRow<endRow; nRow++) {
y += h;
// set RowSet on the specific row
myRs.absolute(nRow+1);
for (nCol=0; nCol<nColumns; nCol++) {
/* the next 3 lines are old code
int col = m_table.getColumnModel().getColumn(nCol).getModelIndex();
Object obj = m_tableModel.getValueAt(nRow, col);
String str = obj.toString();
// take the values column by columns
ImmediateAccess ia = (ImmediateAccess)myRs.getColumnItem(colNames[nCol]);
String str = ia.getValueAsString();
if (str.equals("")) str=" ";
/* this if is usefull if we'd like to have coloring in printing
if (obj instanceof ColorData)
pg.setColor(((ColorData)obj).m_color);
else
pg.setColor(Color.black);
pg.drawString(str, x[nCol], y);
}catch(Exception e){
e.printStackTrace();
System.gc();
return PAGE_EXISTS;
4- execute printData() method to print.
e.g. myGridControl.printData();
let me know if you still cannot print.
Ali -
How can I print the DATE in the Header/Footer but NOT the TIME?
I know how use page set-up to change the headers and footers. Firefox doesn't give me the choice of printing just the DATE rather than the DATE/TIME. I tried Custom Date and it printed "Date", and not the date. I tried &Date and it print the Date & Time.
Is there a way to print just the date?
Sign me
Midnight PrinterYou want to print them on their own? Can't be done. WIth the photo? Install this
http://www.iborderfx.com/iborderfx/ -
My Page has data more than one page, it has verticle scroll bar to view all data .
I used window.print() to print the data of webpage, but it prints only first page and left the remaining information.
This works fine with Internet Explorer 6+ and Google Chrome.Does the entire webpage appear in Print Preview? <br />
File > Print Preview -
Is there any way to print the data inside the Notes field of MIR6 Report
Hello Gurús.
We need to include the data inside the Notes field in the report MIR6 - INVOICE OVERVIEW - report.
Is there any way to print the data inside (comments) the Notes field as well in the Report ?
We found that the only way is to open the Notes and print it, but it takes time, any idea ?
Rgds.
MCM.There's nothing built-in that does that. If you only have text fields and they don't have any formatting or other property that would prevent it (e.g., Date, character limit), you can run a simple script to populate each field with the field name, and then print. A more complicated approach would be a script that adds text annotations near/over each field that shows the field name. This would just be for documentation purposes, but it's possible. Post again if you'd like help with the first. You'll probably have to pay someone for the second approach if you don't want to do it yourself.
-
How to print the data Dynamically in smartforms
Hi Experts,
I need to print the data dynamically in different windows on the same page.For example in the first window 25 records,2nd window 25 records and 3rd window 25 records.I need it dynamically.How to achieve this?Hi,
If you have an internal table which fetches the data... Then you can have table in each window and in the data tab give from row and to row values to display how many records and from where to where you want to display.
Regards,
-Sandeep -
How can I print the date and time in a photo from iPhoto
How can I print the date and time in a photo from iPhoto
You want to print them on their own? Can't be done. WIth the photo? Install this
http://www.iborderfx.com/iborderfx/ -
How to print the data if we take different fields from diffrent tables
Hi ABAPers,
I take diff fields from 3 tables. Those are
these fields from EKBE
EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
these fields from EKKO
BUKRS
BSART
WAERS
these field from EKPO
TXZ01
MATNR
MTART
I want to print the data all fields.What logic can i write?
Please help me for this question and i am waiting for your response.
Regards,
Raja Sekhar.Hi,
First you have to fetch data from all the three tables and then consolidate into final table.
In Declaration:
1.Declare Internal Table for EKKO holding:
EBELN
BUKRS
BSART
WAERS
2.Declare Internal Table for EKPO holding:
EBELN
EBELP
TXZ01
MATNR
MTART
3.Declare Internal Table for EKBe holding:
EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
*==> This table has
MANDT
EBELN
EBELP
ZEKKN
VGABE
GJAHR
BELNR
BUZEI
as Primary keys field,you should have values for all the PK aotherwise you will get multiple entries*
4.Declare a Final Internal Table i_final with all the fields you want
EBELN
EBELP
BUKRS
BSART
WAERS
TXZ01
MATNR
MTART
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
Data Fetching
select EBELN
BUKRS
BSART
WAERS
from EKKO
into table i_ekko
where .........<selection criteria>.
if not i_ekko is initial.
select EBELN
EBELP
TXZ01
MATNR
MTART
from EKPO
into table i_ekpo
for all entries in i_ekko
where EBELN = I_EKKO-EBELN
AND ......<If any other selection criteria>.
if not i_ekpo is initial.
select EBELN
EBELP
BELNR
BUZEI
BWART
BUDAT
AREWR
REEWR
WERKS
MWSKZ
from EKBE
into table i_ekbe
for all entries in i_ekpo
where ebeln = i_ekpo-ebeln
and ebelp = i_ekpo-ebelp
and ..........<If any othet selection criteria>
endif.
endif.
Consolidate
sort i_ekko by ebeln.
sort i_ekpo by ebeln ebelp.
sort i_ekbe by ebeln ebelp.
LOOP AT i_ekbe into wa_ekbe.
read table i_ekko into wa_ekko with key ebeln = wa_ekbe-vbeln binary search.
if sy-subrc = 0.
====>Move all the required firlds from I_EKKO to i_final , like
wa_final-BUKRS = wa_ekko-BUKRS.
endif.
read table i_ekpo into wa_ekpo with key ebeln = wa_ekbe-vbeln
ebelp = wa_ekbe-ebelp binary search.
if sy-subrc = 0.
====>Move all the required firlds from I_EKPO to i_final , like
wa_final-EBELP = wa_ekko-EBELP.
wa_final-TXZ01 = wa_ekko-TXZ01.
endif.
==>Also all the required fields from EKBE to final table, like
wa_final-BELNR = wa_ekbe-BELNR.
endloop. -
Printing the date and time on a photo
The date and time that the photo was taken showes up but how do I get it to print on my photos?
You can print the date just below the photo on a printout by using 'Contact Sheet' option while printing the photo through Photoshop Album Starter Edition.
-
How to print the date the image was taken as a watermark on the image
I want to print the date the image was taken (available as EXIF-data) as an automatic watermark (or otherwise as a caption ON the photo, and not as a header of a footer above or under the photo). I can't find how to do it. Any help? Thanks!
The only way you could batch this with out of the box PE is to put in via process multiple files in the editor, but you'd have to manually type it in and can only do one date per batch of files. So you could do all the photos taken on one day in one batch, but not a group taken on different days.
-
How to get the date in 01-jan-2008 format
hi
how to get the date in 01-jan-2008 formatCheck this example of how to get this format..
TABLES: T247.
DATA: V_DATE TYPE SYDATUM.
DATA: V_STRING(20).
V_DATE = SY-DATUM.
SELECT SINGLE * FROM T247
WHERE SPRAS = SY-LANGU
AND MNR = V_DATE+4(2).
IF SY-SUBRC = 0.
CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)
INTO V_STRING.
WRITE: / V_STRING.
ENDIF.
or
make use of this FM
CONVERSION_EXIT_IDATE_OUTPUT
and see its documentation.
or
/: SET DATE MASK = 'DD-MMM-YYYY'
&DATE&
check with this.
if it is not working try to give space between DD and MMM and YYYY
all of the three work...choose whichever suits u
eg2:
Use FM:CONVERSION_EXIT_IDATE_OUTPUT
Check this Program.....
DATA:DATE TYPE D VALUE '20070912'.
DATA:DATE2(12) TYPE C.
DATA:FINAL_DATE(15) TYPE C.
CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'
EXPORTING
INPUT = DATE
IMPORTING
OUTPUT = DATE2.
CONCATENATE DATE20(2) '-' DATE22(3) '-' DATE2+5(4) INTO
FINAL_DATE.
WRITE:FINAL_DATE.
Eg:3
use FM MONTH_NAMES_GET by passing month_names-spras = 'E'
it will return the Mont names in month_names-KTX ( 3 cha short name ) & month_names-LTX ( Long text ). then concatenate 'DD''-' month_names-KTX & 'YY'
reward points if useful -
Xsl/Xml - How can I print the date?
That might sound like a silly question but no matter what I do, I get an error when I try to select or copy the value of fn:current-dateTime(). All I want to do is display the date and time. Is this only available in XSLT 2.0? If so, what could I use in XSLT 1.0 that would allow me to print the date and/or time?
Thanks,
tech_isisI just discovered that you can call java within an xsl stylesheet. What I need is to capture the "system time" when the stylesheet is processing. So here's a snippet of what I have in my stylesheet:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="java.util.Date" xmlns:format="java.text.SimpleDateFormat" xmlns:cal="java.util.Calendar" xmlns:java="java">
<xsl:value-of select ="java:util.Date.new()"/>
gives me a long date i.e. Tue Nov 7....
what I want is YYYYMMDDHHMMSS
I've tried formattng this use SimpleDateFormat but with no success.
Can anyone point me in the right direction?
Thanks,
tech_isis
Maybe you are looking for
-
I'm downloading a song but iTunes won't let me. What can I do to download the song?
It always says "unable to download song at this time. Download error." What can I do to download the song?
-
Doc currency is not matching to Transaction currency in KE5Z
Hi, A FI document is posted in USD for a company whose local currency is SGD, PCLC is USD. Now when i execute KE5Z for a particular GL account and PC i get the correct CoCd Lcl currency-SGD, PCLC-USD and the transaction currency-USD. But when i execu
-
Hi, I am using the patch tool to patch (!) areas of an image. Instead of patching the selection into the image, PS4 blends it, so that some of the patch and some of the original image are visible. I've searched for a way to instruct PS4 to reduce t
-
Shuttle Demo errors when using DB link
The Shuttle demo is awesome. Let me just start there. I have a table that is accessible over a database link. We're talking a simple select here that does return correctly within APEX SQL Commands. select "company_name", "company_num" from pmd.compan
-
Adobe Flash Islands for Web Dynpro ABAP Data Binding problem
I have downloaded the NetWeaver 7.1 Trial (includes Adobe Flash Islands for Web Dynpro ABAP). I try to create a very simple FlashIslands component running within the Web Dynpro Application, everything looks good. However, all binding to the Flex comp