cancel
Showing results for 
Search instead for 
Did you mean: 

address in smartform

Former Member
0 Kudos

im printing address of consignee in smartforms using ADRNR field in ADRC table and it is printing address as

Company

Anil Freight carriers

xxxxxxxxxxx

xxxxxxxxxxx.

i dont want the 'Company' to appear in my output.How to delete it.Please help.

Thanks and Regards

k srinivas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1.Instead of using the address node , U can write a select and fetch the required field to display.

2.Diasplay using the Text element.

3.Using address node , u cannot modify the values which are displaying .

Thanks and Regards,

Reward If Helpful.

Answers (4)

Answers (4)

Former Member
0 Kudos

Use the function module ADDRESS_INTO_PRINTFORM

it returns an internal table ADDRESS_PRINTFORM_TABLE

Here each line has a type

There will be one for Company print this internal table without printing the Line which

has the line type Company

here are the line types

A = Title

P = Mandatory empty line 1

F = Function of the contact person in the company

4 = Name 4

3 = Name 3

H = Different city

R = Region

T = District

L = Name of country

C = Postal code

T = District

7 = Street 3 (field STR_SUPPL2)

I = Street 5 (field LOCATION)

8 = Street 4 (field STR_SUPPL3)

6 = Street 2 (field STR_SUPPL1)

L = Country

C = Postal code

2 = Name 2

B = PO Box

S = Street or PO Box

5 = c/o name

N = Name (and title) of a person

D = Department

O = City

Former Member
0 Kudos

Hi,

In General attributes of address,

Thr is one option called

'Number of lines to be used' = '10'

which is 10 by default,

Please reduce it to 9 or 8 or 7 and so on........

and test for each .

Reward if useful

Former Member
0 Kudos

Hi,

As said By Shiva U have to Use Internal Table and Work Area of Type ADRC table.

Select The required fields from ADRC based on ADRNR and Display it using Work Area Variable

Like:

&WA_ADRC-NAME1&

&WA_ADRC-NAME2&

Regards

Sandipan

Former Member
0 Kudos

Hi srinivas,

You can print by using select query .....

select single * from adrc

into wa_adrc

where addr_number = v_adrnr.

place these in text ....

wa_adrc--<fieldname>

wa_adrc--<fieldname>

wa_adrc--<fieldname>

wa_adrc--<fieldname>

wa_adrc--<fieldname>

Regards,

Sreenivasa sarma K