Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Printing cheque

former_member242166
Participant
0 Kudos

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

9 REPLIES 9

former_member242166
Participant
0 Kudos

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

0 Kudos

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

0 Kudos

&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.

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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.

former_member200345
Contributor
0 Kudos

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.