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: 

hi all

Former Member
0 Kudos

Hi,

Iam sisplaying doc no d.date currency and amount fields in script. My problem is

1) if doc no is exact sixze it diplaying correct but if document no is lengthy that field value is displaying upto second field position and second field is diplaying in third field position and so on...

doc doc currency amount

no date

1) 111 20.01.2008 inr 20,0000

2) changing123456719.01.2008 inr 30,000

this is my problem.

Thanks in advance.

please help me to solve this problem it is very urgent for me.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

to aviod this u need to use tab positions in scripts.

You can set the tabs in Paragraph format. Create a paragraph format in that choose tabs button. Give the number for each tab.

In the text node call them with 2 commas ( ,, ).

For example: for Paragraph format PA

PA : 1st tab -->. 2,00 left

2nd tabl --> 4,00

then in the text node

pa ,,&mara-matnr&,,&mara-ersda&.

Output:

12345 21.07.2007

! !

2spaces 4 spaces

Madhavi

6 REPLIES 6

Former Member
0 Kudos

to aviod this u need to use tab positions in scripts.

You can set the tabs in Paragraph format. Create a paragraph format in that choose tabs button. Give the number for each tab.

In the text node call them with 2 commas ( ,, ).

For example: for Paragraph format PA

PA : 1st tab -->. 2,00 left

2nd tabl --> 4,00

then in the text node

pa ,,&mara-matnr&,,&mara-ersda&.

Output:

12345 21.07.2007

! !

2spaces 4 spaces

Madhavi

0 Kudos

hi,

Already teb positions are set even though iam not getting proper results. (actually i copied standard script F130_confirm_01), those paragraph settings iam using. please help me if u have any other idea.

0 Kudos

Hi Ravi,

Its very simple.

First count the length of the document number and rest of the fields.

say, you have 3 fields doc no, date and time.

create a paragraph format.

in the text element where you print the fields...give like this:

P1 &doc_no(16)&,,&doc_date(10)&,,&doc_time(8)&

where ,, is the tab space. while creating the paragraph fomat P1 give first, second and third spaces based on the length of the window left out after diplaying everythg.

say 34 CH (1610😎 is the max length you will print. and the window width is 40 CH, so you are left out with 6 CH more so, you each tab space should be 2CH.

if you declare everythg in the form of CH(characters) you will never get any alignment issues in scripts.

Reward points if useful.

Regards,

Arul.

0 Kudos

Thank u so much friend, i solved my problem and awarded points for u.

Former Member
0 Kudos

use...write at...

example,

write: docno, 40 docdate, 50 amount.

0 Kudos

Ramu,

Goto particular table and get the length of the fields add give full length to display.

Ex: docno length in table is 20 chars

docdate length is 10

amount length 50.

WRITE 😕 0(1) docno , 22(10) docdate , 33(50) amount.

means do calculation like below.

doc No : 1+20 = 21

docdate 22+10 = 32

amount 33+50 = 83

Pls. reward if useful...