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: 

Alignment problem

Former Member
0 Kudos

Hello Experts,

I am working on scripts, i am getting all fields value.

i have problem in alignment

i am not able to drawn table.

is there any standard alignment which can help me creating a script.

can any one help me this scenario.

Regards

Prathmesh Rane

44 REPLIES 44

former_member555112
Active Contributor
0 Kudos

Hi Prathamesh,

You need to do the alignment by making use of the tabs in the Paragraph format.

Numbers should be right aligned and Texts as Left Aligned.

Regards,

Ankur Parab

0 Kudos

Hi,

can you elaborate on the tabs it has 1 to 5 numbers

i am confused with what to assign in right aligned and what to asign in left asigned?

I ll be thankful to you.

Regards

Prathmesh Rane.

0 Kudos

Hi,

I do not have details of what tab spacing you have given so cannot explain.

But from the screenshot which i see, I notice that you have used tabs as well as blank spaces.

For example, between TXZ01 and MENGE you have not used tabs but instead put a space in between.

Also between EBELP and TXZ01 you have used tabs as well as blank spaces.

So you need to make use of tabs only i.e ",,"

Check your paragraph format IT. You will know the details of the tab postions and their spacing.

Regards,

Ankur Parab

0 Kudos

Hi

here's the screenshot of TABS as

The screen shot for Text editor is already i have posted in above reply.

can you check and tell me Is my tabs spacing correct or not?

and i wanted to reduce the size of Item Description.

help?

I will be thankful to you.

Regards

Prathmesh

0 Kudos

condense fields like  &wa_final-menge(C)&, &wa_final-netpr(C)&,&wa_final-total(C)& . and remove the space between tabs.  write like ,,,,

0 Kudos

Hello

I am getting this output as

How to correct .Can you check .

I will be thankful to you.

Regards

Prathmesh

0 Kudos

Give the command in paragraph '/:'  instead of *before box.

0 Kudos

Hello

Yes i have given the command also.

But i am getting a small box only .

Actually i have given same measurements to both box.

are they overlapping each other.

help.

Regards

Prathmesh

0 Kudos

it is better to take a scale and measure xpos and ypos and length and height in mm or cm. let me know isf any issue,

You have drawn small box.

0 Kudos

hello

I will get back to you soon.

But other problem is My field Item Description length is bigger due to which i am getting not proper output. values are coming but not in aligned format.

I don't want to reduce the length but wanted to adjust in the box.

help.

Regards

Prathmesh

0 Kudos

dont keep any space between two  fields. dont use two tabs after &wa_final-EBELP&
create 5 tabs  using mm or cm if possible and use after each field of header and item. dont keep any space.

0 Kudos

Hello

Thanks for immediate reply .

i will create tabs as you told me in tabs format in script.

but how to use that 5 tabs in script text editor.

Regards

Prathmesh

0 Kudos

,, this is tab which you are using in script. use this tab after each field. it means from where you are starting the column, create tabs such way it willl start from that position.

&wa_final-ebelp(C)&,, &wa_final-txz01(C)&,,&wa_final-menge(C)&,, &wa_final-netpr(C)&,,&wa_final-total(C)&,,

0 Kudos

Hello

again thanks for immediate reply .

I am getting to use tabs in script also.

How to take measurements for Box.

and will it be some range specific or it will be extended ones.

Little confused.

help.

Regards

Prathmesh

0 Kudos


Suppose we are using  A4 paper , take approximately from where you want to draw BOX , measure it by scale or check measurement on your sample form if any provided by client.

0 Kudos

hello

Actually I am working on script for the first time.that's why i am facing difficulties.

I was hoping if you can share screenshots or demos to me about how to create boxes and measurements .

i was concerned that is  our measurements are restricted for PO range or i will enter  any range and data will be adjusted in Box.

can you share some screen shots.

i have already posted my output.

help.

Regards

Prathmesh

0 Kudos

Hi,

Please refer link I dont have access to sap right now.

0 Kudos

Hello

Thanks for the reply.

I will do it at my end and get back to you soon .

Regards

Prathmesh

0 Kudos

Hello

I have used 5 TABS but its not effecting in the output.

output is coming as-

And why there is no space between Header table and Item table.

Help.

Regards

Prathmesh

0 Kudos

Hello

I have used 5 TABS but its not effecting in the output.

output is coming as-

And why there is no space between Header table and Item table.

Help.

Regards

Prathmesh

0 Kudos

HI ,

use condense  with each variable you use .

eg .

&wa_final-ebelp(C)& .

also check Your TAB spaces for each column .

Former Member
0 Kudos

Hi,

Use fields with the field length

&WA_FINAL-EBELP(5)&

0 Kudos

Hi

My requirement is to print header data and item data in table form plus

whenever i enter the PO range,  it should automatically extended .

screenshot of text editor as -

Can you check and help?

I will be thankful to you.

Regards

Prathmesh

0 Kudos

Hi,

If you are passing the field length it will be align properly. Why you can't set the field length?

0 Kudos

Hello

I will assign field length to fields .

Other problem is i have to put my data to Box .

Help.

Regards

Prathmesh

0 Kudos

Hello

actually i don't wanted to cut field size , but i wanted to adjust all the fields in the Box.

help.

Regards

Prathmesh

0 Kudos

Hello

I have used 5 TABS but its not effecting in the output.

output is coming as-

And why there is no space between Header table and Item table.

Help.

Regards

Prathmesh

0 Kudos

plzx share your tab details and BOX command details.

0 Kudos

Hello

Here's the text editor and Tabs screen shots as-

In Tabs, all re left aligned.

help.

Regards

Prathmesh

0 Kudos

give New line / in paragraph for Header and details data spacing.

Please give like below  next to  IT paragraph

&wa_final-ebelp(C)&,, &wa_final-txz01(C)&,,&wa_final-menge(C)&,, &wa_final-netpr(C)&,,&wa_final-total(C)&,,

I mease after each field give one tab. and you are giving small space between two tabs, increase  size of each tab. Dont give any hard code space between fields.

0 Kudos

Hello

here's the screenshots after  changing as told by you.

I have used wa_ as told by you. and Tabs as

5

15

35

55

75

But there's no change at all.

Help.

Regards

Prathmesh

0 Kudos

Hi Prathmesh, I do not know why are you giveing space after tabs,,. Remove this space. dont give two tabs, increase size of tab one by one and see the change.  See the MEDRUCK sapscript.

0 Kudos

Hello

I will do the changes as told by you and come back to you .

Thanks

Regards

Prathmesh

0 Kudos

hello

That's correct what you have told yet so far.

But problem is complex .

I have Item description as field in Item table

when i enter PO range, some PO have short length of Item Desc and some have long , that's why output is not coming correct format.

I have used (C) concatenate also . But it doesn't effect.

help

Regards

Prathmesh

0 Kudos

in that case you can write description on next line.

0 Kudos

Hi

Its little complex. I have posted my text editor , output and tabs as well.

Can you check and confirm what all changes still i have to do .

I will be thankful to you.

Regards

Prathmesh

0 Kudos

Hi

you can see the difference from two output as below with different PO range as-

You can see the difference in Both .

Regards

Prathmesh

0 Kudos

Why there is last empty Box? look some issue with Box command. here ist look shifted downwards.

0 Kudos

Hi

First if you will look for the issue of  displaying data that will be better .

Box issue we can check later.

But i have to first resolve my display data issue .

you must have check my both Ranges .

I am confused  i am using Tabs also , (C) also then why its not effecting.

help.

Regards

Prathmesh