cancel
Showing results for 
Search instead for 
Did you mean: 

Hi All, how to display address

Former Member
0 Kudos

In SPRO address is maintained as

ST. JUDE MEDICAL S.C., INC.

807 LAS CIMAS PARKWAY

SUITE 400

Austin, TX 78746

But when i am passing address number in address node in form it is coming as

ST. JUDE MEDICAL S.C., INC

SUITE 400 807 LAS CIMAS PARKWAY

Austin, TX 78746

I am not using priority of lines.

Please help its urgent!!!

Gaurav Mittal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you want to format the address, then you should rather use the function module READ_TEXT. The address will be stored in an internal table. Then in the smartforms loop at the internal table to display the address.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = "pass text id here

language = nast-spras "language

name = "text name

object = "object

TABLES

lines = i_cust_text "internal table

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

IF sy-subrc EQ 0.

"do nothing

ENDIF.

Regards,

Zaheed

former_member196280
Active Contributor
0 Kudos

If you want to print address in your own format don't use as below i

/: ADDRESS

/: ENDADDRESS

Use if like this....

&NAME&

&HOUSENUMBER&

&STREET&

&STATE&

&COUNTRY&

it will solve your problem.

Regards,

SaiRam

Former Member
0 Kudos

i am using smartforms....not scripts...

former_member196280
Active Contributor
0 Kudos

create program line and get address from table ADRC and display using templet in your required format.

Regards,

SaiRam