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 using Script

Former Member
0 Kudos

Dear all,

My requirement is to print Cheque details in a Bank Cheque. I need to Print only the following fields

1. Vendor name

2. Amount in words

3. Amount

4. Invoice number

I found the standard script for Cheque is F110_PRENUM_CHCK. Now I have created new script with 4 new windows for the separate fields. I have copied the text for these fields from the standard script.

Now, my problems is When i am printing Cheque, the system throws following error.

In form ZF_FI_CHECK / window MAIN , the element 510-C (Text-C) is missing
In form ZF_FI_CHECK / window MAIN , the element 515 (Heading) is missing
In form ZF_FI_CHECK / window MAIN , the element 520 (Carry forward above) is missing
In form ZF_FI_CHECK / window MAIN , the element 525 (Line items) is missing
In form ZF_FI_CHECK / window MAIN , the element 530 (Total) is missing
Output of the relevant forms is defective

Now,

1. Should I need to make Z-copy of the Cheque program for this purpose?

Can anyone guide me the appropriate steps to develop scipt for the Cheque for this requirement?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

In this case we need to copy the standard sap-script in zsap-script and after that we are able to change as per company requirement. These check printing sap-script is associate with standard transaction and those having the all records, just we need to activate the fields in zsap-script. may be you get the some alignment problem.

Please appreciate if this is useful.

4 REPLIES 4

Former Member
0 Kudos

Dear all,

Is it possible and advisable to develop Smartforms for Cheque printing?

Can anyone throw me some clue to approach on this requirement?

Former Member
0 Kudos

Hello,

In this case we need to copy the standard sap-script in zsap-script and after that we are able to change as per company requirement. These check printing sap-script is associate with standard transaction and those having the all records, just we need to activate the fields in zsap-script. may be you get the some alignment problem.

Please appreciate if this is useful.

former_member585060
Active Contributor
0 Kudos

Hi,

Check wethere all the given Text Elements are present in the copied script, if not present add those text elements in main window.

For adding new variables, see whether the vendor name, invoice no values are coming from driver program or not by activating the sapscript debugger, if values are not coming, create a subroutine to get those values and also in that subroutine give the amount values in words using SPELL_AMOUNT or another FM available.

For subroutines in Sapscripts, search SCN you will find lot of threads

Regards

Bala Krishna

Former Member
0 Kudos

Hi Prem,

Copy the standard program to a z-program and in the text elements remove the standard and add as per

your requirement(Vendor, Invoice).

& For Amount in words use SPELL_AMOUNT as mention above or use HR_IN_CHG_INR_WRDS

and if it is foreign currency, then change after using HR_IN_CHG_INR_WRDS

REPLACE 'Rupees' WITH 'Dollar' into amt_in_words.

REPLACE 'Paise' WITH 'Cents' into amt_in_words.

Thanks & regards,

Dileep .C