2010 Feb 25 7:20 AM
Data : billdate(10).
WRITE vbrk-fkdat TO billdate.
In a print program i'm using code as under
WRITE vbrk-fkdat TO billdate.
20100217 & final converts to 17.02.2010
But in case of export billing
WRITE vbrk-fkdat TO billdate.
20100217 & final converts to 20.10.0217
Can u pls suggest
Data : billdate(10).
WRITE vbrk-fkdat TO billdate.
In a print program i'm using code as under
WRITE vbrk-fkdat TO billdate.
20100217 & final converts to 17.02.2010
But in case of export billing
WRITE vbrk-fkdat TO billdate.
20100217 & final converts to 20.10.0217
Can u pls suggest
2010 Feb 25 10:22 AM
Hi,
Try this
WRITE vbrk-fkdat to field DD/MM/YYY.
Hope this helps.
Ernesto
2010 Feb 25 10:35 AM
What does it mean ?
Thanks
Venkat.OBut in case of export billing
2010 Feb 25 10:37 AM
when i am issuing the print for export billing the date conversion is not correct.
For same scenario on Development it is working fine.But on LIve system it thows error Specify a valid date
2010 Feb 25 11:00 AM
Hi,
data date type sy-datum.
data str type string.
your date values is date = 20100220. Assume
data : date type char2,
month type char2,
year type char4.
date = sy-datum.
year = date+0(4). " gives you 20
month = date+4(2). "gives you 02
date = date+6(2). Gives you 2010
now concatenate date '.' month '.' year into str.
Now the result willl be 20.02.2010
Hope this serves your purpse.Cheerz
Ram
2010 Feb 25 11:24 AM
<li>Put breakpoint at WRITE vbrk-fkdat TO billdate in case of export billing and check whether the value of vbrk-fkdat is 20100217 or not because WRITE statement does not behave differently in different places.
Thanks
Venkat .OBut in case of export billing
WRITE vbrk-fkdat TO billdate.
20100217 & final converts to 20.10.0217
2010 Feb 25 11:17 AM
Hi,
Use CONCATENATE STATEMENT.
CONCATENATE vbrk-fkdat+6(2) '.' vbrk-fkdat+4(2) '.' vbrk-fkdat+0(4) TO billdate.Regards,
Shankar.
2010 Feb 25 12:01 PM
Actaully in case of export the configuration was maintained as yyyymmdd instead of ddmmyyyy.
Thanks 4 ur answers.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |