on 06-12-2007 12:53 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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&</> *******--
POSTCODE <B>&LFA1-PSTLZ&</> *******--
COUNTRY <B>&LFA1-LAND1&</> *******--
REGION &LFA1-REGIO&
FROMCOUNTRY &T001-LAND1&
ENDADDRESS
Its it not working ? Do you have any other answers?
Vijayanand.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.