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

SAP Script Issue

former_member445996
Participant
0 Likes
458

Hi All,

I am having an issue with SAPScript. I have header and detail windows. I need to align data under the headings but the problem is that if a field is missing data or shorter than the full length defined for that field, the next data field shifts left and the layout gets messed up.

My question is that how can we have the data fields written at specific positions on the page regardless of the lengths of the data in other fields.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
422

Hi,

you can use tabulators (represented as ,, in the non-graphical sapscript text editor) to get the data aligned.

TABs are defined with paragraph formats.

Define the same tabs for heading and item paragraphs, that should work.

I hope I got your question right.

Regards,

Clemens

3 REPLIES 3
Read only

Clemenss
Active Contributor
0 Likes
423

Hi,

you can use tabulators (represented as ,, in the non-graphical sapscript text editor) to get the data aligned.

TABs are defined with paragraph formats.

Define the same tabs for heading and item paragraphs, that should work.

I hope I got your question right.

Regards,

Clemens

Read only

Former Member
0 Likes
422

I agree with Clemens, TABs should do the trick -;)

You use them like this, after you have declare them...


,,MY_TAB-FIELD

Greetings,

Blag.

Read only

Former Member
0 Likes
422

Hi,

There are two ways to solve this issue.

First way is using tab setting to avoid such problems.

second way is, to give some length that means

&itab_matnr(IC10)& like this) it will also give some space if the particular variable is empty.

using any way of the above, you will get the answer.

Kindly reward points if it helps.

Thanks,

Neptune.M