on 08-12-2011 5:35 AM
Hi ,
All The ABAP Gurus,
I am creating SAP Script for Printing Check . In that I have to write date in Boxes in DDMMYYYY format. I have got date for cheques suppose 28.03.2011.For that I have drawn 8 boxes . But unable to write date in that. In first box 2 should come in second box 8 should come. In third box 0 should come In fourth box 3 should come and so on.
Kindly suggest how to achieve it.
Thanks In Advance.
Regards,
Bharti Jain
Thanks ,
This is the code which I have modified below:
T3 ®UH-ZALDT&
/: BOX XPOS '0' CM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '5' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '10' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '15' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '20' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '25' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '30' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '35' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: ®UH-ZALDT(1)&
/: ®UH-ZALDT+1(1)&
/: ®UH-ZALDT+2(1)&
/: ®UH-ZALDT+3(1)&
/: ®UH-ZALDT+4(1)&
/: ®UH-ZALDT+5(1)&
/: ®UH-ZALDT+6(1)&
/: ®UH-ZALDT+7(1)&
I want to ask whether /: will come or *
I have added & in the end as syggested by you. But it is not coming.
Thanks In advance.
Regards,
Bharti Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
That date format I will correct. But the first issue is one one digit should come in one one box.
Regards,
Bharti Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
change your code like your missing '&' at the end of each symbol
* ®UH-ZALDT(1)& ®UH-ZALDT+1(1) ®UH-ZALDT+2(1)
* ®UH-ZALDT+3(1)& ®UH-ZALDT+4(1) ®UH-ZALDT+5(1)
* ®UH-ZALDT+6(1)& ®UH-ZALDT=7(1)
my code
* ®UH-ZALDT(1)& ®UH-ZALDT+1(1)& ®UH-ZALDT+2(1)&"your missing & here
* ®UH-ZALDT+3(1)& ®UH-ZALDT+4(1)& ®UH-ZALDT+5(1)&
* ®UH-ZALDT+6(1)& ®UH-ZALDT=7(1)&
Regards,
Dhina..
Edited by: Dhina DMD on Aug 12, 2011 7:27 AM
Hi Bharti,
Try using offset along with the variable or workarea which is storing the date. Also I would like to mention, SAP stores the date in yyyymmdd internally. So, try using the offset accordingly.
If '2' has to be displayed in the first box .... date+7(1)
Hope this is helpful.
Regards,
Sharin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for replying .
It is still not coming.Here is the code which I have written in editor.
T3 ®UH-ZALDT&
/: BOX XPOS '0' CM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '5' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '10' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '15' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '20' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '25' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '30' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
/: BOX XPOS '35' MM YPOS '0.5' CM WIDTH '0.4' CM HEIGHT '0.4' CM FRAME 8 TW
* ®UH-ZALDT(1)& ®UH-ZALDT1(1) ®UH-ZALDT2(1)
* ®UH-ZALDT3(1)& ®UH-ZALDT4(1) ®UH-ZALDT+5(1)
* ®UH-ZALDT+6(1)& ®UH-ZALDT=7(1)
Here date comes in ®UH-ZALDT for eg 28.03.2009. which I will Remove later. Kindly guide where I have done wrong
Thanks & Regards,
Bharti Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use offset in the symbol. you can write the code in sap script editor.
&DATE(1)& "for first character
&DATE+1(1)& "for 2nd character
&DATE+3(1)& "for 4th character
Regards,
Dhina..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.