cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Allignment issues

Former Member
0 Kudos

Hi,

I have 2 work areas where i am prinitng the values in the smartforms.

wa_adrc-house_num1 and wa_adrc-street

Some time we dont maintain the house number and the street has to print in left extreme, But for me its prinitng after a space.

I used a if condtion - then it is printing twice.

Example:

My First Line is - Sold to - Ms. Reebok

My 2nd line is - - 120, Vintage Plazza - here 120 is my house numner and vintage plazza is my street.

Say i have not maintianed 120 in my dataase and its blank.

it is prining like this

Ms. Reebok

Vintage Plazza

Its not prinitnf under the first charater.

When i used If then it is prinitng twice -

/:   IF NOT &WA_ADRC-HOUSE_NUM1& IS INITIAL.
B6 ,,,,  &wa_adrc-house_num1& &wa_adrc-street&
/:  ELSE.
B6 ,,,,  &wa_adrc-street&
/: ENDIF.

Pls help me -

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Senthil,

Try "concatenation".

Concatenate both the values.

eg.

Concatenate &wa_adrc-house_num1& &wa_adrc-street& into ADD separated by space.

here Add is another variable to hold both the values.

and then print ADD. though the first value will be blank it will not leave any space.

I hope this will work for you.

Former Member
0 Kudos

I had this piece of code in one of my TDS smartform.

&IT_ADRC-NAME1& &IT_ADRC-NAME2&
          &IT_ADRC-STREET&
&IT_ADRC-CITY1& &IT_LFA1-PSTLZ&

I checked where city is blank and my postal code prints perfectly in its place. You can try aligning the variables this way:

&IT_ADRC-NAME1& &IT_ADRC-NAME2&          "Try aligning this way
          &IT_ADRC-STREET&
&IT_ADRC-CITY1& &IT_LFA1-PSTLZ&

It Prints as:

 Ms. Interglobe Solutions pvt ltd
            312,Avenue Street
               122001

Edited by: K.Manas on Dec 30, 2010 9:18 AM

Former Member
0 Kudos

This will match only your requirement.

I have mappend both the value in same line - and if my first work area has no value - the second value has to print from very first line.

Like This -

Innovative Solutions
12 Vintage plazza

Not like - in second line my house number is not there - but there is a space.

The V should print under I (of the first line)

Innovative Solutions
 Vintage plazza

This is my requirement

awin_prabhu
Active Contributor
0 Kudos

Hi senthil,

Make it simple. Before printing the Text element '  Vintage plazza', add a code using Program Lines and CONDENSE it.


CONDENSE wa_adrc-street.
*Now print it.