Formatting problem in Scripts

Hi,
If i make the Fontsize into bold or increasing the size using character format , it doesnot reflect in my Printing and Printpreview also.
What is the problem and how can i solve this problem?
Thanks,
Neptune.M

HI,
Check these
<b>scripts</b>
http://www.sappoint.com/abap/ssintro.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/lsetssap.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
Regards
Alfred

Similar Messages

  • Textfield Formating Problems Action script 3

    Apologies for a probably very basic question, but I am very
    new to flash and working alone.
    I am trying to write a script which reads text from a file
    and display it in the movie. It all works fine but I can not get
    the
    TextFormat object to do anything at all.
    function completeHandler(event:Event):void {
    var loader:URLLoader = URLLoader(event.target);
    var thistext = loader.data;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.bold = true;
    my_fmt.font = "Courier";
    my_fmt.size = 40;
    trace(thistext);
    tField = new TextField();
    tField.autoSize = "left";
    tField.background = false;
    tField.border = false;
    tField.x = 10;
    tField.y = 500;
    tField.alpha = 50
    tField.setTextFormat(my_fmt);
    tField.backgroundColor = 0x23169C;
    tField.textColor = 0xFF0000;
    tField.text = thistext;
    addChild(tField);
    Most of the TextField properties work except the ALPHA, which
    I really need to set for my application.
    None of the TextFormat properties including font, bold etc
    are being applied. What have I failed to do?
    Thanks

    OK got the text working with a little fiddling
    package {
    import flash.display.*;
    import flash.text.*;
    public class testas3 extends Sprite {
    function testas3(){
    var thistext = "Some test text";
    var tField:TextField = new TextField();
    tField.autoSize = "left";
    tField.background = false;
    tField.border = false;
    tField.x = 10;
    tField.y = 50;
    tField.alpha = 50
    tField.backgroundColor = 0x23169C;
    tField.textColor = 0x000000;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.bold = true;
    my_fmt.font = "Times New Roman";
    my_fmt.size = 40;
    //my_fmt.underline = true;
    trace(thistext);
    tField.text = thistext;
    // tField.defaultTextFormat= my_fmt; not like this but like
    next line
    tField.setTextFormat(my_fmt);
    addChild(tField);
    Just in case anyone else is struggling with this

  • Problem in script format

    hi,
    i am having problem in script , the problem is
    s.no|    descriptio                           |   UOM                      |          Qty                   |             Rate           |          AMT            |
    01     aaaaaaaaaaaaaaaaaaaaa       11.01                             17.28                     170000000               2400000
    this is fine but when the 1st column is shot other also get affected.
    s.no|    descriptio                           |   UOM                      |          Qty                   |             Rate           |          AMT            |
    01     aa       11.01                             17.28                     170000000               2400000
    and i cannot draw vertical line here .what is the solution for this.
    Edited by: jaihind on Mar 6, 2010 12:21 PM
    hi,
    problem is if the description field is long then other coloum are comming fine but if description caloumn is small then other also get affected and its comes towards left .
    Edited by: jaihind on Mar 6, 2010 12:22 PM

    Hi
    For this u can resolve by using the Formatting characters ......
    This is your layout ..
    s.no| descriptio | UOM | Qty | Rate | AMT |
    01 aaaaaaaaaaaaaaaaaaaaa 11.01 17.28 170000000 2400000
    Assume that   your field names like  
    s.no      |  description  |    UOM      |    Qty      |      Rate      |         AMT       |
    &sno&      &desc&         &UOM&       &Qty&         &rate&         &AMT&
    asseme that  length of these fields(in characters) as per your requirement will be ...
    s.no      |  description  |    UOM      |    Qty      |      Rate      |         AMT       |
    8                  15                  5                8                 10                  15
    For these use formatting characters    like   ...
                  s.no      |  description      |    UOM      |    Qty      |      Rate      |         AMT       |
    1stLine  &sno& ,,  &desc+0(15)&,,  &UOM&       &Qty&        &rate&         &AMT&
    2ndline                 &desc+15(15)&     
    &desc+0(15)&  -  it will print  first 15 characters from 0th position
    &desc+15(15)&- From 15th position it will print 15 characters ..
    Hope you resolve your issue
    Let me know if Any concerns,.......

  • Page format for SAP-Script not working in 4.6C

    Hi all,
    I have a problem regarding check printing.
    I am using SAP version 4.6C
    The size of paper for check printing is
              width  = 231 mm
              Height = 304 mm
    So for this I have created a new page format with these details in SPAD.
    Then I assigned this Page format to spool format and assigned that spool format to SAPWIN driver. I have assigned this page format to the SCRIPT that is used for check printing .
    But when I am taking the print out for the check with new page format, the printer don’t print till the end of page, it prints till the total amount on check and then stops there. So this creates an alignment problem when taking printout for multiple checks.
    Please give some solution for this.
    Regards,
    Bharat.

    I guess you are printing on dot matrix printer. If yes, try to do some physical printer settings for the dot matrix printer by following the printer manual. I guess you have to change the page size.. or set default printer settings... it may help you to solve your problem...
    if not goto your device types tab in SPAD and select device types.. select your device from the list (for ex, SAPWIN) click format and goto the format that you have inserted for this device types.. double click on your format, you will see printer Indialization.. try to write code like this
    set page length to 8.5 inch (=52 lines at 6 LPI)
    \e\0x43\0x44
    Note the above hexa decimal value can be obtained by going through the printer manual.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Records truncating (formatting problem)

    Hello all,
    I am writing a script wherein a SQL generates another SQL.
    Lets say that we have a varchar2(2000) column with around 1500 characters in each record. When I try to write a script it only returns the first few characters of it and doesnt print the remaining data in the record.
    Example
    insert into baba values(353521,'200410',1,1,18-JUL-
    03,'ELOPEZ5','Y','Y' ,,'Have
    insert into baba values(353521,'200410',1,2,18-JUL-03,'ELOPEZ5','Y','Y','Give
    It truncates the remaining part of the inserts statements. I guess this is a formatting problem. I set the linesize to 999 and it didnt solve my problem.Please let me know what else I can do.
    Thanks,
    Dola

    Hello Garcia,
    Thanks a lot for your response. I tried putting line feed as you suggested and this didn't work too. This time
    it didn't even give that coulmn
    insert into baba
    values(
    353521,'
    200410',
    1,
    1,
    18-JUL-03,'
    ELOPEZ5','
    Y','
    Y'
    insert into baba
    values(
    353521,'
    200410',
    1,
    2,
    18-JUL-03,'
    ELOPEZ5','
    Y','
    Y
    Any help will be deeply appreciated.
    Thanks

  • Problem in script printing

    Hi Guru's
    I have a problem in script printing.
    The quantity and netprice are printing incorrectly. i.e., quantity should print as 1.000 where as it is printing as 1,000 and net price is printing as 5,30 instead of 5.30.
    I have checked in the owndata settings it is like 1,234,56.00.
    I would like to know whether any settings will be there or i need to do any modificatione
    Waiting for you reply.

    Hi!
    Here you can find the SAPScript formatting options.
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/803411454211d189710000e8322d00/content.htm
    If it is not good for you, you might code it in your printer program and put it into a character variable.
    Regards
    Tamá

  • Exception in XML Parser (format problem?)

    Hi Experts,
    I am working on IDOC -> AS2 Configuration and the AS2 Configuration has the below structure
    <RecordSet>
         <Row1>
                       <row1 - field1>
                       <row1 - field2>
                       <row1 - field3>
         </Row1>
         <Row2>
                       <row2 - field1>
                       <row2 - field2>
                       <row2 - field3>
         </Row2>
         <Records>
              <Record1>
                        <Record1-Field1>
                        <Record1-Field1>
                        <Record1-Field1> 
              </Record1>
              <Record2>
                        <Record2-Field1>
                        <Record2-Field1>
                        <Record2-Field1> 
              </Record2>
         </Records>
    </RecordSet>
    We are getting the expected Structure when we AS2 Receiver has the xml format. But while doing module development with the strctxml2Plain, we are getting the below error  in RWB CC Monitoring.
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    Any ideas, why this error we are getting.....
    Thanks in advance,
    Regards,
    Vasu

    Hi Vasu,
    Not in the Mapping of IR.
    In BIC Mapping Designer you have to test with the standard Mappings by providing the sample file whether the Conversion is happening correctly or not.
    You have to take the same input file that what ever you are having now.
    So that it will say clearly what is the problem in converting the XMLto the required EDI Format...
    Check whether you have any Date Format Values are comming from the input file.
    Regards
    Seshagiri

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

  • I am exporting a pages doc to ePub and I keep getting formatting problems any idea thx in advance

    I am exporting a pages doc to ePub and I keep getting formatting problems any idea thx in advance

    Since you don't say what the "formatting problems" are, all we can say is:
    "There, there. Hope they get better."
    Peter

  • Smartform: Formatting Problem with QUAN-Field

    I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
    It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
    Does anybody know a solution?

    I solve this kind of problem in my SmartForm.
    Try this:
    Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
    Field Name:      WA_OUTTAB-MENGE
    Reference Field: WA_OUTTAB-MEINS
    Data Type:       QUAN
    Best Regards,
    Eduardo Ribeiro.

  • Format problem when export to RTF

    Hi,
    Iam creating a RTF template, when export to pdf everything working fine. However, when i export to RTF(word) alot of document properties got lost such as :
    font size default to 12 when it's blank line; page number are not re-start for multi sections; table properties not holding, header, footer and edge margin are not holding, etc...... Is there any way to fix these. I tried to create a word macro to fix some of the format problems, but the macro have to run manually instead of initialized form a text field option on exit. Any idea on how to fix or work around would be appreciated.
    Thanks,
    Tam

    im2famous4u wrote:
    Do you know if and when Pages will provide support for tables in rtf format? (My school requires that I send all assignments rtf format.)
    As Yvan points out, no one here can write what they know about it, and the vast majority of us know nothing about it.
    You cannot take any decision based on the assumption that Pages will one day support tables in RTFs, because it may never happen. If you need both RTF and tables, the only option is another tool (like NeoOffice, TextEdit, MS Office and so on).

  • Convert Web Page to PDF formatting problem - 1st line of each paragraph outdented

    Hi Folks,
    I get a formatting problem when I convert any web page to PDF using the 'Convert Web Page to PDF' option - the 1st line of each paragraph is outdented.
    eg if i convert http://helpx.adobe.com/acrobat/using/whats-new-acrobat-xi.html I get this:
    I get the same problem using IE 9, Chrome (latest) or Firefox 30.0. I don't get it converting a Word doc to PDF.
    I'm using Adobe Acrobat XI Pro on a PC running Windows 7.
    Is there a simple setting somewhere I am missing?
    Any help much appreciated!

    Are you using "Adobe PDF" or "PDF or XPS?" I sounds like "Adobe PDF," but trying to be sure. Have you updated your Acrobat to the latest version? If not, try that.

  • Date Format problem...

    Hi users,
    Forte version : 2.e.2 and ForteWebSDK
    Datacase : Oracle
    We have a problem with a simple HTML text field which acccepts
    a date. When we try to update the record with some date, the following
    exception occurs:
    24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
    project Rap
    tServices, class RaptSqlMethods, method updateActivity, methodId 104,
    line 51, e
    rror from database is:
    ORA-01830: date format picture ends before converting entire input
    string
    The Oracle manual says that the above exception occurs when there are
    some extra characters on that field, which is not the case. In fact,
    we raise our own exception for the cases like : o1-Apr-1997,
    01-apr-97 etc. The correct format is 01-apr-1998.
    Same date soemtimes is added to the database successfully. Waht I mean
    to say that the exception deos not occur consistently.
    We just conevert the String taken from the HTML field into a Forte
    DateTimeData Object and send it to database. May be, the conversion
    part is causing the problem. But, once again the problem is not
    consistent.
    Any ideas in this will be appreciated.
    Thanx in advance
    -Rajeev Talwar
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    We had the same problem when our application first went live. The
    default date format for our Oracle database is 'dd-mmm-yy' without the
    time component. The default format for datatype DateTimeData is
    'dd-mmm-yyyy hh:mm:ss'. Since we did not want to change the default date
    format for the Database, we included in our service partitions an Alter
    Session statement to change the NLS_Date_format attribute in Oracle to
    conform to the Forte DateTimeData format. It worked.
    Kam Chow
    Mazda Australia
    -----Original Message-----
    From: Gary F Giger [mailto:[email protected]]
    Sent: Thursday, June 25, 1998 4:11 AM
    To: Rajeev Talwar
    Cc: [email protected]
    Subject: Re: Date Format problem...
    I was having the same problem a few weeks back when I would
    read/write
    dates to Oracle. I was using objects of type DateTimeData and I would
    occasionally get errors like you said you were. I found discovered my
    problem. Sometimes I would process a null date and would get an error.
    So to
    resolve this issue, I simply changes my objects of type DateTimeData to
    type
    DateTimeNullable. This enabled my Forte Application to handle regular
    dates
    as well as null dates. I have not gotten any oracle errors since then
    with
    regards to dates. Hope this helps.
    Rajeev Talwar wrote:
    Hi users,
    Forte version : 2.e.2 and ForteWebSDK
    Datacase : Oracle
    We have a problem with a simple HTML text field which acccepts
    a date. When we try to update the record with some date, the following
    exception occurs:
    24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
    project Rap
    tServices, class RaptSqlMethods, method updateActivity, methodId 104,
    line 51, e
    rror from database is:
    ORA-01830: date format picture ends before converting entire input
    string
    The Oracle manual says that the above exception occurs when there are
    some extra characters on that field, which is not the case. In fact,
    we raise our own exception for the cases like : o1-Apr-1997,
    01-apr-97 etc. The correct format is 01-apr-1998.
    Same date soemtimes is added to the database successfully. Waht I mean
    to say that the exception deos not occur consistently.
    We just conevert the String taken from the HTML field into a Forte
    DateTimeData Object and send it to database. May be, the conversion
    part is causing the problem. But, once again the problem is not
    consistent.
    Any ideas in this will be appreciated.
    Thanx in advance
    -Rajeev Talwar
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    Gary Giger
    Raytheon Systems Company
    300 Science Park Road
    State College, PA. 16804
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    This message has successfully passed virus checking.
    Mazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Break on formatting problem ...

    I have report based on PLSQL func. body return SQL.
    Break formatting part is here:
    http://i14.tinypic.com/4dqu1xl.png
    I have curios break on formatting problem. Here is the picture of the report on the page:
    http://i13.tinypic.com/3yqrs6f.png
    Here are real data:
    Datum       Vrijednosni papir  Registrirano s      Pozicija           Tip        Količina  Naziv
    =====================================================================================================
    1.12.1999   PODR-R-A           PODR-I          SLOBODBA POZICIJA  OTPLAĆENO  -200      PRIJENOS        
    9.11.1999   PODR-R-A           PODR-I          SLOBODBA POZICIJA  OTPLAĆENO  201       PRIJENOS IZ KD   Is that OK?
    Looks like not!

    Hello,
    These kinds of problems were reported before. Are you using the order by clause in your select statement? It seems to solve all the problems I've encountered of this sort.
    Regards,
    Arie.

  • Regarding Paragraph format in SAP Script

    Hi SAP Gurus,
    Can any one please tell me the use of TABS in paragraph formats in SAP Script.
    Thanks & Regards,
    Pavan Bandaru.

    Hi
    first you define you tab in paragraph formats.
    whene you must use this pharagraps you
    just insert double comma before the text.
    ,,&matnr&
    attention because if you define more than a tabulator il will take the tabulator in sequence.
    ,,(1st tab)&matnr&,,(2nd tab)&matnr&
    if i define a tabulator of 2cm and another of 3cm and you insert 4 comma
    ,,,,&matnr&
    it will take the summ of the two tabulator.

Maybe you are looking for