How to print the text in points wise in sap script

hi friends,
how to print the text in points wise in sap script.
ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
1. hai how ru.
2. what r  u doing.
3.where r u.
like this i want numbering.. waiting for ur replys.
thanks,
kiran

declare a counter
data : cnt type char 4.
print :
cnt = cnt + 1.
&cnt& &text&
cnt = cnt + 1. and so on.
or.
if the data is in an internal table
loop at internal_table.
cnt = cnt + 1.
write form.
in script -&cnt& &text&
endloop.
Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM

Similar Messages

  • How to print the texts retrived by using READ_TEXT fun module in Smartform

    Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
    I have coded all things in the program lines and in that i am retriveing the long texts.
    I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text.
    I have to print the trouble ticket. in that the notes log I have to pass.
    its urgent. Points will be rewarded for any type of clue. whether it will work or not.

    There are a few ways to do it. If you need to take all of the text in the text type, in your SF text element choose "Include Text".
    Populate the fields with the data that corresponds to the text type. It is similar to the interface to the FM "Read_Text.
    Text Name
    Text Obje
    Text ID 
    Language
    Encase any variables with the "&" symbol.
    If you have already coded the call to the FM "READ_TEXT" and loaded the text into an internal table, create a loop and loop through the itab. Inside of the loop create a text element and add a variable in the text element for the field you are looking to output.

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • How to Print the text in a Text Area Component

    It is really amazing how much information is out there for
    Flex but you can never find what you are looking for :-(
    I am trying to print the contents of a text area component.
    If I just do addPage(Component Name) it works but it prints the
    whole conponent including the scrollbars, on the page. I just want
    the text. If I try to put the component name.text in addPage(), I
    get a "1067: Implicit coercion of a value of type String to an
    unrelated type flash.display:Sprite." error. Does anyone know how
    to do this?
    Any help would be greatly appreciated.
    Dave

    Is there anyone who can help with this? I really need a way
    to print the results.
    Thanks.
    Dave

  • SCRIPT - How to print the text at the center of the footer window.

    In my SAP script,
    I have some text in my footer window ( which was set using tabs ).
    I need to print the footer text as centered.

    Hi sam,
    In paragraph format press standard button (default it will be coming when u go to paragraph format )
    <b>space before</b> - 0.50cm   give according to u r requirement
    space after
    <b>left margin</b>   - 0.5 cm  give according to u r requirement
    right margin
    ( or )
    directly u can give
    <b>alignment - CENTER</b>

  • How to display the number of line items in sap-script report?

    Hi friends,
    I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
    Also it is displaying the total and the amount in text in every pages that should be display in last page.
    Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
    I am requesting all the people out there kindly help me to solve this issues.
    Thanks and Regards

    There is no pre built solution for this. But we can show total pages in the report body.
    one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
    If you are using pivot tables, you can try this.
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
    - Madan

  • How to print two pages with same content in sap script?

    I have created page1 and copied as page2. 1st page is  assigned with Tray1 and 2nd page is assigned with Page2.but while printing page1 is printing properly,but page2's main window values not printing(Note: page2 is not Next page). I need 2 copies printout of check from Tray1 and Tray2.How to do this?

    Hi ,
    do as following.
    Data: wa_options type ITCPO.
    wa_optinos-TDCOPIES = '2'.
    then call the function module.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    DEVICE = 'PRINTER'
    DIALOG = 'X'
    FORM = 'ZSAP'
    LANGUAGE = SY-LANGU
    OPTIONS = wa_options.
    I have given you for printing multiple copies
    But donno what do you mean by Tray 1 and tray 2 ?
    Regards,
    Nageswar

  • I need to print the text in secondary window in script

    hi all,
    how to print the text of purchase order (me22n) in script.
    plzz  explain with steps
    thanks in adv
    vidya

    Good that you know how to use read_text...
    In SAP script used it as shown below, in your script window call subroutine as shown below
    Go through this example
    Ex.
    /: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
    /:USING &<field name>&
    /:CHANGING &<field name1&
    /:ENDPERFORM
    Display &<FIELD NAME1>&
    Then create subroutine pool program and you have to write the code.
    FORM ><subroutine name> tables int_cond structure itcsy
    outt_cond structure itcsy.
    data : value(20), value1(20). "do your own declarations
    Read int_cond table index 1.
    value = int_cond-value.
    ***Use FM Read text and store the text in value1 and pass it back to SAPscript as shown below
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    Just rough idea given above.
    Close the thread if your question is answered and reward points to all useful answers.
    Regards,
    SaiRam

  • How to obtain a space before printing the text

    Hi friends,
    I have created a smart form where i need to print
    External Order Notes : (space to print ) text should start after the space.
    I have used Include Text in text type,  start--Append Directly
    Can any one please tell me how can i get the space before the text .
    Point will defentely be rewarded.
    This is very urgent.

    HI
      give TAB values as u required

  • How to print Arabic text along with the English in smartform ( ECC6 version

    Hi All,
    our is ECC6 version, Non unicode, ABAP stack ( not dual stack )
    is it possible to print in Arabic language in the above version ?
    if yes, then please let me know how to print Arabic text and English text in the same smartfrom.
    i tried in the following procedures :
    1) i created standard text (SO10) in arabic language.
    i called in the smartform ( include text - i )
    langage AR
    but system throws error message saying, required language is not installed.
    2) if i use READ_TEXT function module.
    text getting printed in diff format but not in arabic.
    waiting for your replies..

    ECC6 and Non-Unicode? I think you'll need multiple code pages, I doubt there's a mixed Arabic/Latin1 available. And I don't think SAP supports new MDMP systems any more. If you need to support multiple languages you really need to go Unicode. It's probably easier to do the Unicode conversion than to try to support multiple code pages and you have to make the switch eventually.

  • How to print the superscript in smartform

    Hi gurus,
    Please tell me the procedure how to print the superscript in middle of the text displaying?
    when we are displaying the smartform its converted to some special character like & .
    please let me know procedure at the earliest
    Regards
    Raj

    Hi thanks for ur patience.
    see my requirment was to print TM as superscript for HLL ,already smartstyle is there, and also a character format with superscript is also defined.
    then aftet HLL how it prints as superscript.
    for HLL we are using another character format and for superscript we are using the another character format.
    If posiible send me the code to write in smartforms
    Regards
    RAj
    Points are awarded for useful answers.

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • Not able to print the text symbol value

    Hi All,
    I am using BTE 1040 for email dunning. In this BTE, I have called my custom FM in which I have written a code such that an editor comes up with the predifined message which we can edit it after dispaying.
    For example, my text is as below.
    test1
    test2
    test3
    &gv_sender_name&
    test4.
    Now in the above predefined message I have a text symbol &gv_sender_name& which holds the value. I have filled the baove text symbol with value.
    But the when editor comes up with that above message, the same text is printed. The value in the text symbol is not printed. I have defined the variable gv_sender name in my custom fm and also in BTE. But still it didnot work.
    I should the get the text as test1
                                               test2
                                                test3
                                                xyz
                                               test4
    The above predefined text is created in Text module.
    Can anyone help me out how to print the value of text symbol.?
    Points rewarded for helpful answers...!!
    Thanks and Regards,
    Karthik Ganti.
    Moderator message: Offering points is against the Forum RoE.
    Message was edited by: Suhas Saha

    Hi Klaus,
    Please find my requirement.
    I have created a text module with some text.
    Let me say  test1
                       test2
                       test3
                       &lv_user_name&
                       test4.
    I am filling the above text symbol &lv_user_name& with some logic. Let me say that variable has value XYZ.
    Now when I use that text module in the form layout. I should get the output as below.
    Correct Output : test1
                              test2
                              test3
                              XYZ
                              test4.
    But instead of above output, I am getting the below output which is wrong, because the value which is there in that variable should appear in the output.
                             test1
                             test2
                             test3
                            &lv_user_name&
                              test4
    How to print that value in the output ?
    Please let me know if you need any info on the above.
    Thanks and Regards,
    Karthik Ganti.

  • How to print the message in 2 lines?

    How to print the message in 2 lines?
    Here i am having it like this... MESSAGE i000(zm) WITH lv_uname.
    here I want to print lv_uname in 2 lines because it lengthy one.
    Thanks,
    Sridhar.

    No man, itas not comming..I am using the below logic to print my message:
        CONCATENATE text-I01 lv_printdate1 text-I02 INTO lv_printname
    SEPARATED BY space.
        MESSAGE i002(zm) WITH lv_printname.
    its printing in a single line...

  • How to print a text in java?

    How to print a text in java?

    of corse, i have JTextField in my frame that i want to extract the text and print it on a paper with a printer.

Maybe you are looking for

  • HT4913 How can I remove a device from iTunes match?

    I have purchased the new "match" option to store my music however none of it is showing on my iphone and I want to take it off.....any ideas?

  • How to go back to old Pages (09)?

    I clicked to download Numbers 2013 today (it's free now, why not?) and for some reason I was also upgraded from Pages '09 to '13! I had previously been using Pages 09 and specifically DID NOT want to upgrade to the new version. I realize the old vers

  • Disable Ad-hoc networking

    Due to recent security concerns, my company's networking team has begun looking into how one might disable ad-hoc networking on both Windows and Mac computers. Windows computers appears to be fairly easy - it's a check box in the Windows wireless man

  • Issue with the Total in BW Report

    Hi, We have recently transported the Aggregates in the Production environment. Now we are facing absurd problem.When we are executing the report the Total given by BW is not matching with the exact total of the Values. Example:                      

  • SimpleDateFormat and Daylight Savings Time

    I am trying to parse into a Date "April 15 1999" with "MMM d YYYY" using SimpleDateFormat. This string parses w/out error and the resulting Date is: Thu Apr 15 00:00:00 PST 1999. This is correct in that I am in California. The problem is that 4/15 is