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: 

Smart Forms

Former Member
0 Kudos

Hi,

I am having one problem in Smart forms - Address format

Now the Address is displayed like below

COMPANY NAME,

HOUSE NUMBER,

STREET NO,

SUPPL,

REGION,

COUNTRY.

I want to change this format into like below

COMPANY NAME,

HOUSE NUMBER,STREET NO,SUPPL,REGION,COUNTRY.

4 REPLIES 4

former_member223537
Active Contributor
0 Kudos

Hi,

If you have created different text elements, then instead of that create only a single text element and pass the values in a single line.

for eg.

&wa_tab-add& &wa_tab-house& &wa_tab-street&

But i dont think all these values can fit into one line unless you are printing on A3 size paper.

Best regards,

Prashant

Former Member
0 Kudos

Hi,

If you are using the ADDRESS object, you have a specific format in which the address can be displayed.

However, if you want your own format, you will have to create text elements and display the way you want. Looks like you want everything in the same line. So, you can put in a text element and put in all the fields in there next each other.

Regards,

Ravi

Note : Please mark all the helpful answers

Former Member
0 Kudos

hi

good

if you want to display the address in a particular format than you can use the address, here you can designed as you like-

1- go to smartforms

2- lefthand side click on page and window

3- select the main window node and select address from that

4- you can find out four kind of address

organization add

personal add

workplace add

determine dynamically

5-in output option tab give the address window size

6-in condition tab give the field nams

thanks

mrutyun

Former Member
0 Kudos

Hi,

If you are using ADDRESS NODE it is not possible. For this you have to call the function module "ADDRESS_INTO_PRINTFORM" (which the ADDRESS NODE internally uses to fetch the address). This will return the address in a table. The table type is as follows,

*Table type for print the address using the function *module ADDRESS_INTO_PRINTFORM.

TYPES: BEGIN OF TY_szadr_printform_table_line,

line_type TYPE ad_line_tp,

address_line LIKE adrs-line0,

END OF TY_szadr_printform_table_line.

TYPES: TY_szadr_printform_table TYPE standard table of ty_szadr_printform_table_line.

Now you can LOOP at this table and print the filed TDLINE. If you want the details in the same line then use APPEND DIRECTLY(A) option of the START option of the text element.

CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'

EXPORTING

address_type = '1'

address_number = gv_addnr_vendor

number_of_lines = '10'

street_has_priority = 'X'

IMPORTING

address_printform_table = it_address_printform_table.

IF sy-subrc <> 0.

MESSAGE e043(06).

  • Please first maintain vendor's address

ENDIF.

You can refer the function module documentatio for further details...

Thanks and Regards,

Bharat Kumar Reddy.V