cancel
Showing results for 
Search instead for 
Did you mean: 

alignment of address

Former Member
0 Kudos

im developing excise invoice script

Code No.,,&J_1IREGSET-J_1IEXCCD&

Reg. No.,,&J_1IREGSET-J_1IEXCRN&

Range. ,,&J_1IREGSET-J_1IEXCRG&

Division,,&J_1IREGSET-J_1IEXCDI& with SM as paragraph format.

when im giving print,im getting data as this:

Code No. 1234567

Reg. No. 456789

Range. c/o dukes & sons

LTD . RANGE 2 ANDHERI

Division CHEMBUR .

I want Range the same alignment as remaining fields

ie; .LTD . RANGE 2 ANDHERI should start from where ' c/o dukes & sons' is starting. please help.

Accepted Solutions (1)

Accepted Solutions (1)

jj
Active Contributor
0 Kudos

Define a paragraph format.with tab positions.

The second tab position should be equal to the start point of where you want to start the display of the second line of the address.

Then call that tab,So that your address will be aligned as per your requirement.

Former Member
0 Kudos

i tried as per your suggestion but im not getting.please help.

jj
Active Contributor
0 Kudos

To get the output as per your requirement.

First split the content of variable J_1IREGSET-J_1IEXCRG

into 2 variables.in the driver program of this sapscript

wrk_range1 = J_1IREGSET-J_1IEXCRG+0(15).

wrk_range2= J_1IREGSET-J_1IEXCRG+ 15(30).

Then in the sapscript

change the code as

Code No.,,&J_1IREGSET-J_1IEXCCD&

Reg. No.,,&J_1IREGSET-J_1IEXCRN&

Range. ,,&WRK_RANGE1& ****to display first 30 character

,,&WRK_RANGE2& ****to display rest.

Division,,&J_1IREGSET-J_1IEXCDI&

Message was edited by:

joffy john

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

ADDRESS and ENDADDRESS is used to specify the address which will

be formatted according to the target country i.e the recipient country.

e.g. /:ADDRESS sales PARAGRAPH C

/:NAME &KNA1-NAME1&

/:STREET &KNA1-STRAS&

/:POSTCODE &KNA1-PSTLZ&

/:CITY &KNA1-ORT01&

/:COUNTRY &KNA1-LAND1&

/:FROMCOUNTRY 'DE'

formatting address

http://help.sap.com/saphelp_46c/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm

http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm

Reward if usefull

Former Member
0 Kudos

HI,

Please check your variable and paragraph format. If necessarily check font size how you are using.

please reward ponts if it is helpful

thanks & regards

venkat

Former Member
0 Kudos

Hi,

U check the variable .As in the varaible it is like that its printing like that.

change the variable.

if u want to print like this

c/o dukes & sons LTD .

RANGE 2 ANDHERI.

change the width of window.

If this is not correct clearly send me how to print

Assign points if useful.

Former Member
0 Kudos

it should print as you said but it's getiing printed like this

RANGE : C/O DUKES & SONS

LTD. RANGE -II ANDHERI. the '' LTD. RANGE -II ANDHERI'' should start from where '' C/O DUKES & SONS'' is starting