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: 

Smartform Line Alignment

Former Member
0 Kudos

Hi All,

I'm working on Smartform PO. I'm facing Problem in line alignment.

i'm having line item and sunline item... line should come after the subline item but line is coming for every line item

Eg:

Item :

-


10

-


20

a

b

c

-


30

-


40

a

b

-


I need in this pattern

Regards

Suprith

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try like below code

&%TEXT1+0(9)& in first line

&%TEXT1+9(9)& in second line

Regards

Md.MahaboobKhan

4 REPLIES 4

Former Member
0 Kudos

Hi,

Try like below code

&%TEXT1+0(9)& in first line

&%TEXT1+9(9)& in second line

Regards

Md.MahaboobKhan

0 Kudos

Hi,

Can please describe how this code works

Former Member
0 Kudos

hi,

in your table goto data tab and in there, their is a section called sort area, uncheck already sorted.Now put, for ex: vbeln check sort ascending and check event on sort end. you will get a event subitem under your table in there create a text element and print line.

this should solve your problem.

thanks,

anupama.

Former Member
0 Kudos

Hi,

Can you try this,

Sort your internal table based on Line item.

Now use program lines, create a global variable called flag, and mark it as 'X' when ever the line item is changed. ( I mean for every new item ) Then try to print the lines. Other wise clear the flag.

I mean for the first time when the line item comes it will hold the mark as 'X'. This line item wil be printed, immediately clear this flag.

So, for the subitems line will not be printed. For every loop you need to chek the flag. If it is 'X' print the horizontal lines.

Regards,

Venkatesh