cancel
Showing results for 
Search instead for 
Did you mean: 

How to have a line space in multiple line items?

Former Member
0 Kudos

Hi Experts,

The query is there are 4 columns for 1 line item. For example column3 is exceeding the space of cell which is been assigned, the continuation of text should go to next line in the same cell not to the other cells. Example is shown below. when i see the preview the material text is going to 1st column actually it should go to 3rd column.

And i need a line space between two line items.

Example is shown below

Matnr Invoice no Description Amount

100001 1212333 This is a test 100

mateial

100002 1212334 This is a test second 100

mateial

The output should be as the above format.

Please help me with this.

Thanks and Regards,

Abdur Rafique

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI

In case of the template give the position of the text to displayed under that particular text node in the output options tab

Line :

column :

For ex :

Text Node1 Line : 1 column : 1

Text Node2 Line : 1 column : 2

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

Do the below in print program

There is a function STRLEN to find the length of the field string. Hence for the text fields, check the string length before moving into the output table for display.

If the string length is greater than the output field length, Append the record to the output table and then take the rest of the string using the Offset and then append to the next record..

For eg:

String: This is a cat : w1

Output length in Display = 9

Loop at itab into w1.

If Strlen(f1) > 9

move w1(9) to f1

append f1

-- call the write form element to print the line...

---Now append a separate line for the remaining text

movew1+9(9) to f1

append f1

-- call the write form element to print the next line

endloop

Hope this helps

Regards

Shiva

Edited by: Shiva Kumar Tirumalasetty on Jul 19, 2009 7:22 PM