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

Script: Printing Problem

Former Member
0 Likes
562

Hi Gurus,

I have problem in the script.

So here when the description is long its occupying the quality line and the quality is taking the sold unit...etc.

so here i want like if the description is long the quality should print in the next line.

for example .

materail no Description quality sold

100 this description is long 123 Crt

its printing like this but i want like this

materail no Description quality sold

100 this description is long

123 CRT

so how to solve this problem gurus plz help me wat to do.

Correct answers will be fully rewarded.

plz send me the coding part gurus.

Thanks & Regards

Sunita.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
543

Not sure whether u r using the tab spaces between the field contents or not .

In ur character format ..u will know that material is 18 in length , 35 for description and 13 for quantity ..

for this fileds set tab spaces between the fields with appropriate length .

U need to do this in tab spaces .

it-matnr,,it_maktx,,it-menge,,

for ,,{each tab space set the length .

once u do this for two fields u will know to fix this up.

Set the tab spaces .

Vijay

5 REPLIES 5
Read only

Former Member
0 Likes
543

One of the curde method is to detemine the length of the description and accordingly print the way you want in different text element.

Read only

Former Member
0 Likes
543

Hi,

Use a separate small window for description printing.

Regards,

Rama Chary.Pammi

Read only

Former Member
0 Likes
544

Not sure whether u r using the tab spaces between the field contents or not .

In ur character format ..u will know that material is 18 in length , 35 for description and 13 for quantity ..

for this fileds set tab spaces between the fields with appropriate length .

U need to do this in tab spaces .

it-matnr,,it_maktx,,it-menge,,

for ,,{each tab space set the length .

once u do this for two fields u will know to fix this up.

Set the tab spaces .

Vijay

Read only

0 Likes
543

Hi vijay,

i used tabs .

but i want like this

Material----Description---Quality-----Amount

100-------this text should come like this and

-


123----


98765.

this is hw i want it to look.

so here i think we should use charecter counter but i dont know hw to use it.

so plz help me in this.

Thanks&Regards

Sunita.

Read only

0 Likes
543

Just use this logic.

data : v_mat(18) type c,

v_def(18) type c.

v_def = '----


'.

v_mat = '100'.

concatenate v_mat v_Def into v_mat.

Now when v_mat in script will give u the result

100----


I hope this is ur final result .

Vijay.