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: 

Cheque printing problem

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

10 REPLIES 10

Former Member
0 Kudos

hi ramana..

Can u explain me further?

Vijay

0 Kudos

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.

0 Kudos

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

0 Kudos

Hi Vijay,

Can u send me the code for that.

Thanks & Regards,

Ramana.

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Inside the Script, in the corresponding window,

put this condition.

if &page& > 1.

'DUMMY'

endif.