2012 Jun 18 2:06 PM
Hi experts,
I have a Printing cheque program(user defined). In this i have to print the output in CHEQUE. I want print system-date in box format like
1 | 8 | 0 | 6 | 2 | 0 | 1 | 2 |
D D M M Y Y Y Y
How can i do this . Please suggest me any help.
Thanks and Regards,
Linganathan.K
2012 Jun 18 2:08 PM
The box is already there in cheque. I want place the system date like that. Currently Its printing like 18.06.2012
Thanks in Advance,
Linganathan.K
2012 Jun 18 2:45 PM
Hi,
you have to split the date, as below.
&date+0(1)& &date+1(2)& &date+3(4) &date+4(5)& &date+6(7) &date+7(8)& &date+8(9)& &date+9(10)&
then you wil get 1 8 0 6 2 0 1 2.
You can increase the spaces until you can get the perfect alignment.
Thanks,
Hari
2012 Jun 18 3:00 PM
&date+0(1)& &date+1(2)& &date+3(4) &date+4(5)& &date+6(7) &date+7(8)& &date+8(9)& ??
that won't work...sy-datum or type d or dats is actually stored ccyymmdd, so
&date+6(1)& &date+7(1)& &date+4(1)& &date+5(1)& &date+0(1)& &date+1(1)& &date+2(1)& &date+3(1)&
But I would do as:
&date+6(1)&,,&date+7(1)&,,&date+4(1)&,,&date+5(1)&,,&date+0(1)&,,date+1(1)&,,&date+2(1)&,,&date+3(1)&
with the tabs (,,) set precisely where needed into a paragraph format specifically for that line containing the date box.
2012 Jun 18 3:31 PM
Hi Correction..
&date+0(1)& &date+1(1)& &date+3(1) &date+4(1)& &date+6(1) &date+7(1)& &date+8(1)& &date+9(1)&
You can increase the spaces until you can get the perfect alignment.
I think this should resolve your Issue.
Hari
2012 Jun 19 6:01 AM
Hi Dear Break Point,
Actually i am using smartforms, That is currently in my program i mentioned like &date&
Hints: date = sy-datum.( This is defined in smartforms program lines)
Now how can i mention in my smartforms.
Thanks and Regards,
Linganathan.K
2012 Jun 19 6:02 AM
Hi dear Harikrishna,
Actually i am using smartforms, That is currently in my program i mentioned like &date&
Hints: date = sy-datum.( This is defined in smartforms program lines)
Now how can i mention in my smartforms.
Thanks and Regards,
Linganathan.K
2012 Jun 19 8:25 AM
Hi ,
Although your using smart forms, still script functionality is possible.
When you click on the corresponding window, in the general attributes on the left top, on edit option is there, click on it and provide the logic as above.
hari
2012 Jun 19 8:37 AM
Hi Linganathan,
Create a Template in the smartforms with 8 cells(If this is a preprinted form, adjust the position of the template accordingly). Create a text for each cell.
Print the each digit of the date in the corresponding cell text.
For eg,
Cell(1,1) -> &date+6(1)&
Cell(1,2) -> &date+7(1)&
Cell(1,3) -> &date+4(1)& ...... and so on...
Give centre alignment for each text and put borders for the template.
By using template you can overcome the alignment headache by giving spaces.
Thanks,
Manikandan JN.
2012 Jun 19 2:20 PM
Hi, use the function module 'CONVERT_DATE_TO_EXTERNAL'. This function module converts the internal date format to external.
Ex: Date format internal for Ex: 20120619
Date format external : 19.06.2012.