on 03-12-2008 2:04 AM
Hi All,
How do we suppress blank lines in scripts.
I need to display 3 fields fld1, fld2 and fld3 repectively. and while Im displaying them if any of these fields has no value then a blank line is displayed. How do we avoid that.
I have tried using conditons also,
1st line : * &fld1&
Condition: /: if &fld2& ne space (I have also used if not initial)
2nd line : / &fld2& (also tried * &fld2&)
/: endif
3rd line: * &fld3&
But inspite of this Im getting the blank line, any ideas/help how to solve this??
One more thing, in my script in the address itz defined currently in the std format as address paragraph as...endaddress...There is no priority mentioned, I tried moving around the fields with their order and things but it doesnt work. Kindly let me know how to change this.
Existing:
/: ADDRESS PARAGRAPH AS
/: TITLE ®UH-ZANRE&
/: NAME ®UH-NAME1&, ®UH-NAME2&
/: STREET ®UH-STRAS&
/: POBOX ®UH-ZPFAC& CODE ®UH-ZPST2& CITY ®UH-ZPFOR&
/: POSTCODE ®UH-ZPSTL&
/: REGION ®UH-ZREGI&
/: CITY ®UH-ZORT1&, ®UH-ZORT2&
/: COUNTRY ®UH-ZLAND&
/: FROMCOUNTRY &T001-LAND1
/: ADDRESSNUMBER ®UH-ZADNR&
/: ENDADDRESS
My desired output is (In the same order and positions, also my above query to suppress blank lines is also related to the issue below):
®UH-ZNME1&®UH-ZNME2& (Same line)
®UH-STRAS&
®UH-ZORT2(I)&
®UH-ZORT1(I)&
&LV_COUNT(I)&®UH-PSTLZ&(Same line)
®UH-ZTLFX&®UH-ZTELF&(Same line)
Kindly let me know how to do this
Regards,
Narendra.
in se71 Define pargraph graph format
in that paragraph format
in standard attributes
check the option <No Blank Lines >
use this paragraph format where ever u dont want to print balnk lines.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagendra,
User new Paragraph -> Standard-> No Blank lines check box..It will fix this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
insted of SPACE u r using in script
try to user BALANK ( ' ' )
like :
1st line : * &fld1&
Condition: /: if &fld2& ne ' ' (I have also used if not initial)
2nd line : / &fld2& (also tried * &fld2&)
/: endif
3rd line: * &fld3&
this may help
reward if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
U can use this command.....
&SYMBOL(C)&
This is similar to Abap Command CONDENSE.
example....
Assume 'SAP Script' as Symbol.
&SYMBOL& -
> SAP Script.
where as....
&SYMBOL(C)& -
> SAPScript
Assuming ' Albert Einstein ' is the symbol value,
&symbol& -> Albert Einstein
&symbol(C)& -> Albert Einstein
OR...................
in SE71 under the paragraph formats, in the standard attributes u have an option called NO BALNK LINES.
If u want to do it in the driver program then use CONDENSE keyword
Reward points..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.