‎2007 May 02 9:58 AM
I have this sample sapscript report. some fields are empty that it is why it wont align to the rest of the columns. how to fix that? <b>thanks. </b>
<b>screenshot:</b>
http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript21.jpg
‎2007 May 02 10:34 AM
Ok dawson,
perform debugging so that u can know from which field ur getting those values and after that remove or add period(,) depending on ur requirement.
Why i'm saying to debug is
all the values are coming from 3 r 4 fields but even the data is diturbed so if u go for debug u can know easily from where those values are coming.
generally these type of problem occurs when we apply IF condition to any statements as
IF &BSEG-PROJK& = ' '
IF &BSEG-AUFNR& <> ' '
,,&BSEG-BSCHL(Z)&,,&BSEG-HKONT&,,,,,,
CHANGED BY PAVAN REMOVED &BSEG-DMBTR&
,,&BSEG-BSCHL(Z)&,,&BSEG-HKONT&,,,,&SKAT-TXT20&
&BSEG-KOSTL&,,&CSKT-LTEXT&
,,&BSEG-AUFNR&
,,,,& SKAT-TXT20&
ELSEIF &BSEG-PERNR& <> ' '
,,&BSEG-BSCHL(Z)&,,&BSEG-HKONT&,,,,&BSEG-KOSTL&,,&BSEG-PERNR&
,,&BSEG-BSCHL(Z)&,,&BSEG-HKONT&,,,,&SKAT-TXT20&
ENDIF.in these conditions if refer to some conditions with the same value then we have to search for that term from it was coming
if not solved then i'll provide u another method
Regards,
Pavan
‎2007 May 02 10:01 AM
instead of using spaces to align field use Tabs as given in Character formats to align the fields.
Check this link to learn about them.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRFORM/BCSRVSCRFORM.pdf
Regards,
Amit
‎2007 May 02 10:01 AM
Hi
use the Paragraph attribute NO BLANK LINES
for the respective paragraphs used for that printing.
and define TAB settings for the columns
to display with proper format.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala
‎2007 May 02 10:04 AM
Hi
To overcome from the space problem,
instead of using spaces to align field use Tabs as given in Character formats to align the fields.
Define the Character and Paragraph formats properly and use them.
Regards,
Sreeram
‎2007 May 02 10:06 AM
<b>AMIT:</b> im already using a tab. still the same.
<b>SREE:</b> im already using a tab. still the same.
<b>ANJI: </b>I tried "NO BLANK LINES" but still the same.
‎2007 May 02 10:10 AM
I have not tested it but please try to specify the field length in the sap-script. Check if that helps to resolve your issue.
eg
&L_TEXT(20)&
Regards
Anurag
‎2007 May 02 10:13 AM
‎2007 May 02 10:22 AM
<b>PAVAN:</b> pls see image below for the code. <b>thanks.</b>
http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript22.jpg
‎2007 May 02 10:34 AM
Ok dawson,
perform debugging so that u can know from which field ur getting those values and after that remove or add period(,) depending on ur requirement.
Why i'm saying to debug is
all the values are coming from 3 r 4 fields but even the data is diturbed so if u go for debug u can know easily from where those values are coming.
generally these type of problem occurs when we apply IF condition to any statements as
IF &BSEG-PROJK& = ' '
IF &BSEG-AUFNR& <> ' '
,,&BSEG-BSCHL(Z)&,,&BSEG-HKONT&,,,,,,
CHANGED BY PAVAN REMOVED &BSEG-DMBTR&
,,&BSEG-BSCHL(Z)&,,&BSEG-HKONT&,,,,&SKAT-TXT20&
&BSEG-KOSTL&,,&CSKT-LTEXT&
,,&BSEG-AUFNR&
,,,,& SKAT-TXT20&
ELSEIF &BSEG-PERNR& <> ' '
,,&BSEG-BSCHL(Z)&,,&BSEG-HKONT&,,,,&BSEG-KOSTL&,,&BSEG-PERNR&
,,&BSEG-BSCHL(Z)&,,&BSEG-HKONT&,,,,&SKAT-TXT20&
ENDIF.in these conditions if refer to some conditions with the same value then we have to search for that term from it was coming
if not solved then i'll provide u another method
Regards,
Pavan
‎2007 May 02 11:45 AM
thanks <b>PAVAN </b>and thank to all of you. im just a newbie to SAP. i hope u understand.
<b>thanks to all of u again.</b>
‎2007 May 02 11:49 AM
Its ok yar if u r satisfied with our answers then plz provide points so that it will be a boost up for us
Regards,
Pavan