cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform address next line problem when using one string

Former Member
0 Kudos

Hi

i,ll use one string to print address ( with split ). ....so when anyone field is blank ,next field append first one .....

now problem is i want city & postcode on separate line but it append to address .......when i use separate string it allows space when anyone field is blank.

thanks in advance....

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Use of Function module "ADDRESS_INTO_PRINTFORM" would help in your case. as, the Function module ADDRESS_INTO_PRINTFORM formats an address for printing. In case of any blank value..say the city is Blank, it formats the address accordingly such that the blank is not displayed.

Check it out..I am sure it would help you!

Cheers,

Varna

Former Member
0 Kudos

Hi,

Use &field(I)& to display all the fields and make sure that the city node is with 'new line' followed by the postal code node with 'Append Directly'.

Regards,

Ram

Former Member
0 Kudos

Hi

IF u have already used SPLIT and CONCATENATE and try to use

SHIFT lv_vtext LEFT DELETING LEADING ' '.

and try

surya

former_member156446
Active Contributor
0 Kudos

if you can use a sap standard address window, SAP would take care of most of the stuff, and it would the work of the business to maintain all the address as per the format...