Application Development and Automation 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: 
Read only

SAPscript problem: my text is shorter than expected...

aris_hidalgo
Contributor
0 Likes
755

Hello experts,

I am currently modifying a sapcript program that prints cheques. Now, the text in the name field of a check

(the pay to the order of) is always shorter. for example, the complete text must be:

THE BOARD OF TRUSTEES OF PRIVATE EDUCATION RETIREMENT ANNUITY ASS'N.

But instead we get

THE BOARD OF TRUSTEES OF PRIVATE EDUCATION RETIREMENT.

We checked the code in the form and I pasted it below. I debugged it and it gets the complete text

but how come when we print it lacks some of the text?

<B>&NAME1&</><B> </>&NAME2&

Again, thank you guys and take care!

Message was edited by: viraylab

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
725

Hi Viraylab,

From you input I could figure out that you are using two variables to print your text.

Name1 = THE BOARD OF TRUSTEES OF PRIVATE EDUCATION RETIREMENT.

Name2 = ANNUITY ASS'N.

From the text Only the fist variable is printing.

What you can do is, concatenate both the variables in a single variable and display it.

Or check the length of the window u r dispalying cause if the window length is small it wont print.

<B>&NAME1&</><B> </>&NAME2& ---> it has to be changed to

<B>&NAME1&</><B>&NAME2&</> to print everything in bold.

Can you plz reply back what u r getting.

Regards,

Tushar

Hi Viraylab,

Don't use two variables to display the hardcoded text. It might cause some problem when you are trying to download it to RDI. You can solve this problem by concatenating both the hard coded text into one variable of lenght 100 and display it.

Regarding the width of the window, CH refers to "Characters", change that to CM which will be "Centimeters" and give the width of the window to the entire width of what you desire. Think this is the problem for your truncation of the text, coz it will display only 45 characters which you have mentioned. Change that, activate and display. You will be able to get the entire text.

Reply back if you have any changes.

Regards,

Tushar

Message was edited by: Tushar Marshall Dass

6 REPLIES 6
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
725

Hi Viray,

while printing u have given like this..

<B>&NAME1&</><B> </>&NAME2&

change this to

<b><B>&NAME1&</><B>&NAME2&</></b>

Cheers,

Simha.

Read only

Former Member
0 Likes
725

hi

Check the size of the window. I think in your case the window size is less and thus cannot accumulate the complete text.

Regards,

Richa

Read only

Former Member
0 Likes
726

Hi Viraylab,

From you input I could figure out that you are using two variables to print your text.

Name1 = THE BOARD OF TRUSTEES OF PRIVATE EDUCATION RETIREMENT.

Name2 = ANNUITY ASS'N.

From the text Only the fist variable is printing.

What you can do is, concatenate both the variables in a single variable and display it.

Or check the length of the window u r dispalying cause if the window length is small it wont print.

<B>&NAME1&</><B> </>&NAME2& ---> it has to be changed to

<B>&NAME1&</><B>&NAME2&</> to print everything in bold.

Can you plz reply back what u r getting.

Regards,

Tushar

Read only

0 Likes
725

Hi guys,

Name1 = THE BOARD OF TRUSTEES OF PRIVATE

Name2 = EDUCATION RETIREMENT ANNUITY ASS'N

I checked and they both have 40 characters so all in all 80 chars combined. I checked the width of the window w/c is CHECKADD and its width is 45.67 CH. Is this the reason?

Thanks again guys!

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
725

Hi,

Just increase the window size in which u are printing the text.

or try to print the second text in the below line to test whether it contains data or not??

If it prints the data, then the problem is with the window width...

Get back if not solved..

Cheers,

SImha.

Read only

0 Likes
725

Hi Viraylab,

Don't use two variables to display the hardcoded text. It might cause some problem when you are trying to download it to RDI. You can solve this problem by concatenating both the hard coded text into one variable of lenght 100 and display it.

Regarding the width of the window, CH refers to "Characters", change that to CM which will be "Centimeters" and give the width of the window to the entire width of what you desire. Think this is the problem for your truncation of the text, coz it will display only 45 characters which you have mentioned. Change that, activate and display. You will be able to get the entire text.

Reply back if you have any changes.

Regards,

Tushar

Message was edited by: Tushar Marshall Dass