cancel
Showing results for 
Search instead for 
Did you mean: 

To make Bold few fields in ADDRESS and ENDADDRESS

Former Member
0 Kudos

Hi,

I need to make the few fields as BOLD, they are

ADDRESS PARAGRAPH AS

TITLE &LFA1-ANRED&

NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&

STREET &LFA1-STRAS&

POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

CITY &LFA1-ORT01&, &LFA1-ORT02& ****To make Bold**

POSTCODE &LFA1-PSTLZ& ****To make Bold**

COUNTRY &LFA1-LAND1& ****To make Bold**

REGION &LFA1-REGIO&

FROMCOUNTRY &T001-LAND1&

ENDADDRESS

ENDPROTECT

Expect the above ORT01, PSTLZ and LAND1(to be as Bold), all others has to be printed in normal letters.

How should I make it. Please help me.

Vijayanand.

Accepted Solutions (0)

Answers (3)

Answers (3)

dev_parbutteea
Active Contributor
0 Kudos

Hi,

its easy to to that , you just have to write < B> &variable&<>.

ADDRESS PARAGRAPH AS

TITLE &LFA1-ANRED&

NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&

STREET &LFA1-STRAS&

POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

CITY <b>< B>&LFA1-ORT01&<></b> , &LFA1-ORT02& ****To make Bold**

POSTCODE <b>< B>&LFA1-PSTLZ&<></b> ****To make Bold**

COUNTRY <b>< B>&LFA1-LAND1&<></b> ****To make Bold**

REGION &LFA1-REGIO&

FROMCOUNTRY &T001-LAND1&

ENDADDRESS

ENDPROTECT

<b>please note that there is no space between < ,B and > .</b>

Regards,

Sooness

Former Member
0 Kudos

Hi All,

I had a query regarding the Sheshu statement.

Address and endaddress is a command,

with in that can we use paragraph points?

Thanks

Dinakar.

dev_parbutteea
Active Contributor
0 Kudos

Hi,

actually its already specified in the paragraph that it would be using paragraph AS.

So, i don't think that it makes sense to use another paragraph format!

But i think that we may use

< B>&LFA1-ORT01&<>

Regards,

Sooness

Former Member
0 Kudos

Hi Sooness,

I have tried it previously, Its not working. Do you have any other answers?

NOTE: If <B>&LFA1-ORT01&</>, the value itself not getting PRINTED.

Please answer.

Vijayanand.

dev_parbutteea
Active Contributor
0 Kudos

Hi,

i think that there is some slight misunderstanding about how to write this piece of code in sapscript. try the following (I HAVE ALREADY USED AND TESTED THIS)

<b>/:</b> ADDRESS PARAGRAPH AS

<b>AS</b> TITLE &LFA1-ANRED&

<b>AS</b> NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&

<b>AS</b> STREET &LFA1-STRAS&

<b>AS</b> POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

<b>AS</b> CITY < B>&LFA1-ORT01&<> , &LFA1-ORT02&

<b>AS</b> POSTCODE < B>&LFA1-PSTLZ&<>

<b>AS</b> COUNTRY < B>&LFA1-LAND1&<>

<b>AS</b> REGION &LFA1-REGIO&

<b>AS</b> FROMCOUNTRY &T001-LAND1&

<b>/:</b> ENDADDRESS

Note that if you put:

/: in a line , it will be considered as a command

AS in a line , it will be considered as text to be printed

IF &LFA1-ORT01& is not printed , then it might be blank, you may verify this in debugging mode!

Hope that this helps you,

Regards,

Sooness.

Former Member
0 Kudos

Hi Sooness,

I appreciate your answers.

I have tried, the Output as follows

*******************************

TITLE Company

NAME Kiran Kumar

STREET Gandhiji Street

********************************

But I need the following Output

*******************************

Company

Kiran Kumar

Gandhiji Street

********************************

Dude, help me.

Vijayanand.

Former Member
0 Kudos

Remove the Title,name,street text in address window and see the results

Former Member
0 Kudos

use charcter format wherever you want ,when you use address and endadrees it will have paragrph format,so make it as all

P1 TITLE &LFA1-ANRED&

P1 NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&

if you use address and endaddress then you can not format ,use above what i said

Former Member
0 Kudos

Hi Seshu,

If you do this thing, then "TITLE", "NAME" also getting PRINTED, Which I don't want.

Then HOW SHOULD WE GO ABOUT ? ? ?

Vijayanand.

Former Member
0 Kudos

Hi Vijayanand,

check whether Character format work or not.

I am not sure, use character format for the variable for which u want to display

in bold.

Thanks

Dinakar.

Former Member
0 Kudos

Hi Dinakar,

I have tried to use the Charater format.

ADDRESS PARAGRAPH AS

TITLE &LFA1-ANRED&

NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&

STREET &LFA1-STRAS&

POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

CITY <B>&LFA1-ORT01&, &LFA1-ORT02&</> *******--


Pls Note here-----

POSTCODE <B>&LFA1-PSTLZ&</> *******--


Pls Note here----

COUNTRY <B>&LFA1-LAND1&</> *******--


Pls Note here-----

REGION &LFA1-REGIO&

FROMCOUNTRY &T001-LAND1&

ENDADDRESS

Its it not working ? Do you have any other answers?

Vijayanand.

Former Member
0 Kudos

Hi,

As sooness said,

try to use the syntax...

/: POSTCODE <b> &lfa1-pstlz& </>

Thanks

Dinakar.

Former Member
0 Kudos

hey sorry,

ignore previous one..

try with this...

/: POSTCODE < b > &lfa1-pstlz& < / >

Thanks Dinakar.

Former Member
0 Kudos

Dear Dinakar,

I have tried it, I am not able to print the post code, if I am doing as you said.

Please clarify.

Vijayanand.