How to Limt Standard Text through Javascript

Hi,
I have an urgent requirement ,
I need to print only 2 lines of Text entered in the Header/Item Text in PO.
When the text exceeds more than 2 lines I need to truncate the rest.
I am using an include text for this.
I hv tried limiting the char / allow multiple lines with limit char.. etc...
nothing worked.
Do i need to write Java Script code.. kindly help me with an example code.
thanks in advance.
regards
divya

Hello Divya,
Increase the width and height of the text box which you are using to display include text such that only two lines are fit into it and remove expand to fit in width and height...
If you don't need the white space in between when text is not present, then use function module 'READ_TEXT' and display only two lines.
Thanks,
Rakesh

Similar Messages

  • How to add standard text in PO and how it is maintained ?

    How to add standard text (paragraph) in PO and how it is maintained ?

    Hi
    Please go through this document.which has a step by step
    Working with Frequently Used Texts
    Use
    You can copy texts from various sources to create PO texts:
    Standard texts
    Certain standard texts are supplied with the system and can be assigned to a purchasing document in Customizing.
    The content of some standard texts is predefined by your system administrator.
    You can also create standard texts yourself and copy them into purchasing documents.
    Master records
    Database fields
    Activities
    Creating Standard Texts
    You can create your own standard texts via Tools ® SAPscript ® Standard text.
    Inserting Standard Texts
    You can insert your standard text on the long text screen via Insert ® Text ® Standard.
    For more information, refer to the Basis documentation under BC Word Processing with the SAPscript Editor:  Including Texts.
    You can display the print preview via Text ® Print ® Print preview.
    Inserting Texts from the Master Record
    There are three ways of linking texts from a master record with a purchasing document. The relevant settings are made for each text type in Customizing for Purchasing. The indicator in the status column shows the nature of the linkage.
    Option                                              Indicator in status column
    The text is copied:               
    It is then independent of the text                 None
    in the master record. Changes to
    the text in the material master record
    have no influence on the text in the document.
    The text is displayed only:
    It cannot be adopted.                                          N
    The text is offered for copying:
    It can be copied via Header or Item ® Texts ® Adopt text. (In requisitions: Goto ® Texts ® Adopt text.) Changes made in the master record will also be adopted in the document until such time as you copy the text.
    Inserting Texts from Database Fields
    You can include the content of a database field at any point in the text on the long text screen. A value specific to the relevant document is displayed in the printed document.
    Choose Insert ® Symbols ® Program symbols.
    Choose DDIC fields.
    Search for the relevant table/structure (in the case of PO items, this is EKPO) and then choose ENTER .
    Choose the relevant table field.
    Choose Text ® Print preview to see the print preview.
    Reward if useful
    Aasif

  • How to add standard text in smartforms?

    Hi friends,
    How to add standard text in smartforms ?
    points rewarded soon
    Regards
    RH

    Creating the Standard Text:
    Go to SO10
    1. Enter Text Name.  For example, ZABC
    2. Text ID ST
    3. Language EN
    Click on Create.
    And enter the Required Information and save.
    To include a Standard text in SmartForm.
    Follow the steps below:
    1. Create a text node in the window.
    2. Under general attributes select "Include text" as Type.
    3. Specify the fields under Text.
    Text Name ZABC
    Text Object TEXT
    Text ID ST
    Language EN.
    Hope it helps.
    Regards.

  • How to use standard texts in smartforms

    Hi Friends,
          How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
    thanks in advance,
    regards,
    sharma.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • How to use Standard Text in ALV

    How to use Standard Text in ALV header part? Can you please help me by giving the answer?

    Hi ,
           You can read the Standard text using read_text function module and then print in LV header part.

  • Pls explain how to add standard text in sapscript & smartforms

    Dear friends,
    pls explain how to implement standard text into sap script and smartforms.
    in how many we can do.
    and what is diff between include text & text modules in smartforms.
    how we can translate into multiple languages.
    Regards
    Jagadeeshwar.B

    hi,
    for the include text goto tcode so10.
    for changing the smartform and scripts use there methods..
    1. goto se63>translation->abap objects->other long texts->FS Forms and Styles---> for scripts use Forms
                                           for smartforsm use SAPSmart form
                                           for styles use Styles
    2. goto se71->utilities->original language.---> source lang
    (for scripts)                                                     target lang
    to include the include text created in the tcode so10 in the smartforms go to general attributes of the text element--text type> include text...
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 22, 2008 11:56 AM

  • How to Transport standard text in scpits from 1 client to other

    HI I am veerendra,
    Can you please tell me,
    How to Transport standard text in scpits from 1 client to other
    THanks,
    Veerendra

    Hi veerendara,
    1. a little tricky
    2. goto se09 and create a new
    customizing rqeuest.
    3. after that
    in the object list,
    go in edit mode
    and a new window will come
    where u can add the objects(in table control)
    4. there u put
    program id = R3TR
    object type = TEXT
    object name = TEXT,YHRS_FNF_LTR,YHR1,E
    where
    TEXT = TEXT
    YHRS_FNF_LTR = name of standard text
    YHR1 = TEXT ID
    E = english language
    regards,
    amit m.

  • How to change standard text in(me33k)?

    How to change standard text in me33k (under Reference data : Dept/Proj Manager) field. I tried it changing in CMOD - under Goto in Text enhancements in Keywords then Change . I did this change and in table ekko-verkf I can see the change, but in me33k I cannot . Appreciate if anybody can  reply back soon and help me solve this issue? points awarded for sure.

    If u are talking about the text  related to a Contract by (Trx ME33K --> Header --> Texts --> Text Overview).
    Then u need to use the FM create_text and then put the import parameters as
    Text Name     =  (contract number)
    Language       = EN
    Text ID        = K00  Release order header  text put K01 for first item text K02 for second item text so on
    Text object    = EKKO       Purchasing doc. header texts
    and then call bapi_transaction_commit
    u ll be a ble to find the changes
    thnks
    kanishak

  • How to change standard text in portal

    How to change standard text in portal
    Pls reply

    Archana,
    Please post it in the relevant forum(Portal Implementation/development)
    What text do you want to change.
    Thanks
    Bala Duvvuri

  • How to impert standard text?

    hi,
    can anybody tell me how to import standard text?

    hi Sudheer
    every long text will be associated with a text id , text object, txt name
    even the program given in the above reply is also using these
    CALL FUNCTION 'SELECT_TEXT'     < from the above std prog
      EXPORTING DATABASE_ONLY = 'X'
                ID            = TEXTID
                LANGUAGE      = TEXTLANG
               NAME          = TEXTNAME
                OBJECT        = OBJECT
      IMPORTING ENTRIES       = ENTRIES
      TABLES    SELECTIONS    = SELECTIONS
                T_NAME        = TEXTNAME.
    so to pull long text of any object take the above mentioned parameters and hit the table STXH or use read_text FM

  • Hi..how we enter standard text for smartform using include text

    hi
    guru
    ..how we enter standard text for smartform using include text..
    i know only using so10 we write text..
    in smartform it asking text-object
                                     text-id,
    so what values we should give to get text

    Hi,
       Do u want to print Standard Text or the Texts that are maintained at the Transaction level.
    If it is standard text , then u use text id as ST or if it is Texts that are maintained at the Transaction level then u have to go to that specific transaction and check for that text , then go to text editor ,in the goto menu u have header data where u get the Text id , text name.... , use them in ur smartform in the INCLUDE text.
    Further u have the option of text modules in smartforms which act as standard texts, so if u r going for creation of standard texts then its better to use text modules.
    Regards,
    Shafivullah Mohammad

  • How to delete standard texts

    Hi experts,
    How do we delete standard texts i.e., the texts developed using SO10. My concern is to avoid unnecessary system memory usage / clean up.
    Regards,
    Vamshi.

    Hi Vamshi ,
    Goto SO10 and type the text-id you want to delete and then click on
    Change button. After that select the menu Text-->Delete. It will delete
    the Text ID
    or you can delete through SE78
    Regards
    Yogendra Bhaskar

  • How to use Standard text in SAP SCRIPTS

    Hi all,
    Please tell me how can we use the standard text what we have created in SO10 with sap scripts.

    Hi Gaurav
    You can create standard texts using the transaction SO10. Then to insert these standard texts in the SAPScript choose the menu, Insert->Text->Standard and choose the standard text that you want to choose.
    Alternatively, you can display standard texts in your SAP Scripts using the command:
    INCLUDE ZSTEXT OBJECT TEXT ID ST LANGUAGE EN
    where ZSTEXT refers to the Standard Text name.
    Reward pts if found usefull
    Regards
    Sathish:)

  • How to place standard text at the bottom of the last page

    Hi Gurus,
               I have a requirement to place a standard text at the bottom of the last page.Right now i am having 2 sub forms
              in a  body  page  in that one(header details) will not get overflow and only visible in the first page and the second
             body page( Item  details)   will get overflowed, till here it is working fine. Now i need to include terms and
             conditions details at the bottom of   the   last  page but i included the standard text in the context area
             and i don't know where to place that text in the layout . I tried with including
             a sub form in the master page and placed the text    in   the  bottom of that sub form but it gets repeated
              in bottom of each and every page and i tried by placing one more sub form   in the body page
               but the text is coming immediately after the item detail gets ended.I need only at the bottom of the
              page where the item details ends. Please make me to solve this problem.

    Hi,
       I gone through the link in that they set the footer part of the purchase order immediately next
      behind the body(Table) so after the table growth gets completed the footer gets displayed
      but in my case after the table growth ends it should display at the bottom of that page.For
      example if the table ends at the top of the second page ultimately the footer should be at the
      bottom of second page.If the table ends at the bottom of the first page and if the footer can't
      display the whole content in the bottom of the first page then the footer should move to the
      bottom of the second page.

  • How to customize standard text in operation tab of PM order

    Hi everybody,
    I am Rajat.
    I have question in SAP PM:
    In operation tab of PM order we have standard text, rt now i m using fresh system...kindly let me know how to enter values in that so that when i take drop down i'll see those values.
    Kindly reply with the path, for customization and t-code or path for master data both.
    Thanks
    Warm regards
    Rajat

    and IMG path - plant maintenance and customer service - maintenance and service processing - Assign standard texts for short message to order types
    Thanks
    S.N

Maybe you are looking for

  • How do I preview my video in Motion?

    I'd like to see it without all the distractions

  • Form saving problem

    dear friends, i am having problem while updating rows in database thru form this is my pocedure code: begin update vat x set vat_amt = amt * :vat.vat_rate / (:vat.vat_rate + 100) , vat_cd = :vat.vat_cd WHERE trunc(DUE_DT) >= trunc(:vat.eff_date) and

  • Premier Elements 10 Camera Raw 6.6 update fails

    Running the Camera Raw 6.6 update for Premier Elements 10 fails with the message: Update Failed ! Updates could not be applied Error log says: Elements Camera Raw 6.6 Updates Installation failed. Error Code: U44M2P7 Windows 7 64-bit What gives?  How

  • JAVA Game DEV

    Does anyone know of a site which will walk a total newbie through making a very simple game in Java. It doesn't matter how crappy the game is, just something to get the newbie started. The website is for me :) Thanks, Christopher Gillis

  • Reverse Drop-Box for ARD

    I have a mac lab at our school with 20 computers. I can copy folders to the students via unix commands when I need them to have files, but I need to find out how to have a reverse drop-box so when they drag and drop a file into a specified folder, th