Application Development and Automation 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: 
Read only

sap script

Former Member
0 Likes
718

in script i have 10 address lines there were blanks in between rows how can i avoid those?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
691

in your paragraph format that you are using for the address window check the checkbox that says no blank lines

8 REPLIES 8
Read only

Former Member
0 Likes
691

Hi,

Reduce the Space before/Space after(to 0.5 CM) in the paragraph seetings of the paragraph that you used for the address.

Reward points if it helps you.

Regds,

Rama chary.Pammi

Read only

former_member632991
Active Contributor
0 Likes
691

HI,

before displaying them, check that they are no initial

and then print them

Read only

Former Member
0 Likes
692

in your paragraph format that you are using for the address window check the checkbox that says no blank lines

Read only

Former Member
0 Likes
691

Hi

u can put the condition if they are empty than it should go to that particiular line

Thanks

Read only

Former Member
0 Likes
691

Hi,

Check the condition <b>is initial</b> if they are initial dont put them on the out put.

Regards,

Sandhya

Read only

Former Member
0 Likes
691

Hi Sumit,

Check if the variables that you are printing in the address command are not empty,

for this, you can use the condition:

/: IF NOT &XADRC_VENDOR-NAME2& <> &TTXSY-SPACE&

B1 &XADRC_VENDOR-NAME2&

/: ENDIF.

where XADRC_VENDOR-NAME2 is the variable that contains the address line.

for this syntax, you need not use address-end address command.

You can check with the above condition for every variable before printing it. This way you can avoid blank lines

Read only

Former Member
0 Likes
691

Hi Sumit,

Check if the variables that you are printing in the address command are not empty,

for this, you can use the condition:

/: IF NOT &XADRC_VENDOR-NAME2& <> &TTXSY-SPACE&

B1 &XADRC_VENDOR-NAME2&

/: ENDIF.

where XADRC_VENDOR-NAME2 is the variable that contains the address line.

for this syntax, you need not use address-end address command.

Please award points if useful..

Regards,

Divya

You can check with the above condition for every variable before printing it. This way you can avoid blank lines

Read only

Former Member
0 Likes
691

Hi,

We have the standard Address format for Scripts,

Syntax:

/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]

/: TITLE title

/: NAME name1[,name2[,name3[,name4]]]

/: PERSON name of natural person [TITLE form of address]

/: PERSONNUMBER number of the personen

/: DEPARTMENT department

/: STREET street name HOUSE house number

/: LOCATION additional location information

/: POBOX po box [CODE post code / zip code] [CITY city]

/: POSTCODE post code / zip_code

/: CITY city1[,city2]

/: NO_UPPERCASE_FOR_CITY

/: REGION county / state

/: COUNTRY recipient country [LANGUAGE language code]

/: COUNTRY_IN_REC_LANG

/: LANG_FOR_COUNTRY language key

/: FROMCOUNTRY sender country

/: ADDRESSNUMBER address number

/: ENDADDRESS

Follow this one, if any fields are blank then it will ignore those fields

Regards

Sudheer