on 01-11-2007 2:09 PM
hello abapers,
could any one tell me the procedure how to change the date format in smartforms.thanks in advance...
regards,
santosh
Hi
You need to write code in program lines , it will totally depend on which format u want.
you need to fetch the same format from sy-datum and conctenate into one variable.
Please try u will get any format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use SET COUNTRY-KEY keyword. I think it will work.
Regards,
Aravind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create program lines by clicking the node.
Use concatenate statement to change the format.Give the date variable as input parameter and the modified date variable as export parameter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CONCATENATE sy-datum+6(2) text-035
sy-datum+4(2) text-035
sy-datum(4) INTO wa.
this may work...
U can write the coding in the initalization...........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
You can write the code fo this one in the Flow logic --> program lines, In the Program line, just write this lines.
Lets say your date field id G_date.
Data: L_date type sy-datum.
Data: C_date(10) type C.
Move G_Date to L_Date.
Write L_date to C_Date.
So, here the C_Date field will have the user format date.
Regards
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In most print programs there is a function module called as below.
By setting the export parameter PI_COUNTRY one can set the form to print all dates according to country without any further coding.
CALL FUNCTION 'WFMC_PREPARE_SMART_FORM'
EXPORTING
PI_NAST = NAST
PI_COUNTRY = IS_DLV-LAND
PI_ADDR_KEY = IS_ADDR_KEY
PI_REPID = LF_REPID
PI_SCREEN = XSCREEN
IMPORTING
PE_RETURNCODE = CF_RETCODE
PE_ITCPO = LS_ITCPO
PE_DEVICE = LF_DEVICE
PE_RECIPIENT = CS_RECIPIENT
PE_SENDER = CS_SENDER.
If your problem is solved please set the question as answered.
Kind Regards,
Marius
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.