Need the opposite of the Mid function for String fields

My report has a field for last name and I only want the first 14 letters of each last name to show on the report.  I figured out how to show the letters beyond 14 using the Mid function.  Is there a function to show the first 14 (ie., the opposite of the Mid function)?

Hi Shannyn,
Use this formula:
Left(,14)
This will give you the first 14 letters of each last name field.
I hope this helps.
Regards,
Zack H.

Similar Messages

  • Assigning search help (F4 functionality ) for recipient field in IW32

    Hi,
    my requirement is to assign search help (F4 functionality) for recipient field in components tab of IW32. anybody help me to assign search help for it. same way i need to assign that in MIGO, MB21, MB1A goods recipient field.

    hi,
    refer to the following link:
    http://www.saptechies.com/how-to-add-f4-help-to-a-field-on-screen-module-pool/
    i hope it helps
    regards

  • Can I restore the prior File print command functionality for Google maps?

    Printing Google Maps, recently the file command on Firefox only prints the map and not the directions also. The map and directions both used to print. I am aware that there is the print link near the map, this prints a much larger map and causes trouble with our ISA server. This link requires full access to the Google.com site. We have restricted access to the maps.google.com for employee productivy reasons. My question is can I restore the prior printing functionality? The printing works fine with I.E.

    It's either that or finding other software for your scanning needs. For example, Image Capture comes with OS X, VueScan 9.2.09, ExactScan Pro 2.24.
    Alternatively, partition your hard drive and install Snow Leopard on another volume.
    To resize the drive do the following:
    1. Open Disk Utility and select the drive entry (mfgr.'s ID and size) from the left side list.
    2. Click on the Partition tab in the DU main window. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive. Use the Snow Leopard installer DVD to install Snow Leopard on your new volume.
    It would be wise to have a backup of your current system as resizing is not necessarily free of risk for data loss.  Your drive must have sufficient contiguous free space for this process to work.

  • Why does my Dreamweaver do the opposite of the tutorial in "Digital Classroom by Jeremy Osborn/AGI"

    Hello my name is Rich and I’ve recently purchased the Digital Classroom book by Jeremy Osborn and the American Graphics Institute for DreamWeaver CS5.5.
    I have been trying to follow along with the lessons on the disc but I’m having trouble getting my divs to stack up below my header the way the instructor shows on the disc provided.
    The disc describes and shows the instructor creating a div for the container. next he draws an AP Div for the header...my problem is, when I add additional divs for my navigation bar, sidebar, body and footer, the divs all stack up at the top of my page, over top of the header! when I go into code view from there, I can clearly see that the divs are in order beneath the “header” just how they should be.
    In the instructional video, when I switched from lesson 5 to lesson 6, the instructor had already inserted other divs (probably to save time) he did however show how to add additional divs but his divs all stacked up below his header!
    What gives? Just for kicks, I tried doing the exact same thing only I didn’t create the header using the “AP Div” button, I used the “insert div” button. I worked my way upwards starting with the footer, then my sidebar, body, navigation bar and then my header. Does the header need to be created with the AP Div button?
    Any help you can give me would be greatly appreciated, thank you!
    Sincerely,
    Rich Christman

    APDivs are removed the normal document flow.  As such they should be avoided except for rare situations like lightboxes or multi-level drop-down menus. 
    Default CSS positioning (static or unspecified) is all that is needed for 98% of layouts.  
    HTML & CSS Tutorials - http://w3schools.com/
    Learn CSS positioning in 10 Steps
    http://www.barelyfitz.com/screencast/html-training/css/positioning/
    How to Develop with CSS?
    http://phrogz.net/css/HowToDevelopWithCSS.html
    =======================
    Beginner CSS Templates -
    PVII CSS Templates - (commercial products)
    http://projectseven.com/products/templates/index.htm
    PVII Column Composer Magic (commercial extension for DW)
    http://projectseven.com/products/tools/composer/index.htm
    Web Assist CSS Sculptor (commercial extension for DW)
    http://www.webassist.com/dreamweaver-extensions/css-sculptor/
    Not Just a Grid CSS Framework (free)
    http://www.notjustagrid.com/demo.asp
    EZ-CSS Templates (watch the screencast to see how it works)
    http://www.ez-css.org/css_templates
    Dreamweaver CSS Templates for beginners (free)
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
    New DW Starter Pages (free)
    http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How to achieve same functionality for String as java in oracle 10g

    Example:
    In java if I use
    --------------->>>
    String.format("%03d", 11) then it will give me result 011
    String.format("%03d", 1111) then it will give me result 1111
    I need same result in Oracle also for a stored procedure. I have used to_char() and lpad() both the function but couldn't get the desirable.
    I'm new to this. Please forgive for this silly question and help me.

    to_char, like this:
    with my_tab as (select 11 col1 from dual union all
                    select 1111 col1 from dual union all
                    select 8 col1 from dual)
    -- end of mimicking data in a table called my_tab
    select col1, to_char(col1, 'fm9999099')) formatted_col1
    from   my_tab;
          COL1 FORMATTED_COL1
            11 011          
          1111 1111         
             8 008  ETA: You need to make sure that the format mask in the to_char has enough characters to hold the largest number, and that the zero is in the position you want smaller numbers to be padded to (eg. in the example above, the 0 is in the 3rd from the right position).
    Edited by: Boneist on 22-Apr-2010 11:34
    ETA2: as reminded by odie_63, the fm in the format removes the spaces from the resulting string.
    Edited by: Boneist on 22-Apr-2010 11:38

  • Require user specific F4 functionality for a field in a program output

    Dear all,
    My requirement is i am using a field for ex: bukrs, name1 for an output. when iam using this two field in a program, if that program executes, i need F4 functionality for user specific. f4 functionality should show depends upon the name1.
    In a template i have these two variables, when i give name1 as 'ABCD' and press f4 for the bukrs it should display only bukrs which are mapped to ABCD. Lets assume one table is there for name1 mapper to bukrs.
    How it is possible. if so please let me know.
    Regards
    Arani Bhaskar

    Hello Arani,
    I think solution to your problem lies in using MATCHCODE addition to parameters and select-options as well.
    (This is from SAP F1-Help)
    ... MATCHCODE OBJECT search_help
    *Effect*
    This addition links the input field of the parameter to a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen, the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.
    The addition MATCHCODE OBJECT cannot be used together with the additions AS CHECKBOX or RADIOBUTTON.
    *Note*
    The predecessors of search helps in the ABAP Dictionary were socalled matchcode objects. This is why you have the name MATCHCODE OBJECT for this addition. Matchcode objects that have not yet been replaced by search helps continue to be supported by this addition.
    *Example*
    Linking the parameter p_carrid with a suitable search help. When you choose the input help on the selection screen, a list with the names of the airline carriers is displayed. If a name is selected, the corresponding abbreviation is placed in the input field.
    PARAMETERS p_carrid TYPE s_carr_id
               MATCHCODE OBJECT demo_f4_de.
    Moreover, please read about using MATCHCODE, hope it helps you, Arani.
    Thanks: Zahack

  • F4 functionality for a field in structure

    dear all
    my problem is i need to provide f4 help functionality for the field 'name' in structure 'cdir' is it possible. if possible please suggest me how to proceed.
    thanx in advance

    Hi,
    If you want to provide F4 functionality on that field in your program then check this link
    F4
    But if u r thinking in standard structure then its of no use as structures dont hold any values.
    Regards,
    Amit
    Reward all helpful replies.

  • Does anybody know a reliable hashCode-function for strings?

    Hello,
    I would like to exchange hashcodes between clients and server, both running at different jre's (even msjvms are running it) - and for the same string they should be identical.
    Javadoc mentions that Object.hashCode() may vary from imlpementation, but I would need an implementation which would be consistent across jvms.
    Does anybody know a reliable function which does compute a integer-hash-value out of string?
    Reliable means that its quite unlikely that two different strings get the same hash-value (although I know this cannot be guaranteed 100%).
    Thanks in advance, lg Clemens

    Even the hashcode() API points out that
    it is just a suggestion that it returns the memory
    address of an object, an implementation that might
    differ from other JVMs. So if you'd rely on that
    behaviour, you'd need to check JVM vendors as well.True, and that is why you shouldn't rely on the fact that Object.hashCode returns the memory address, but I think it's safe to rely on the fact that String.hashCode returns the same hashCode on all platforms (if they are using the same Java version).
    The javadoc for String.hashCode says:
         * Returns a hash code for this string. The hash code for a
         * <code>String</code> object is computed as
         * <blockquote><pre>
         * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
         * </pre></blockquote>
         * using <code>int</code> arithmetic, where <code>s</code> is the
    * <i>i</i>th character of the string, <code>n</code> is the length of
    * the string, and <code>^</code> indicates exponentiation.
    * (The hash value of the empty string is zero.)
    * @return a hash code value for this object.
    So that contract must be fulfilled by all implementations.
    Kaj

  • Search Help functionality for Custom Field in CRM 6.0

    Hi,
    We have added custom field  PRODUCT_ID into component BT120H_CPL.  For this field, I need to provide search help in WebUI.  Can you please give some suggestion on the same.
    Regards,
    Ramki.

    Hi Ram,
                     Here is the sample code.
    Outbound plug:
    Global attribute : GR_CITYCODE_F4     Instance Attribute     Private     Type Ref To     IF_BSP_WD_POPUP
    data declaration
      DATA: LT_COL_DEF       TYPE TABLEVIEWCONTROLTAB,
            LS_COL_DEF       TYPE LINE OF TABLEVIEWCONTROLTAB,
            LV_REGION        TYPE REGIO,
            LV_COUNTRY       TYPE LAND1,
            LR_ENTITY_HEADER TYPE REF TO CL_CRM_BOL_ENTITY,
            LR_ENTITY_ADDR   TYPE REF TO CL_CRM_BOL_ENTITY.
      TRY.
          LR_ENTITY_HEADER ?= TYPED_CONTEXT->header->COLLECTION_WRAPPER->GET_CURRENT( ).
        CATCH CX_SY_MOVE_CAST_ERROR.
      ENDTRY.
      CHECK LR_ENTITY_HEADER IS BOUND.
      LR_ENTITY_ADDR ?= LR_ENTITY_HEADER->GET_RELATED_ENTITY( IV_RELATION_NAME = 'BuilStandardAddressRel' ).
        CHECK LR_ENTITY_ADDR IS BOUND.
    getting region and country
      CALL METHOD LR_ENTITY_ADDR->GET_PROPERTY_AS_VALUE
        EXPORTING
          IV_ATTR_NAME = 'REGION'
        IMPORTING
          EV_RESULT    = LV_REGION.
      CALL METHOD LR_ENTITY_ADDR->GET_PROPERTY_AS_VALUE
        EXPORTING
          IV_ATTR_NAME = 'COUNTRY'
        IMPORTING
          EV_RESULT    = LV_COUNTRY.
    appending citycode and description to internal table
      LS_COL_DEF-COLUMNNAME = 'ZZCITYCODE'.
      LS_COL_DEF-TITLE      = 'City Code'.
      APPEND LS_COL_DEF TO LT_COL_DEF.
      LS_COL_DEF-COLUMNNAME = 'TEXT'.
      LS_COL_DEF-TITLE      = 'Description'.
      APPEND LS_COL_DEF TO LT_COL_DEF.
      CLEAR: GT_CITYCODE[].
    fill the internal table  GT_CITYCODE whcih must appear in popup.
      FREE GR_CITYCODE_F4.
      GR_CITYCODE_F4 = COMP_CONTROLLER->WINDOW_MANAGER->CREATE_DECISION_POPUP( IV_TITLE             = 'City Code'
                                                                               IV_DESCRIPTION       = 'City Code'
                                                                               IV_VISIBLE_ROW_COUNT = 10
                                                                               IV_DISPLAY_TABLE     = GT_CITYCODE
                                                                               IV_VISIBLE_COLUMNS   = LT_COL_DEF ).
      GR_CITYCODE_F4->SET_ON_CLOSE_EVENT( IV_EVENT_NAME = 'CITYCODE_F4_SELECTED'
                                          IV_VIEW       = ME  ).
      GR_CITYCODE_F4->OPEN( ).
    on close event ****************************************************************
    where you can set the value of the  field *********************************
    METHOD EH_ONCITYCODE_F4_SELECTED.
    Added by wizard: Handler for event 'CITYCODE_F4_SELECTED'
    data declaration
      DATA: LR_OUTPUTNODE  TYPE REF TO CL_BSPWDCMP_BSPWDCOMPONEN_CN01,
            LR_ENTITY      TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS,
            LR_HEADER      TYPE REF TO ZL_BP_HEAD_ACCOUNTDETAILS_CN00,
            LV_ROW_INDEX   TYPE STRING,
            LV_EVENT_NAME  TYPE STRING,
            LV_VALUE       TYPE STRING,
            LS_CITYCODE    TYPE ZTB0000A31PL2T .
      LR_OUTPUTNODE ?= GR_CITYCODE_F4->GET_CONTEXT_NODE( 'OUTPUTNODE' ).
      LV_ROW_INDEX = LR_OUTPUTNODE->GET_SELECTEDROWINDEX( ).
      LV_EVENT_NAME = LR_OUTPUTNODE->GET_EVENT_NAME( ).
      GR_CITYCODE_F4->CLOSE( ).
      IF LV_EVENT_NAME = 'OK'.
        LR_ENTITY ?= ME->TYPED_CONTEXT->HEADER->COLLECTION_WRAPPER->GET_CURRENT( ).
        READ TABLE GT_CITYCODE INTO LS_CITYCODE INDEX LV_ROW_INDEX.
        LR_HEADER ?= ME->TYPED_CONTEXT->HEADER.
        LR_HEADER->GS_CITYCODE_F4 = LS_CITYCODE.
        LV_VALUE = LS_CITYCODE-ZZCITYCODE.
      setting city code
        LR_ENTITY->SET_PROPERTY_AS_STRING( IV_ATTR_NAME = 'ZZCITYCODE'
                                           IV_VALUE     = LV_VALUE ).
      ENDIF.
    ENDMETHOD.
    Hope this helps.
    Regards,
    Ruby.

  • REPORT_ATTRIBUTE_ERROR_MESSAGE functionality for Input Field & Drop down UI

    Hi,
    We have requirement to handle error messages. In a data input form, if we get multiple errors we are displaying all errors in a message area. When we click on error message, focus should go to the UI element which causes to the error.
    We have used 'CALL METHOD lo_message_manager->report_attribute_error_message' by exporting the element and attribute name. This method works fine incase of Input Field type UI element. When we run the application on DISPLAY action errors are displaying for both fields 'INPUT FIELD' and 'DROPDOWNBYINDEX' . But we have URL on the error related to 'INPUT FIELD'  and when we click on error message control/cursor going to the INPUT FIELD.
    But we could not find same functionality incase of DropDownbyIndex UI Element.
    Please help us to resolve the problem. Does SAP Web Dynpro ABAP provide this functionality?
    Below attached written code for reference.
    CASE lo_action->name.
          WHEN 'DISPLAY'.
            IF lv_num1 IS INITIAL.
             report message
              CALL METHOD lo_message_manager-report_attribute_error_message
                EXPORTING
                  message_text              = 'Please enter the value'
                  element                   = lo_el_numbers
                  attribute_name            = `NUM1`
                params                    =
                msg_user_data             =
                is_permanent              = ABAP_FALSE
                scope_permanent_msg       = CO_MSG_SCOPE_CTXT_ELEMENT
                msg_index                 =
                cancel_navigation         =
                is_validation_independent = ABAP_FALSE
            ENDIF.
            IF lv_age eq '999'.
             report message
              CALL METHOD lo_message_manager-report_attribute_error_message
                EXPORTING
                  message_text              = 'Please enter the age'
                  element                   = lo_el_personal_info
                  attribute_name            = `AGE`
                params                    =
                msg_user_data             =
                is_permanent              = ABAP_FALSE
                scope_permanent_msg       = CO_MSG_SCOPE_CTXT_ELEMENT
                msg_index                 =
                cancel_navigation         =
                is_validation_independent = ABAP_FALSE
            ENDIF.
        ENDCASE.
    Thanks
    Venkat

    Hi venki,
    The problem you have told that when you are displaying the error message for input box and drop down by idx  using the report_attribute_error_message. Then you click on the error message raised by input box , the focus goes to the input box but the same thing will not happen with the dropdownbyidx.
    I have also try the same this its not working for dropdownbyidx but it is working for dropdownbykey.
    You can try this.
    Regard
    Manoj Kumar

  • Implementing sort functionality for Z fields in inbox items

    Hi all,
    i have a requirement where i got to add a Z-field in the "Sort by" as well as "Then Sort by" dropdown in the inbox search. I have managed to add the item, nevertheless, i am unable to implement the sort functionality for the same.
    Can someone help?
    Is there anyways of making this simple?
    Thanks in advance,
    Nisha

    Hi  Jason,
    thank you very much with the note 1388298 our
    Z-fields on the web-dynpro for "Item Basic Data"  are visible now.
    We have also Z-fields for "Account Assignment".
    This fields are still not available.
    Is it also possible to add these fields with component configuration?
    I haven't found anything in the oss.
    You will get 10 points because my original question has been answered.
    Thanks in advance for your help!!
    Kind Regards
    Stefan

  • RfcSet.... function for RFC_BCD fields.

    Hello:
    I am using nwrfcsdk to call a SAP remote function, the IMPORT parameter of this function includes a DEC field which I defined as:
    RFC_BCD maxNivAprob = 2;
    in a C++ calling program.
    There is no an RfcSetBdc function so, which RfcSetu2026 should I use to send this value to the Remote Function? Do you have an example?
    Regards.

    I solved my problem and I share it:
    In the ABAP remote function I defined an IMPORT field parameter as:
             VALUE(I_MAXNIV_APROB) LIKE  HRRHAS-TDEPTH
    (HRRHAS-TDEPTH is defined as DEC with length of 5).
    Using the nwrfcsdk and C++ language, I defined that field in the next way:
    SAP_UC * maxNivAprob = "00005";    // or SAP_UC * maxNivAprob = "     5"; // four spaces before 5
    I set the parameter in the next way:
    RfcSetNum(fnh, cU("I_MAXNIV_APROB"), maxNivAprob, strlenU(maxNivAprob), &errorInfo);
    And it worked.
    Regards.
    Edited by: Eduardo Gironas on Aug 7, 2009 9:20 PM

  • What's the best Firewire Audio/ midi interface for LE

    Am looking for an interface that is clean, has 8 audio inputs combined with MIDI interface. What are the best options?

    Issueboy wrote:
    Am looking for an interface that is clean, has 8 audio inputs combined with MIDI interface. What are the best options?
    Check out the Alesis io26 -- 8 i/o's plus lightpipe for expansion -- pristine mic/line preamps, solid and portable, and very reasonable pricing
    Description & specs at: http://www.alesis.com/product.php?id=96

  • F4 / Help Functionality for input field in custom java iView

    Hi,
    As we see many F4 help on each input field in a transaction, how can we mimic the same functionality in a Custom Java iView. For example, ME23N, you can search a PO based on some criteria, when i create a new custom java iview using BAPI_PO_DISPLAY, how can provide that F4 or help functionality to the Purchase Order field.
    Your help is really appreciated.
    Thanks,
    Vijay

    Hi Vijay,
    the F4 Help functionality is always of big concern when you're switching from a R/3 or ABAP-SAP GUI environment to a webfront end. First of all: the convinience you're used to of creating a seach help and adding it to your data fields is gone, i.e. the current development status in the portal/java/webdynpro implies that you have to do most of the work on your own. Simple value helps might not be a problem, but complex ones are (as the one you've described). Here is a link to a tutorial in Java-webdynpro, maybe it gives you an idea:
    https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD9_OVS.htm
    Regards,
    Ulli

  • How to use Left & Right Functionality for Strings..

    Please help i am unable to find Left & Right Functions in Oracle 11g.. Instead i just found Substr who can be a replacement for Left but not for Right..

    Alex Nuijten wrote:
    Atari Basic ruled!
    http://en.wikipedia.org/wiki/Atari_600XL#Newer_XL_machines
    First computer I ever saw was in a research laboratory at a Polytechnic (before they all became Universities). I was left with some research students by my mum while she went to a lecture (I was only about 8 at the time) and they asked me my name, fiddled with some wires and switches and lo and behold, my name appeared on a TV screen. Wow! I was hooked from that moment on. There was no such thing as home computers back then. LOL!

Maybe you are looking for