Restrict lines of Text

Hi there,
I have a business request to restrict the amout of text an end-user can enter into the "miscellaneous text" text field in the VL02 transaction.
Has anyone had any experience of doing this?
Thanks for your help, points awarded.
Colm

Turns out the BA just wanted me to restrict the text on output so I didn't have to implement a user exit.
In case anyones interested basically i just used the READ_TEXT_INLINE function module to read the text and just display the first two line on the script. Cheers for the help anyway guys.
   DATA: TEXT_NAME LIKE THEAD-TDNAME.
    READ TABLE I_TVBDPL INDEX 1.
    TEXT_NAME = I_TVBDPL-VBELN.
    IF NAST-KSCHL = 'ZBUS'.
      CALL FUNCTION 'READ_TEXT_INLINE'
       EXPORTING
            ID              = 'Z987'
            INLINE_COUNT    = '1'
            LANGUAGE        = 'E'
            NAME            = TEXT_NAME
            OBJECT          = 'VBBK'
*    IMPORTING
*         HEADER          =
       TABLES
            INLINES         = STAB
            LINES           = PTAB
       EXCEPTIONS
            ID              = 1
            LANGUAGE        = 2
            NAME            = 3
            NOT_FOUND       = 4
            OBJECT          = 5
            REFERENCE_CHECK = 6
            OTHERS          = 7.
      IF SY-SUBRC = 0.
        READ TABLE PTAB INDEX 1.
        GV_LINE1 = PTAB-TDLINE.
        READ TABLE PTAB INDEX 2.
        GV_LINE2 = PTAB-TDLINE.
      ENDIF.

Similar Messages

  • Line item texts restriction for GL accounts

    Hi Gurus,
    I had lots of the Line item texts defined at the client level which can be choosen at the time of document postings.Can we restrict the line item texts with respect to GL accounts number to which we are postings.i.e.If I choose a particular GL account only few of the texts assigned to GL accounts needs to be displayed for text field.
    Thanks in advance.
    Regards,
    Abhinandan

    Hi Parul,
    The fast entry for invoices and credit memos are possible in SAP. Pl refer the URL link for detailed answer to ur question:
    'http://help.sap.com/erp2005_ehp_03/helpdata/EN/20/7248d7852d11d3b84700a0c930dc87/frameset.htm'
    Regards,
    Amish.

  • Printing two lines of text in Print Module

    Is it possible to print two, or more lines of text, say on a contact sheet, such as filename and caption. If so, how?

    Lightroom automatically wraps text under the thumbnail in contact sheets. The Text Template Editor does not allow you to enter line breaks. So, if your Filename is long enough to fill the first line, the caption will start with the second. If not, you can tweak the template somehow so that it looks the way you want.

  • Document line item text in Clearing document

    Dear All,
    Document line item text
    My client want the vendor invoice line item text(BSIK-SGTXT) to be captured in the corresponding clearing document line item text field(BSAK-SGTXT).
    (i.e) The vendor invoice and its payment clearing document should have the same text in the document line item text filed.
    According to me i can use  a substition rule and a user exit to assign the values. but here comes a problem* i have one clearing document against 3 to 4 vendor invoice documents* so my programming logic has got stucked here? like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here.
    Thank you
    Regards,
    Vasanth D

    like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here
    Why don't you discuss the issue with your client?  As you said, if you pay 5 invoices in a single run, the payment document item text can't carry all of those texts unless you use the long text.  What is the reason for the requirement?  Perhaps there's another solution.

  • Report for Vendor line item with GL line item text

    Hello SDN,
    We need to add the GL Line item text to a vendor line item report. I don't think adding a GL field is available option in the FBL1N report. Is there a way to display the Vendor name, Vendor number, Open amount and the GL line item text in a report without ABAP invovlement?
    I would really appreciate your help. Thank you.
    Edited by: nsap_fico on Aug 10, 2011 6:29 PM

    Some alternative is in KSB1 (Cost center line item report) - you can change the layout and include offsetting account and its text.
    But, in vendor line item report, if you want vendor number, vendor number, GL account number (offsetting) account and its text, then you should go with abap development.
    Have a look at the following note, if really serves your purpose.
    Note 1504612 - Line items: Offsetting account info (BAdI FI_ITEMS_CH_DATA)

  • How can I make a gray box or gray screen in Pages over a few lines of text?

    How can I make a gray box or gray screen in Pages over a few lines of text?

    Thanks. Almost what I was looking for.
    While that makes for a gray over the lines, it still does not form a box.
    Any other suggestions to form a solid rectangular gray box?

  • How can I change or reduce the line spacing to single in a "multiple lines of text" column in a list?

    We keep many logs in a simple list format. One of the columns requires a description using the "multiple lines of text" default column. Sometimes the person making the entry needs to complete about 20-30 lines of text. Users are requesting we reduce
    the amount of space advanced between lines to save space and be more concise. Is there a way to reduce the line spacing for the column entries to single spacing without code?
    Maree N Percival

    We determined that the site column settings were incorrect for allowing single spacing, we changed the site column setting from "Enhanced rich text (Rich text with pictures, tables, and hyperlinks)" to  "Rich text (Bold, italics, text alignment, hyperlinks)"
    and it is now keeping the text in single spaced lines.
    <label for="onetidRichText">Specify the type of text to allow:</label> 
    <input id="onetidRichTextPlain" name="RichText" title="Plain text" type="radio" value="PLAIN" />
    <label for="onetidRichTextPlain">Plain text   </label>
    <input id="onetidRichTextCompatible" name="RichText" title="Rich text (Bold, italics, text alignment, hyperlinks)" type="radio" value="COMPATIBLE" />
    <label for="onetidRichTextCompatible">Rich text (Bold, italics, text alignment, hyperlinks)</label>
    <input id="onetidRichTextFullHtml" name="RichText" title="Enhanced rich text (Rich text with pictures, tables, and hyperlinks)" type="radio" value="FullHtml" />
    <label for="onetidRichTextFullHtml">Enhanced rich text (Rich text with pictures, tables, and hyperlinks)</label>
    Maree N Percival

  • How copy just line in text file with cat? (SOLVED)

    Hi.
    How i make to copy just only line in text file with cat?
    For example:
    [:0.0]
    file=/home/Arch/./.wallpaper.png
    mode=0
    bgcolor=# 0 0 0
    I want copy just "/home/Arch/./.wallpaper.png" part.
    Actually i want create a shortcut for last wallpaper set from Nitroget, then i put this in SLim background.
    Recently i use hsetroot for wallpaper (~/.wallpaper.png) and i create a shortcut in /usr/share/slim/theme/MYTHEME whith ln -s ~/.wallpaper.png /usr/share/slim/theme/MYTHEME/background.png.
    I want make a same with Nitrogen.
    I now this looks like crazy, but...
    Sorry my English.
    Last edited by kramerxiita (2008-06-04 16:50:48)

    moljac024 wrote:
    kramerxiita wrote:
    moljac024 wrote:How can you make SliM change the background ? You link the theme background to another file ?
    Yes. In theme directory i put background.png shortcut for my wallpaper. So, when a change wallpaper, slim background change too.
    Example:
    ln -s mywallpaper.png /usr/share/slim/themes/default/background.png
    So, Slim background always is my wallpaper.
    So the wallpaper has to be a *.png ?
    No, jpg is possible. But when you create a symbolic link, remember put the extension too. If change png to jpg, change a symbolic link extension.
    But, remember if slim theme directory have background.png and background.jpg, Slim always choice .png. So, put only one this.

  • Smartforms: How to CC email & Include a few lines of Text in Body of email?

    I have created a smartform and have it outputting PDf documents and sending then via e-mail and it all works great.  Except u2026 now I would like to CC someone and also have a few lines of text in the e-mail.  Does anyone have any ideas?
    Here is my code:
    IF p_mail = 'X'.
        wa_ctrlop-device = 'MAIL'.
        PERFORM mail_recipient_object.
        PERFORM mail_sender_object.
        PERFORM mail_appl_object CHANGING g_mail_app_obj.
      ENDIF.
      LOOP AT my_table.
        CONCATENATE 'ECS' comp_year izhr_emp_comp_summary-emp_lname INTO wa_outopt-tdtitle separated by space.
        CALL FUNCTION func_mod_name
          EXPORTING
            CONTROL_PARAMETERS      = wa_ctrlop
            MAIL_APPL_OBJ           = g_mail_app_obj
            MAIL_RECIPIENT          = email_recipient
            MAIL_SENDER             = email_sender
            OUTPUT_OPTIONS          = wa_outopt
            USER_SETTINGS           = u2018Xu2019
          IMPORTING
            DOCUMENT_OUTPUT_INFO    = document_output_info
            JOB_OUTPUT_INFO         = t_otfdata
          TABLES
            I_MYTABLE                 = imy_table
          EXCEPTIONS
            FORMATTING_ERROR        = 1
            INTERNAL_ERROR          = 2
            SEND_ERROR              = 3
            USER_CANCELED           = 4
            OTHERS                  = 5.
       ENDLOOP.
    Determines the Recipent of the E-Mail
    FORM mail_recipient_object.
      CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
        EXPORTING
          ip_mailaddr       = email_address     "E-mail Addr:Input Screen
          ip_type_id        = 'U'               "Internet Address
        IMPORTING
          ep_recipient_id   = email_recipient   "Recipient Obj Key
        EXCEPTIONS
          invalid_recipient = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
        MESSAGE e531(0u) WITH text-003.                      "Error E-Mailing
      ENDIF.
    ENDFORM.    "mail_recipient_object.
    *Sender of E-mail
    FORM mail_sender_object.
    CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'
        EXPORTING
          ip_sender      = sy-uname             "User Logged in
        IMPORTING
          ep_sender_id   = email_sender
        EXCEPTIONS
          invalid_sender = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
        MESSAGE e531(0u) WITH text-e15.                      "Error E-Mailing
      ENDIF.
    ENDFORM.    "mail_sender_object.
    *Creates Mail Application Object to E-Mail Smartform
    FORM mail_appl_object CHANGING g_mail_app_obj.
      SELECT SINGLE * FROM soud WHERE sapnam LIKE sy-uname AND deleted = ' '.
      IF sy-subrc NE 0.
        CALL FUNCTION 'SO_USER_AUTOMATIC_INSERT'
          EXPORTING
            sapname            = sy-uname
          EXCEPTIONS
            no_insert          = 1
            sap_name_exist     = 2
            x_error            = 3
            sap_name_not_exist = 4
            OTHERS             = 5.
      ENDIF.
      CLEAR sofmfol_key.
      sofmfol_key-type = 'FOL'.
      sofmfol_key-year = soud-inbyr.
      sofmfol_key-number = soud-inbno.
      bor_key = sofmfol_key.
      IF NOT bor_key IS INITIAL.
        swc_create_object folder 'SOFMFOL' bor_key.
        IF sy-subrc = 0.
          swc_object_to_persistent folder g_mail_app_obj.
          IF sy-subrc NE 0.
            CLEAR g_mail_app_obj.
          ENDIF.
        ENDIF.
      ELSE.
        CLEAR g_mail_app_obj.
      ENDIF.
    ENDFORM.    "mail_appl_object.

    Get rid of the smartform-based mail sending code if you can.  That interface is quite old, simplistic, and inflexible (i.e., you can't do what you're asking).  I would use class CL_BCS.  It's especially much easier once you have developed a (custom) standard email wrapper class for sending various types of emails, including smartform-based PDF-attached emails.  You can even go with HTML and dress-up your emails a bit.

  • How do I add space between lines of text in the same cell on Numbers 3.0.1

    I just updated to Mavericks 10.9. In numbers, I used to be able to uncheck a box in the inspector that would make it so the Return key did not move to the next cell, but instead allowed me to add more space between lines of text in the same cell.
    How can I do this in the new version of numbers?

    HI ilb,
    Numbers 3 is a complete rewrite of the application. This preference option hasn't (yet) been included, but N3 is very much a 'work in progress. A word to Apple via Provide Numbers Feedback asking to have this option included in Numbers 3 might be a useful step. You'll find Provide Numbers Feedback in the Numbers menu in Numbers.
    Regards,
    Barry

  • How do I create 2 motion tweens for one line of text?  the text needs to "fly-in-right", I can do that,

    how do I create 2 motion tweens for one line of text?  the text needs to "fly-in-right", I can do that, then it needs to "fly-out-bottom" again, I can do that, but not on the same line of text...any ideas...

    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
    ORA-01403: no data found : Unable to fetch row multiple automated row fetch
    On your second question, the manual process should work provided:
    P_ID has a value when the process executes. You can do it this way:
    i. Make this process as a on-load After/Before header process
    ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes)

  • Display more than one line of text for events?

    I couldn't find this in the forum... I just recently updated to Leopard. Now when I put events in iCal, it only displays one line of text in the month calendar view. I'd really like to see the whole description of the event, even if it's two or three lines. I can't find anything in preferences that addresses this, and various searches are not yielding anything. Help?
    -mel

    Hi there.
    Usually in iCal if you want more than one line of text for timed events, resizing the window will help. Under all-day events, iCal will always show you one line of text, but if there is more space it will show you more text. So, also resizing the window for this will help to see the text.
    Take care.

  • How do I split each page into a PDF and name them after a line of text on the split page?

    All,
    I am running a report that is creating hundreds of letters to be sent to customers.  When I run the report it creates one large PDF (one letter = one page).  To help with a specific business solution I need to split each page into an individual PDF.  I know I can extract the pages using the extraction tool.  I have also been able to duplicate this from the Javascript console, but only with generic names.  The problem is that I need each PDF named after the customer's account number.  The account number is listed on the page that I am extracting, but I am having a hard time parsining the text on the pages to find it.
    I need to be able to turn each page into a seperate PDF and then rename that PDF to match the account number list on the page.
    The account number, is of course, different for every customer and has varied prefixes.  The line of text that I need to read starts like this:
    Account Number#: NJA00001
    I need to just pull the NJA00001.
    I would really love to automate this process.
    Can you help me with this?  Thanks in advance.
    PS: I am a little rusty on my Javascript, its been a couple years.

    This can probably be achieved with a custom-made script, but it's not possible to know for sure before seeing some sample files.

  • Error when adding image in-line with text

    When using some of my templates I have no problem in putting
    a small graphic (a pdf icon) in-line with text. Yet with others the
    insertion of the same small graphic forces a newline before and
    after the graphic.
    If the text and image is placed in an editable region of the
    template, but not within a table cell all is ok.
    If the text and image is place within a table cell within the
    editable region the problem arises. I am sure there is something I
    have specified incorrectly but cannot discover what it is.
    An example of where it works fine is:
    www.digitalfox.co.uk/parryassociates/products.htm
    An example of where it doesn't work is:
    www.bournemouthlittletheatre.co.uk/membership2.htm
    I am using Dreamweaver 8 within Studio 8 and run under
    Windows XP.
    Can anyone help please?
    Regards
    Roger Sansom

    Hmm -
    <style type="text/css">
    <!--
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    @import url("nav-bar-top/nav-bar-top.css");
    Is this the belt and bracers approach? 8)
    Anyhow, your problem is in the very first line of one of
    those (take your
    pick) -
    TD IMG {
    DISPLAY: block
    That causes images in table cells to behave as a block tag.
    Block tags
    force all adjacent content to the next line.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "RogerLS" <[email protected]> wrote in
    message
    news:[email protected]...
    > When using some of my templates I have no problem in
    putting a small
    > graphic (a
    > pdf icon) in-line with text. Yet with others the
    insertion of the same
    > small
    > graphic forces a newline before and after the graphic.
    >
    > If the text and image is placed in an editable region of
    the template,
    > but
    > not within a table cell all is ok.
    >
    > If the text and image is place within a table cell
    within the editable
    > region
    > the problem arises. I am sure there is something I have
    specified
    > incorrectly
    > but cannot discover what it is.
    >
    > An example of where it works fine is:
    > www.digitalfox.co.uk/parryassociates/products.htm
    >
    > An example of where it doesn't work is:
    > www.bournemouthlittletheatre.co.uk/membership2.htm
    >
    > I am using Dreamweaver 8 within Studio 8 and run under
    Windows XP.
    >
    > Can anyone help please?
    >
    > Regards
    > Roger Sansom
    >
    >
    >

  • Reading Individual Lines of Text Into An ArrayList or Vector From A File

    I am trying to read each individual line of text of a .txt file into an ArrayList or Vector. I seem to get the same results no matter which Object I am using (ArrayList or Vector). The text file is a comma-delimited text file to be used as a database. I want to separate each line as an individual record then dump it into an ArrayList or Vector and have them loop through a StringTokenizer() class so that I can be sure each line has the correct number of fields before I commit it to a serialization file. Currently, the proper amount of records seems to be forming in the initial part of the program, I am just remiss at properly placing them in the Vector, or StringTokenizer classes so I can further manipulate them. I'm using the LineNumberReader class to get line numbers to use as record numbers and for loop indexes. I'm not sure (obviously) if this is a correct way to do it or not.
    Any help is greatly appreciated in advance.
    Thanks for all your time.
    int n = 0;
              try {
                    * read each individual line and count it as a separate record. 
                    * place each record into an array or may be a string if it has 9 tokens
                    * if a record hasn't got 9 tokens, it isn't a record
                    * place each array or string into a Vector
                   in = new LineNumberReader(new FileReader(filename));
                             while ((record = in.readLine()) != null) {
                             n = in.getLineNumber();
                             rawData = new Vector();     
                             for (int i = 0; i < n; i++) {
                                  rawData.add(record);     
                             if (record == null)
                             break;
    *The following System.out.println() statement shows that all lines are correctly retrieved from the text file
    *as separate records
                        System.out.println("Record No. " + n +  "= " + record);     
                   //Debug
    /** When these print lines execute it reveals that only the last record has been inserted into the Vector as
    *    many times as I have records in the text file.
                        System.out.println("Number of Records = " + n);
                        System.out.println("VectorSize = " + rawData.size());
                        System.out.println("First rawDataElement = " + rawData.firstElement());
                        System.out.println("Second rawDataElement = " + rawData.get(1));
                        System.out.println("Third rawDataElement = " + rawData.get(2));
                        System.out.println("Fourth rawDataElement = " + rawData.lastElement());
    *  Next run each record through a StringTokenizer to be sure that there the correct number of fields present
    *  If it contains the correct number of fields, dump it into an alternate ArrayList or Vector.
    *  As it is now, the StringTokenizer gives a NullPointerException
                        for (int i = 0; i < n; i++) {
                             StringTokenizer recordSet = new StringTokenizer((String) table.get(n), ",");
                                 while (recordSet.hasMoreTokens()) {
                                     if (recordSet.countTokens() == 9) {
                                           data = new Vector();
                                           data.add((Object) recordSet.nextToken(","));
                                           System.out.println("Vector data size = " + data.size());
                                           System.out.println("Second dataElement = " + data.get(0));
                            System.out.println("String Tok recordSet = " + recordSet.countTokens());                                  System.out.println("Number of Records = " + n);
                        System.out.println("First dataElement = " + data.firstElement());
                        System.out.println("Second dataElement = " + data.get(0));
                        System.out.println("Third dataElement = " + data.get(2));
                        System.out.println("Fourth dataElement = " + data.lastElement());
                   } catch (FileNotFoundException e) {
                        System.out.println(e);
                   } catch (IOException e) {
                        System.out.println(e);
         }

    I think your logic is broken.
    rawData = new Vector();
    creates a new instance of Vector for every record.
    Your add() within a for loop adds the same record to the Vector n times. I think what you really want is something like this:in = new LineNumberReader(new FileReader(filename));
    rawData = new Vector();
    while ((record = in.readLine()) != null) {
        n = in.getLineNumber();
        rawData.add(record);     Mark

Maybe you are looking for

  • How do I get into an account that has an email address that doesn't exist anymore?

    Some background info: Over the course of a decade I have downloaded a lot of songs with a bunch of different accounts. This all started way before home sharing and iCloud and all that jazz. Anyways, I was in middle school, so my songs came off my mom

  • Update and can't get library to repair

    After updating my OS X to Yosemite, 10.10.2, In order to get iPhoto working I pdgraded to version 9.6.1. When I go to open it, I get this window. I select repair, Enter in my password and it appears try to do its thing, but gives me the following mes

  • Change HOME page in portal

    hello forum, Here is quite a newbe question I suppose.. Is there a fairly easy method to change the content of the iViews on the HOME page in the portal? We wish only to change the text in the 'SAP Enterprise Portal' iView (com.sap.portal.welcome.iVi

  • Disable tabs at runtime (WebDynpro Java - tab strip)

    I have a tab strip view set and want to disable the navigation to some embedded views at runtime. Tab 1 contains a view for selecting items. If the selection does not return any values from the database I want to disable tab 2 ("the user shall not be

  • Major Security Fail since OSX Update - Password Request from Screensaver & Sleep Mode

    Like me, I'm sure you walk away from your Mac with the knowledge that your computer is safe from prying eyes once the screensaver or sleep mode activates. Not anymore..! Since the recent 10.10.3 OSX update to fix a hidden backdoor API security issue,