12-21-2007 4:39 AM
Hi ABAPers,
According to my User's requirement i developed one script which prints 4 cheques and now his requirement was the word "DUMMY" should be printed on 2nd, 3rd & 4th Cheques.
Can any one suggest me how can we print this word on 2nd, 3rd & 4th Cheques.
Thanks & Regards,
Ramana Prasad.
12-21-2007 6:10 AM
inside printing loop you can keep one incrementing veriable
like
data count , temp type i.
data variable(5) type c.
temp = 1.
check if count = temp.
variable = ' '.
else
variable = 'DUMMY'.
temp = temp + 4.
endif.
Print 'Variable' on cheque.
Hope this may help u.
prasad.
12-21-2007 4:43 AM
12-21-2007 4:54 AM
Hi Vijay,
Thanks For your reply.
Actually my requirement was when i print checks it was printing 4 checks. i want to print word "Dummy" on 2nd, 3rd & 4th Checks. Can u suggest logic for printing that word.
My Script Contains 5 windows.
MAIN Main window
CHECK Check
CHECKADD Address in check
CHECKSPL Amount in words
TOTAL Sum total
Thanks & Regards,
Ramana.
12-21-2007 5:02 AM
Hi ramana,
You can do one thing call a driver program send a varaibale and in the driver create a loop that calls word DUMMY four times.Reward points if useful
Vijay
12-21-2007 5:03 AM
Hi Vijay,
Can u send me the code for that.
Thanks & Regards,
Ramana.
12-21-2007 5:44 AM
Hi ramana,
i need to search d code.i dont think me sending the code will help u out.Anyways please tell me in which table and what is this "DUMMY" placed.
With Regards
Vijay
12-21-2007 6:04 AM
inside printing loop you can keep one incrementing veriable
like
data count , temp type i.
data variable(5) type c.
temp = 1.
check if count = temp.
variable = ' '.
else
variable = 'DUMMY'.
temp = temp + 4.
endif.
Hope this may help u.
prasad.
12-21-2007 4:44 AM
Hi Prasad,
SAP Transaction Code: FB12 and F.64
SAP Program Name: SAPMF05M
Print Program: RFKORDOO or new program if this is not correct
Kindly Award Points If You Find The Reply Helpful.
Cheers,
Chaitanya.
12-21-2007 6:10 AM
inside printing loop you can keep one incrementing veriable
like
data count , temp type i.
data variable(5) type c.
temp = 1.
check if count = temp.
variable = ' '.
else
variable = 'DUMMY'.
temp = temp + 4.
endif.
Print 'Variable' on cheque.
Hope this may help u.
prasad.
12-21-2007 7:21 AM
Hai Ramana,
Try like this.
data: prnt_dummy type char10.
If your cheque sequence numbers are stored in an internal table cheq_seq. Then check condition:
loop at cheque_seq.
If cheque_seq-no ca '234'.
*prnt_dummy = 'DUMMY'.
******Call Write form of you script.****
endif.
endloop.
12-21-2007 7:26 AM
Hi,
Inside the Script, in the corresponding window,
put this condition.
if &page& > 1.
'DUMMY'
endif.