Date Formates in SMARTFORMS
Hi Friends,
i am working in Smartforms, i have a date field when used in smartform its date formate is dd.mm.yyyy but i need dd.mm.yy
example while taking printout its coming as 15.05.2008 but i need is 15.05.08,
i used SET DATE MASK but its not working.
is there any Function Module there to convert
please help me
Regards
kumar M
change it in print program...
data: date(10) type c value '15.02.2008',
day(2),
month(2),
year(4),
lv_year(10).
day = date+0(2).
month = date+3(2).
year = date+6(4).
year = year+2(2).
concatenate day month year into lv_year seperated by (whatever u want).
**and use this lv_year in your smartform.
regards
Similar Messages
-
Date format within smartforms printing
Hello,
I have an issue regarding date format.
When I print a delivery note date format is e.g. 08.04.2011, printing an invoice it shows 04-08-2011.
It seems that depending on the customers country the invoice printing converts to date format within country settings
(V_T005-DATFM) while delivery form doesn't.
If I always want to print in date format of sales company what should I do?
Thanks a lot,
Wolfi.I guess, it should work if you define
/: SET COUNTRY &country_key&
in the Initialization section of your smartform.
Note: The country-dependent formatting options are stored in the T005X table.
Regards,
SaiRam -
Hi,
Guys i have a doubt in smartforms.i.e .i want to change the format of date within smartform not in print program.
I am getting dates trrough internal table in 9 character long .i want to change the date 16 character.i.e. 20 December 2005 like this.
In table structure 9 character only.so,i want to format date like this.
Inside smartforms where to write code for call FM and formatting and all?
If i call FM inside smartforms it'll work? .that means where i have to call and format? Please help me..
Regards,
Nandha..HI,
you can write the code as you want in the Smartform,
Just create <b>Program lines</b> then call the Function module, so you input will be 9 character field and the output will be 16 Character field.
In the Program lines window, just give Input Parameter is 9 character field and the output parameter is 16 Character field, so this 16 Character field will be available for you in the Smartform, so you can use this and Print this anywhere
Hope you got it..
Regards
Sudheer -
hi experts,
how to print date as 21/feb/2008 in smartforms.
thanks in advanceHi,
Use the FM CONVERSION_EXIT_SDATE_OUTPUT
DATA: int_datum LIKE sy-datum VALUE '19940102',
ext_datum(11) TYPE c.
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
input = int_datum
IMPORTING
output = ext_datum.
WRITE :/ ext_datum.
Result
02.JAN.1994
Regards
Bala Krishna -
How to Change date Format in Smartforms
hi,
i want to change date in words in smartforms.
but we can done this in SAPscript using SET DATE MASK
can you help me please.hi Use FM,
data: date type sy-datum, text(20).
date = sy-datum.
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
INPUT = date
IMPORTING
OUTPUT = text
Reward points if useful..
Regards
Nilesh -
if i need the change the date format according to country how can i do it
( i.e ) I am creating a smartform, the date format i use is normally dd/mm/yyyy
if the same smartform is printed in some other country( using format yyyy/mm/dd or any format)
i want my date format to change based on where it is printed.
In SAPScripts there is a command SET COUNTRY.
Can I use this command for my requirement. If so How?hi check this referred link and do the coding accordinly...please search before you post ..
Country specific date format
and try this C14N_COUNTRY_DATE_DECF_GET too
Edited by: Venkat Appikonda on Jan 28, 2009 12:37 PM -
How to create paragraph format in smartforms
Hi All,
Let me know how to create paragraph format in smartforms?
Thanks&Regards
MaheshHi
When we create a smartform we can see in <b>global settings</b> , <b>form attributes</b>.
In <b>form attributes</b> we set the over all style of the smartform. Goto <b>form attributes</b> and open the tab <b>output options</b>. Here you can see the <b>Style box</b>. In this style box we enter the smartstyle created in transaction code <b>smartstyles</b>.
Open transaction <b>smartstyles</b>.
Create a new style.
Upon creating a new style you will see 3 folder structures under style name.
1. Header data
2. Paragraph format
3. Character format
To create paragraph format right click on the paragraph format node and click Create Node. Give it name. Now you will get a screen with 4 tabs.
Indents and spacing
Fonts
Tabs
Numbering and outline
Here you can provide the look you want.
Now add this smartstyle in your smartform's form attribute.
You can also provide individual smartstyles to each text element you create by giving the name of smartstyle in its output options tab. Each text element has a individual output option tab here you can give any smartstyle.
Click on the general attribute tab of any text element and give the paragraph format directly or by going to SAPScript editor mode.
Any more questions you can ask me directly mailing me.
Please do reward points if satisfied. -
Hi,
Currently, the delivery date printed in PO form is in the format of mm/dd/yyyy.
If I will change the month format into text, say for example, FEB-07-2011, how can I make this happen?
Is there any other way to accomodate this other than change the print program/form?
Thanks!
Best Regards,
ArmieHi,
Date format copy from setting which you have done in t.code: SU3 or SU01 in Date Format in Default tab,If you want you can change it according to your requirement.
Or as you need check your SMARTFORMS which assigned to your PO message type ( NACE) with which you print PO and see possible conversion as required by you with your ABAPer.
Regards,
BIju K -
Dear Specialists,
I have a date field in Smartform which is currently getting displayed in format MM/DD/YYYY.
I need to display it as DDMMMYY( For Eg. 08JUL09 ) .
I tried writing /: SET DATE MASK 'DDMMMYY'.
But this didn't help.
Any suggestions ??
-Abhinav.Hi Friend,
use the FM CONVERSION_EXIT_SDATE_OUTPUT....as follows
declared as DATA : t_dATE(21) TYPE C.
CALL FM 'CONVERSION_EXIT_SDATE_OUTPUT'.
EXPORT
DATE = SY-DATUM.
IMPORT
DATE = T_dATE.
t_date will be in following format 21 april 1986...
Regards,
Akash Rana -
Dynamic formating in smartforms
I'm just curious if there is a possible to create a dynamic formatting in Smartforms. What I mean saying dynamic? Lets imaging that I've a strucure where I've following information;
LINE_NUMBER
TEXT
This structure is used to build a table, where I can assign one or more text to one line.
So my example data in this table will be:
LINE_NUMBER | TEXT
1 | my first item
1 | first item description
1 | some other text
2 | second item
2 | second item extended name
2 | second item additional text
2 | second item summary text
and so one...
So I can have varying texts number assigned into one line (max 8).
Now I want to use paragraph, with 8 prepared tabs.
Now the problem comes, how to pass this texts into tableline inside smartform and do not prepare separate lines for 1,2,3... elements?
Any idea? It is possible to prepare data in variable which looks like:
1,,my first item,,first item description,,some other text
and display this data in such way, that commas will be recognized as tabs formatting in paragraph instead displaying them?hi..try this...
create table->create a line type as required.
loop at itab containing ur data.
in the main area of the table create a row:
right click on main area->table line
in the output options of the row assign the line type from the drop down. in the condition of the row give the condition wa-LINE_NUMBER = 1.
similarly create other rows(table lines) giving the conditions 1 to 8.
that is you will have 8 table lines with conditions:
row1 condition -> wa-LINE_NUMBER = 1
row2 condition -> wa-LINE_NUMBER = 2
row3 condition -> wa-LINE_NUMBER = 3
row8 condition -> wa-LINE_NUMBER = 8
so if line_number = 1 then row 1 will be use..
if its 8 then row 8 will be used......
inside the rows u can use different text elements with different para formats... -
Hi Tim,
I am facing some issues with formatting the date using XMLP. The following is the sample XML data file i am using:
<LIST_G_HEADER>
<G_HEADER>
<QUOTE_HEADER_ID>1455</QUOTE_HEADER_ID>
<QUOTE_NUMBER>2027</QUOTE_NUMBER>
<QUOTE_VERSION>1</QUOTE_VERSION>
<QUOTE_NAME>Test GM Report - Rabindra</QUOTE_NAME>
<SOURCE_NAME>Fletcher, MR. Paul</SOURCE_NAME>
<QUOTE_DATE>27-OCT-2005</QUOTE_DATE>
<CURRENCY_CODE>GBP</CURRENCY_CODE>
</G_HEADER>
</LIST_G_HEADER>
The formatting i use for my date field i.e <QUOTE_DATE>, ends up either with NO formatting or giving me an error "[010906_114656657][][ERROR] Invalid XSD string: 27-OCT-2005 (XMLP Template Viewer)". The default formatting available with the form field dialog box (MS-Word) feature also doesn't work.
I have the following formatting for this field in the form field:
<?format-date:QUOTE_DATE; 'MEDIUM' ?>
When i read the user guide, it reads that the date should be in the canonical format i.e: YYY-MM-DDThh:mm:ss+HH:MM
However i am not getting the date from the base table's in this format. Is the error happening due to incorrect format or is there some other reason behind this? Please let me know, how can i overcome this issue.
Thx,
NitinAs i mentioned in another thread
substring function and date format
Please use this standards
<?xdofx:expression?>
for extended SQL functions or
<?xdoxslt:expression?>
for extended XSL functions.
Use like
<?xdofx:rpad(LAST_NAME),30, ’x’)?>
<?xdofx:Instr(’abcabcabc’,’a’,2))?>
<?xdofx:upper(char)?>
<?xdofx:lower (char)?>
<?xdofx:greatest ( expr [, expr]... )?>
ETC..... -
How can we give the Data Format (File Type ) in Runtime
Hi all,
How can we give the Data Format (File Type ) in Runtime for the following method,
cl_gui_frontend_services=>gui_download.
Thanks in advance
SriThere is a filetype parameter which you can set
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
* BIN_FILESIZE =
filename =
* FILETYPE = 'ASC'
* APPEND = SPACE
* WRITE_FIELD_SEPARATOR = SPACE
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = SPACE
* WRITE_LF = 'X'
* COL_SELECT = SPACE
* COL_SELECT_MASK = SPACE
* DAT_MODE = SPACE
* CONFIRM_OVERWRITE = SPACE
* NO_AUTH_CHECK = SPACE
* CODEPAGE = SPACE
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = SPACE
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* IMPORTING
* FILELENGTH =
changing
data_tab =
* EXCEPTIONS
* FILE_WRITE_ERROR = 1
* NO_BATCH = 2
* GUI_REFUSE_FILETRANSFER = 3
* INVALID_TYPE = 4
* NO_AUTHORITY = 5
* UNKNOWN_ERROR = 6
* HEADER_NOT_ALLOWED = 7
* SEPARATOR_NOT_ALLOWED = 8
* FILESIZE_NOT_ALLOWED = 9
* HEADER_TOO_LONG = 10
* DP_ERROR_CREATE = 11
* DP_ERROR_SEND = 12
* DP_ERROR_WRITE = 13
* UNKNOWN_DP_ERROR = 14
* ACCESS_DENIED = 15
* DP_OUT_OF_MEMORY = 16
* DISK_FULL = 17
* DP_TIMEOUT = 18
* FILE_NOT_FOUND = 19
* DATAPROVIDER_EXCEPTION = 20
* CONTROL_FLUSH_ERROR = 21
* NOT_SUPPORTED_BY_GUI = 22
* ERROR_NO_GUI = 23
* others = 24 -
Need to convert into date format
Hi all,
I need to convert '2008-11-26T11:07:38-06:00' [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS][TIMEZONE]
in format 'YYYY-MM-DD HH:MM:SS'.
Thanks in advance.>
Thank you for your reply
But it is giving me output as '26-NOV-08'
And I want in format '2008-11-26 07:38' i.e 'YYYY-MM-DD HH:MM'.
>
Then you are not looking for a date, You are looking for a string.
The date format that gets displayed is dependent on nls_date_format parameter.
If you want a string in the format you asked, then,
SELECT TO_CHAR ( TO_DATE ( '2008-11-26T11:07:38-06:00', 'YYYY-MM-DD"T"HH24:MI:SS"-06:00"'), 'YYYY-MM-DD HH24:MM:SS')
FROM DUAL;Or if you just want the date to be displayed like that then
Do,
SQL> alter session set nls_date_Format="YYYY-MM-DD HH24:MI:SS";
Session altered.
SQL> SELECT TO_DATE ( '2008-11-26T11:07:38-06:00', 'YYYY-MM-DD"T"HH24:MI:SS"-06:00"') dt
2 FROM DUAL;
DT
2008-11-26 11:07:38
SQL> G. -
Changing date format at reporting level
Hello,
Will u plz tell me how can i change the date format at reporting level?
I want to display date in dd/mm/yyyy, but by default its showing mm/dd/yyyy.
Delta is already loaded in the system, so i don't want to disturb regular data loading.
Is there any way so that i can change the format of date.
Plz help me out.
Thanks,
Regards,
SteveHi steve
There r so many postings on the same topic
go through these previous threads
date format
Date format
u can find solution
regards
Ravi Kiran -
How to convert the numeric to date format
HI ,
We have created the date KF and selected the data type as DEC-numeric or counter and add in the cube.
the data for this fields in the cube are in numerics like 734.504, but when we execute the report it is converted in to date format dd.mm.yyyy.
My issue how this conversion is working in the backend while executing the report.
Regards.
venkataConversion is happening because of the type you had selected for the KF while creating it.
Check the type of the Key figure?
While creating the KF you might have selected the Type as Date and Data type -DEC : Counter or amount field with comma and sign.
that's the reason why you are getting the output values displayed in dd.mm.yyyy format.
For amount field - create a KF with type "AMOUNT" and unit -0currency or specify the currency of that region.
regards
KP
Maybe you are looking for
-
End date the use of a certain subtemplate and call another in its place
Hi All, How can we refer to multiple subtemplates so as to end date the use of certain subtemplate say on Dec 31 2007 and start referring to another subtemplate in its place from Jan 1 2008?? Any pointers to the same will be extremely helpful. Thanks
-
Need to create an edit Page from a Multiselect List
I make one or more selections of values from a Multiselect List; I need to branch to another page in which I display all of the selected List items and two other columns (per item) that can be edited; i.e., this second page will look like one or more
-
Where are defined the keybindings for keyboard navigation on a JTree?
I guess in the JTree.java file but I can't find the line of that tells the JTree to expand a node when you press the + key.
-
FAQ: What is a Preset, or How do I get that same effect?
What are presets? Lightroom presets can be your most powerful ally in making your workflow travel at the speed of light. While most of the time "presets" means Develop Presets, these saved settings fall under the following categories: Auto Layout Pre
-
RFC_VMC_COMMUNICATION_ERROR Dump
Hi. When I want to calculate pricing in service order, the sistem get a RFC_VMC_COMMUNICATION_ERROR Dump, Anybody know, what is the problem ? thanks.