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

My Sapscript moves all my info

Former Member
0 Likes
769

Hello,

I have a SAPSCRIPT, in this sapscript I have a tex element, that I limit with 26 characters, here:  &My_Element(26)&

This is a Text, but when I print this text, does not work, this moves all my element if this text is short or long. Pleas see image below

(Description column move all my items to right)

4 REPLIES 4
Read only

arindam_m
Active Contributor
0 Likes
738

Hi,

The column item must be getting printed using text elements along with tab separating them. Define a Tabbed Paragraph Format. The  use it for printing your lines. The tabbed format helps you to specify both the Alignment and the exact position where you want the element to begin.

Say you define a format P1 then

P1 &itm&     &code&     &desc&.... and so on where the gap is a Tab and this takes the cursor exactly to the point where you want your next column to begin. The tab details are defined in Paragraph Format options under tabs. Should help you get the alignment right.

Similar examples can be found in you cheque Print Scripts or any script in you dev. environment that does a similar thing of line item printing. Check those for better understanding.

Cheers,

Arindam

Read only

Former Member
0 Likes
738

Thank you!!

I have aline my text elements with "TAB" but I have another problem, When I print a Long text Like image below, I cant see the other text elements.

Do you know why?

Read only

arindam_m
Active Contributor
0 Likes
738

Hi,

Check your next page they might be there the text is too long and so the rest which might be one line is printed along with the last line of the long text in 2nd column. That's what all I can make out as I dont have the script or the program else I would debug in se71

Cheers,

Arindam

Read only

Former Member
0 Likes
738

I have checked all my page but there isn't  nothing, dou you know why?