cancel
Showing results for 
Search instead for 
Did you mean: 

Street2 in Address

Former Member
0 Kudos

Hi,

I have requirement where I need to display Name2 and Street2 to be printed on the Check address if it is present. There are some restrictions 1) There is space for max 5 lines and width 38 chars only. I should not print the title associated with ADRNR.

In the script the code goes like this...

ADDRESS LINES 5 PRIORITY 3

NAME &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME4&

STREET &REGUH-ZSTRA&

POBOX &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&

POSTCODE &REGUH-ZPSTL&

REGION &REGUH-ZREGI&

CITY &REGUH-ZORT1+0(20)&

COUNTRY &REGUH-ZLAND&

FROMCOUNTRY 'US'

ENDADDRESS

Where do I need to place NAME2 and STREET2 ....i already have values in these variables.

Thanks,

Preetham S

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Spre

We had the same problem but couldn't find a proper solution.

There are fields available in the ADDRESS command of the script which you may not need. You could try putting the STREET2 there.

Pushpraj

Former Member
0 Kudos

Hi ,

Instead of using ADDRESS command , u can selct the field u want from them ADRC table ...and u can print them, conditionally as u want ....

hope it helps ,....

Former Member
0 Kudos

Hi,

I am intending to do same. But this will become tedious same form is being used to print checks for various countries and I have to maually write the address for each country depending upon the country's postal format. I was looking at more smarter way to do it.

Thanks,

Preetham S

Former Member
0 Kudos

Please look at FM ADDRESS_INTO_PRINTFORM. FM Documentation is detailed enough.

Former Member
0 Kudos

Hi

Try like This

ADDRESS LINES 5 PRIORITY 3
NAME &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME4&
STREET &REGUH-ZSTRA&, &STREET2&    " you can add STREET2 here
POBOX &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&
POSTCODE &REGUH-ZPSTL&
REGION &REGUH-ZREGI&
CITY &REGUH-ZORT1+0(20)&
COUNTRY &REGUH-ZLAND&
FROMCOUNTRY 'US'
ENDADDRESS

Ranga

Former Member
0 Kudos

Hi,

I tried tat as well. I get a syntax error. The STREER command will only take one parameter.

Thanks,

Preetham S