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: 

How to align sap script..?

Former Member
0 Kudos

Hi experts...

While iam trying to modify VF03(Invoice)sap script iam getting problem.If i open one billing document it is showing corrently...if i open another, the alignment is getting distrubed, because of some discriptions are having more length.Where to fix this problem?

I have adjusted in the main windiow but no use.Do i need to change in Internal table(if any)?

Kaki

7 REPLIES 7

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You will need to change the tab setting of the paragraph format. Move the tab to the right of the description a little further right.

Regards,

Rich Heilman

Vinod_Chandran
Active Contributor
0 Kudos

Hi,

You can use the tab which can be defined in the paragraph. For example 10CH, 15CH, 22CH etc

Or check what can be the maximum available length for that field to display in the SAPScript and then use the offset option get rid of mis allignment.

E.g. &MAKT-MAKTX+0(20)&

Cheers

Vinod

Former Member
0 Kudos

hi,

if u r having a problem in printing a currency field or quantity field, try using Condense option for

eg: &v_netpr(C)&.

Vamshi

former_member221770
Contributor
0 Kudos

Kaki,

Rich is right. You need to define your Paragraph Formats properly. From SE71, go to the Paragraph Formats. There should be a button toward the bottom right of the screen called "Tabs". Here is where you define your tab settings (ie your 'columns').

Within your SAPscript editor use your Paragraph Format, and to use a 'tab', you need to enter ',,'.

eg:

Paragraph Format is Z1 with tabs at 10CH, 20CH and 30CH

Z1 &MARA-MATNR&,,&MARA-MTART&,,&MARA-BISMT&,,&MARA-MAKTX&

this is the same as saying:


WRITE:/ MARA-MATNR.
WRITE:  AT 10 MARA-MTART,
        AT 20 MARA-BISMT,
        AT 30 MARA-MAKTX.

Hope this helps.

Cheers,

Pat.

0 Kudos

Patrick,

In our SAP system, your sets not use. We use Unicode system, and logon with ZF - Chinese Traditional.

In PO item's short text I entry some chinese chars, others entry some english chars, but in the form can't align.

For example, the short text from first position, and end the 80 position, behind it is the delivery date, the date from 89 position.

in the paragraph formats, I set:

Paragraph format Z1, the tab at 89CH and left. in the editor is

Z1 &wa_ekpo-txz01(80)&,,&wa_ekpo-eindt&

but list as follow:

Short Text Delivery

Éú®aÉú®a 2005/08/12

0.8mm늽âƬ 2005/10/31

6182 ëŠÆ÷ßBµ××ù³ÉÆ·ßBÒÑÑb 2005/11/21

Can you help me?

0 Kudos

Hi Mingkang,

Unfortunately I do not have any experience working in non English systems. It sounds like your problem could be due to Chinese Traditional language is a 2 byte language. Not sure how to handle this. But I'm sure there is someone on SDN who has encountered this issue before.

Would recommend you start a new thread asking specifically about aligning 'ZF' language SApscripts.

Sorry I can't help you any further on this issue.

Pat.

0 Kudos

Thank u all for helpful answers...

Kaki