cancel
Showing results for 
Search instead for 
Did you mean: 

hi

Former Member
0 Kudos

hey plz help me out with this

i have to print material decription in my form which is if 40 char but i dnt want to print it in one line.it should be split in two lines. as if it comes in one line then it overlaps with the thing i'm printing after it.how to do that?

points will be definitely rewarded

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

Split the decription in two parts using offset.

Reward if useful

Richa

Former Member
0 Kudos

Hey could please explain how to use offset with an Example??

That would be very helpful

Former Member
0 Kudos

hi

split maktx-material description into two parts

of 20 char each ie. l_maktx1 and l_maktx2

then use the following code

l_maktx1 = l_maktx+0(20).

l_maktx2 = l_maktx+20(20).

Try this

Reward if useful

Thanks

Richa

Former Member
0 Kudos

Thanks a lot richa

Answers (2)

Answers (2)

former_member195383
Active Contributor
0 Kudos

if u are passing the material description from printprogram to the smartform, then split it in the following way...

suppose the the variable that u are using is

wf_desc.

insert a code line in the smartform..

and write..

data : wf_len type i.

data : wf_desc1 type string.

data : wf_desc2 type string.

wf_len = strlen(wf_desc).

if wf_len > 40.

wf_desc1 = wf_desc+0(40).

wf_desc2 = wf_des+40.

then use those two variables(wf_desc1, wf_desc2) now for printing....

hope it works...

Reward if useful...

Regards

Rudra

Former Member
0 Kudos

You would have to get half of the word on your next line. Try this as a reference

&SPELL-WORD0(60)& This will print the words first 60 characters in the first line, in the next command you could write &SPELL-WORD61(40). This is just an example. You would have to check the total length.

this would work for sure.

Thanks

Nayan