How do I truncate a longer text field for use in a shorter one?

I currently have two fields one that is a Multi-line 4000 character box.  I would like to take the first 50 characters and mirror it into a small SYS short description field.
Is there a formula or a function that I can use to capture only the first 50 characters?
Thanks in advance.

Hi,
Micphone should have its own driver, you may download it from its official site and configure it.
In addition, please put your query on clients (Windows 7 or Windows 8 ) forums according to your OS version. This is a dedicated forum for System Center Operation manager related issue.
Windows 7 :
http://social.technet.microsoft.com/Forums/en/category/w7itpro/
Windows 8
https://social.technet.microsoft.com/Forums/windows/en-US/home?category=w8itpro
Regards,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Similar Messages

  • How to retrieve the data in texts field for ME23N

    hai all,
    i need to do some coding for the item texts field for PO, which can be saw under ME23N. i need to retrieve the details in the text. but i have no idea how am i going to get the data from that field, which table is it under for PO?
    please advice. thanks

    Hi,
    the texts will be stored in STXH table..u need to pass the four values TDOBJECT
    TDNAME
    TDID
    TDSPRAS...U will get the text details
    Or
    use the FM 'READ_TEXT'.
    cehck the below links
    http://www.sap-basis-abap.com/sapac002.htm
    FM READ_TEXT
    reward if helpful.
    Regards,
    Nagaraj

  • Long text field for Purchase Order help

    Hey guys,
    First, I'm VERY new to ABAP/SRM in general.  So please be patient with me.
    We have users who are entering additional text comments into SRM (when creating a new PO).
    The problem is...when they enter the text and hit <ENTER> I am getting it on the SCC side as "#" seperating the lines.
    For example...
    User types
    line 1
    line 2
    line 3
    It is appearing as line 1#line 2#line 3
    I've done some debugging, and found the filed it is referring to:
    IS_OBJECT-SC-LONGTEXT and the field is TDLINE
    But I have no idea how to fix this...is this something I can change?  We don't want to change SAP code...is there a BADI I can access???  Anything?

    Hello,
    To look for SAP OSS notes, you need a user and his password to access to SAP website:
    [http://service.sap.com/support]
    If you don't have it, ask for your team leader to give you one.
    Regards.
    Laurent.

  • How to pass long text field in BAPI_MATERIAL_MAINTAINDATA_RT

    Hi Guru's,
    I am using funtion module BAPI_MATERIAL_MAINTAINDATA_RT for uploading material master.
    In this I have to pass long text field for that one I am passing data to   MATERIALLONGTEXT table but it is throwing fallowing error.
    Long text for article THIS IS FOR TESTIN has no header segment.
    Will any body please guid me what are the parameters I have to pass for long text field.
    Thanks,
    Santhosh

    Hi ,
    your config is missing , what is ur TD object ?
    you can cross check in SE75-->Under MARA
    regards
    Prabhu

  • Problem viewing text in long text field

    Hi,
    I have a long text in the screen and it takes 65 characters per line in the long text field. iam able to populate data in the long text field but the text in the long text field is truncating in between the words as shown below.
    SAP Business One users can access and ru
    n reports by using the UI API provided as
    part of the SAP Business One SDK and the
    Crystal Reports .Net Winform viewer. Rea
    d the new ---
    Could any one suggest how to rectify this, my requirement is to end the lines at spaces like
    SAP Business One users can access and run
    reports by using the UI API provided as
    part of the SAP Business One SDK and the
    Crystal Reports .Net Winform viewer. Read
    the new ---
    Appriciate your time.
    Reward points for useful answer.
    Thanks,
    Sreeni.

    here is how I would do it:
    1) convert the input (short text) table to string
    2) apply this code to the string:
    DATA: lv_text TYPE text40,
              lv_length TYPE i.
    WHILE lv_string IS NOT INITIAL.
      lv_length = 39.
      lv_text = lv_string.
      WHILE lv_text+lv_length(1) NE space AND lv_length GE 0.
           lv_text = lv_text(lv_length).
           lv_length = lv_length - 1.
      ENDWHILE.
      IF lv_length GE 0.
         APPEND lv_text TO lt_short_text.
      ENDIF.
       lv_length = lv_length + 1.
       SHIFT lv_string LEFT BY lv_length PLACES.
    ENDWHILE.

  • How to download and upload long text for project, WBS , Network,

    Hi all,
    I have two isssues.
    1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_PROJECT_GETINFO
    BAPI_NETWORK_GETINFO
    BAPI_BUS2054_GETDATA
    I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
    The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
    2)  I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
    All help will be greatly appreciated and rewarded.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    I don't think there is any BAPI to do it.
    We are doing it by read_text & edit_text . required fields for text name can be fetched by following select
      if not e_activity[] is initial.
        select aaufnr aaufpl baplzl bobjnr b~vornr
          into corresponding fields of table t_longtext
          from afko
            as a
        left join afvc
            as b
            on aaufpl = baufpl
           for all entries in  e_activity
           where a~aufnr = e_activity-network
           and a~aufnr is not null.
      endif.
          txtname = wa_longtext-objnr.
          replace c_nv in txtname with sy-mandt.

  • G/L Account Long Text Field in Display

    Dear Sir,
    I want G/L Account long text field be displayed along with G/L account number in G/L Account line item display report (FBL3N)
    I cheched the layout, the option of G/L account number is available but option of G/L account Long text is not available.
    Kindly guide me as to how can I do it?
    Regards
    Chirag Shah

    You must do some development for it.
    You can add additional field to FBL*N reports with using BTE exit.
    First of all, if you don't use BTE before, you must create a product on FIBF.
    Call FIBF transaction -> Settings -> Products -> ...of a customer
    Create a new line,
    Product: ZFI
    Text: BTE Products for FI Exit
    Product active: tick checks from activation.
    Then you must call SE11 for structure RFPOS.
    You must use append structure function for this structure and you can define ZFI_RFPOS append structure
    Define 4 fields.
    Component: KUNNR - Component type: KUNNR
    Component: NAMED - Component type: NAME1
    Component: LIFNR - Component type: LINFR
    Component: NAMEK - Component type: NAME1
    Then save and active your RFPOS structure.
    After that, you must do same step for structure RFPOSX.
    Then go to SE37 and copy from SAMPLE_INTERFACE_00001650 to ZFI_INTERFACE_00001650 FM.
    After copy action, you must uncomment this line on ZFI_INTERFACE_00001650 FM's source code. It's very important;
    E_POSTAB = I_POSTAB.
    Then you should add some ABAP code for getting customer & vendor details.
    I give you some examples, you can use it. (Next message on this thread, please check)
    Then save and active FM.
    Call FIBF transaction again.
    FIBF -> Settings -> Process Modules -> ...of a customer
    Define a new line.
    Process: 00001650
    Function Module: ZFI_INTERFACE_00001650
    Product: ZFI
    and this customizing.
    Then you go to SE38 transaction.
    start report RFPOSXEXTEND. After starting, a pop-up appears, you must click YES.
    After those operations, you can see customer/vendor code and their names on FBL3N.
    ABAP source example,
    TABLES : bseg, kna1, lfa1.
    IF sy-tcode = 'FBL3N'.
      CLEAR: bseg.
      SELECT SINGLE *
      FROM bseg
      WHERE bukrs = i_postab-bukrs
           AND belnr = i_postab-belnr
           AND gjahr = i_postab-gjahr
           AND koart = 'K'.
      IF sy-subrc EQ 0.
        e_postab-lifnr = bseg-lifnr.
        CLEAR: lfa1.
        SELECT SINGLE *
        FROM lfa1
        WHERE lifnr = bseg-lifnr.
        IF sy-subrc EQ 0.
          e_postab-namek = lfa1-name1.
        ENDIF.
      ENDIF.
      CLEAR : bseg.
      SELECT SINGLE *
      FROM bseg
      WHERE bukrs = i_postab-bukrs
           AND belnr = i_postab-belnr
           AND gjahr = i_postab-gjahr
           AND koart = 'D'.
      IF sy-subrc EQ 0.
        e_postab-kunnr = bseg-kunnr.
        CLEAR: kna1.
        SELECT SINGLE *
        FROM kna1
        WHERE kunnr = bseg-kunnr.
        IF sy-subrc EQ 0.
          e_postab-named = kna1-name1.
        ENDIF.
      ENDIF.
    ENDIF.

  • Need to find table/field behind "Item long text" field in Notes tab in FB70

    Hello,
    To print a custom FI invoice, I need to access the data entered in the "Item long text" field of the Notes tab in FB70. To test, I used 5000 characters in that field to make sure it stood out from the rest of the data. F1 help does nothing on that field, and even running an SQL trace (ST05) doesn't show the text in that field being entered into any table. I tried F1 on a nearby field and got a structure instead of a table, so I investigated the structure through SE11 but found no character field with such a large capacity. How else can I find where that field is stored?

    Thanks! It took a while, but with your help and a few other pages I managed to piece together an answer.
    Vinod helpfully explained that the text name is a concatenation of various fields, but didn't specify how to find the line item ID. If you go to table STXH (as hinted by Brad and confirmed [here|http://fuller.mit.edu/SAPWebDocs/LongComment.html]) and search for texts created today (or whenever you were testing), you'll see the text name ends in '001' after GJAHR, so the line item ID is '001' regardless of how many line items you enter in the invoice.
    Armed with that info, you can call READ_TEXT and loop through the results to concatenate the contents of each TDLINE field. (FB70 automatically breaks the user-entered text into different lines even if the user didn't press Enter, and each line gets its own record in the results.)
    Thanks again,
    Pedro

  • To Make the Long text field as required using OA Framework Personalization

    Hi All
    In IProcurement requisition, we have long text field called 'Justification' a long text field. I have made this field as mandatory by setting the required property as 'Yes' at site level. This works for Most of the cases. However if the user just presses Enter key and skip without entering something in this field . So how to stop the user without entering something except spaces or enterkey to proceed further.
    Regards
    Rajkumar

    Hi,
    Very Interesting question, I never thought of it.
    In your case you may try to extend the controller of that page and in the controller trim the text and set that value to the text.
    In other way, You can try in USER hook function : POR_CUSTOM_PKG package, check if you are getting that value.
    Regards
    Apurba K Saha

  • BAPI_ACC_DOCUMENT_POST long text field missing

    Hi,
    I will have to transfer our vendor open items from v 3.1 to ERP 2004. I
    am using <b>BAPI_ACC_DOCUMENT_POST</b> to upload these open items. However, I
    cannot find the <b>'LONG TEXT'</b> field in the said BAPI. In using <b>F-02</b>, a
    long text field/button is available. <u><b>How can i post an entry in the long text
    field of the line item in f-02 using BAPI_ACC_DOCUMENT_POST</b></u>.
    Also, i have used the extension1 table and a BTE (note 487722) in
    uploading the posting key. Since field bschl is available in table
    accit, there was no problem in doing this. However, i cannot seem to
    find the field long text in this table. Is it available? If not, what
    can I do with the above situation.
    Thanks.

    Hi
    Excuse me! you can't use RFBIBL00, use the fm SAVE_TEXT.
    After calling the BAPI you should have the number of FI document will be created and know in which item you need to insert the long text so:
    THEAD-TDOBJECT     = <Object text>.
    THEAD-TDNAME(4)    = <Company code>
    THEAD-TDNAME+4(10) = <Document number>
    THEAD-TDNAME+14(4) = <Fyscal year>
    THEAD-TDNAME+18(3) = <Item number>.
    THEAD-TDID         = <Id text>.
    THEAD-TDSPRAS      = <Language>.
    THEAD-TDLINESIZE   = 72.
    These are the header data, transfer the text in LINES parameters.
    Max

  • Special Characters in Long Text Field of FI Documents

    Hi,
    Users entered the following in the long text field of a FI document:
    "Settlement of claims for direct shipment (Refer to XXX/YY-053/2009, XXX/YY-018/2009, XX2120000031 and X2120000033)"
    The default editor used is the one which looks like the MS Word.
    When we changd to the other editor (Goto > Change Editor), we see the following:
    "Settlement of claims for direct shipment to Thailand (Refer to"
    "XXX/YY-053/2009<(>,<)> XXX/YY-018/2009, XX2120000031 and X2120000033)"
    How did "<(>,<)> " comes about?
    Any ideas?

    I'd probably use a regex of "allowed" characters rather than a list of "disallowed" characters, but thats just a difference in approach.
    I would probably use a regular expression - alphanumeric is fairly easy to check
    String value = request.getParameter("enteredField");
    boolean alphaNumericOnly = value.matches("\\w+");As a matter of being nice to the user, you can also do this check in javascript on the client side.
    ALWAYS validate server side.
    Optionally validate client side to give the user a better experience (less round trip requests)
    Cheers,
    evnafets

  • Is it possible to Create a Long Text Field (more than 255 Char Long)?

    Is it possible to Create a Long Text Field (more than 255 Char Long) as like Description field in Service Request Object??
    Thanks!

    Hi
    User can only create custom Long text field (255 Charcter) . Currently system does not support custom note creation

  • How to embed images in long text of PM Notifications/Orders

    Dear Sir,
    How to embed images in long text of PM Notifications/Orders? Kindly help.
    Thanks & Regards
    PM Team.

    Hi,
      Unfortunately, You will not be able to view the graphics within the Long text editor screen.Only Limited word functionality is available on these editors.
      You will have to store these pictures separately as an attachment, through generic object services and then view them through that.
    Regards
    Narasimhan

  • How to Add/Concatenate to a text field, values selected in a combo box

    I have a combo box form field that allows the user to select a value from a list and click on an Add button. The Add button should add/concatenate the vaue selected to a text field in order to create a list of values selected. I'm not sure how to do this using Javascript in Acrobat? I know I need to add the javascript to the Add button's Mouse Up action. Any help would be greatly appreciated. Thanks!

    Thanks so much - it works!
    >>> "Gilad D (try67)" <[email protected]> 9/25/2013 9:16 AM >>>
    Re: How to Add/Concatenate to a text field, values selected in a combo box created by Gilad D (try67) ( http://forums.adobe.com/people/try67 ) in JavaScript - View the full discussion ( http://forums.adobe.com/message/5712118#5712118 )
    Let's say the text field's name is "Text1", and the combo is called "Combo1". You can then use this code as the MouseUp script of the Add button:
    var f1 = this.getField("Text1");
    var f2 = this.getField("Combo1");
    if (f1.value=="") f1.value = f2.value;
    else f1.value = f1.value + ", " + f2.value;
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5712118#5712118
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5712118#5712118
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5712118#5712118. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in JavaScript by email ( mailto:[email protected].com ) or at Adobe Community ( http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=3286 )
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to upload and download Long text for WBS, Project, Network

    Hi all,
    I have two isssues.
    1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
    BAPI_PROJECTDEF_GETDETAIL
    BAPI_PROJECT_GETINFO
    BAPI_NETWORK_GETINFO
    BAPI_BUS2054_GETDATA
    I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
    The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
    2)  I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
    All help will be greatly appreciated and rewarded.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    One thread in the correct forum is good enough, no need to double post across ABAP forums.  Thanks.
    Regards,
    Rich Heilman

Maybe you are looking for