Is there any native method for converting String value to Hungarian notat..

Hello. there.
This might be very simple question. but I'm just curious about this.
I am wondering if Java API offer the any native method for converting uppercased string value to lowercase which obey the Hungarian notation.
What I'm going to do is using Reflection for excuting RFC function on SAP. I was found it is very similar to JDBC Programming.
Please refer to blow codes.
//mTable
JCoTable mTable = function.getTableParameterList().getTable(rtnTblNm);
    for (int i = 0; i < mTable.getNumRows(); i++) {
     mTable.setRow(i);
     HashMap tmpData = new HashMap ();
          for (int j=0; j < mTable.getNumColumns(); j++) {
                 // I want to set key String [userNo] instead of  [USER_NO] here.
          tmpData.put(mTable.getMetaData().getName(j).toLowerCase(), mTable.getString(j));
          result.add(tmpData);
} Basically, The idea was from ibatis framework [com.ibatis.common.beans.classInfo] dropcase();
Any idea would be very helpful for me. Thank you.
Edited by: hosung.seo on Aug 30, 2009 10:42 PM
Edited by: hosung.seo on Aug 30, 2009 10:50 PM

ejp wrote:
Hungarian notation is a representation of logical/arithmetic expressions in postfix form. Not what you're talking about.
So your title is very confusing to the people here who know what it means, which is probably all of them, because people read threads based on their title.From now on, I will pay more attention when I post an question.
If the titile as " +Is there any native method for converting String value to camelcase?"+ would be easier to what i'm pointing at.
As I mentioned in above sorce code, converting [USER_NO] to [userNo] isn't relevant Hungarian notation. yes, it was ambiguous. Agree! :)
But some answer wasn't fit to converting case or recognizing "underscore" delimiter. I was expecting toCamelCase() such as blew. Thanks.
    public static String toCamelCase(String name) {
        String lowerName = name.toLowerCase();
        String[] pieces = lowerName.split("_");
        if (pieces.length == 1) {
            return lowerName;
        StringBuffer result = new StringBuffer(pieces[0]);
        for (int i = 1; i < pieces.length; i++) {
            result.append(Character.toUpperCase(pieces.charAt(0)));
result.append(pieces[i].substring(1));
return result.toString();

Similar Messages

  • Is there any alternative method for GET_FRONTEND_FIELDCATALOG in CL_GUI_ALV

    Hi all,
    Please let me know if there is any alternative method for GET_FRONTEND_FIELDCATALOG (CL_GUI_ALV_GRID class) in the class CL_SALV* family. I need to capture the field catalog(Or list of fields) of the current output list.
    I have saved many layouts on my ALV output with different combinations of fields, When I select one layout and click on the custom button it should process only the fields displayed on ALV.Please let me know how do I get the fields displayed on ALV using CL_SALV_* family classes.
    Thanks,
    Prathap

    Hi,
    Check this link...[Setting up Layout|http://help-abap.blogspot.com/2008/09/salv-model-4-setting-up-layout.html]

  • Is there any function module for converting text to hyperlink?

    Hello all,
              I am designing an application in BSP wherein the user can enter hypertext values for some
              of the data enteries in the database table. Is there any function module available for converting
              text into hypertext. Eg. if the user enters 'www.mypersonalwp.com' then it should convert this
              text value into a hyperlink.
    Thanks in advance.
    Gurmahima.

    Hi,
    Refer the given below link
    http://help.sap.com/saphelp_erp2004/helpdata/EN/85/ce25c2d7ae11d3b56d006094192fe3/content.htm
    Hope it helps you
    Thanks
    Arun Kayal

  • Is there any direct syntax for summing two values

    Friends,
                       I just have a problem of summing up two or more similar product_id 's  quantities.
    for ex:  assume an Internal Table IT_PRODUCT. consider it has two fields one is PRODUCT_ID ( Primary key in Database ) and the other field is QUANTITY.
    IT_PRODUCT.
    PRODUCT_ID           QUANTITY
    I1001SA101                    10
    I1001SA101                    20
    my desired output is to sum up the similar product_id' s of the internal table and to have only one summed record in the internal Table.
    IT_PRODUCT
    PRODUCT_ID           QUANTITY
    I1001SA101                    30
    Is there any direct syntax to do the same or suggest me some more methods.
    Pradeep.

    Use COLLECT statement..
    Check this code...
    DATA : BEGIN OF itab OCCURS 0,
    matnr LIKE ekpo-matnr,
    menge LIKE ekpo-menge,
    END OF itab.
    DATA : itab2 LIKE itab OCCURS 50 WITH HEADER LINE.
    SELECT matnr menge INTO CORRESPONDING FIELDS OF
    TABLE itab FROM ekpo UP TO 20 ROWS.
    LOOP AT itab.
      COLLECT itab INTO itab2.
    ENDLOOP.
    Message was edited by:
            Perez C

  • Is there any java Charset for converting EBCDIC packed decimal to ASCII?

    Pls reply if you know the solution.

    This is not a function of a Charset, because of the packing. There are plenty of EBCDIC<->ASCII libraries out there.

  • Is there any other method so that I can contact Apple to get IMEI number ? since the phone was shyncronized several times in apple store / iCloud.

    Hello community members, my iPhone has been stolen and I tried to contact police, they are asking for IMEI number of the phone. Unfortunately I could not read the IMEI number on the box due to moisture wiped out most of the number on it. I sacanned it in and enhanced, I'm still unable to read out the number. Is there any other method so that I can contact Apple to get IMEI number ? since the phone was shyncronized several times in apple store / iCloud.

    If you backed up your iPhone in iTunes on your computer -
    Open iTunes - Edit - Preferences - Devices - See Device Backups in the Window.
    Hover mouse/curser on any backup. Read IMEI and Serial no. your of iPhone.

  • Is there any event callback for "pre/post-register/unregister" object?

    Dear all,
    We noticed that there are rich set of event callback provided by TopLink, including "pre/post-Refresh/Build/Clone/Merge". However, we cannot found any callback method for "pre/post-register/unregister" events. They will be very useful, if we to manage the internal status of register/unregister to indicate whether it is still under the control of TopLink.
    Thanks and regards,
    William

    William,
    Those specific events do not exist. The postClone event is called after an object is registered. This is frequently used to copy non-persistent values from the cached original into the working copy.
    There is also the ability to customize the clone/copy policy used by TopLink in creating the working copies in the UnitOfWork.
    http://download-west.oracle.com/otn_hosted_doc/toplink/1013/DP4/_html/descfg028.htm#sthref3950
    Doug

  • Is there any function module to convert the date format

    Dear ABAPers,
    Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.
           I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.
    Thanks & Regards,
    Ashok.

    hi,
    create custom function module or copy the below code in the report ..and use it
    the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000
    FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.
    ""Local interface:
    *"       IMPORTING
    *"             VALUE(DATE) LIKE  SY-DATUM
    *"       EXPORTING
    *"             VALUE(FORMATTED_DATE)
    *"       EXCEPTIONS
    *"              INVALID_DATE
    TABLES: TTDTG.
    DATA: BEGIN OF T_DATE,
            YYYY(4) TYPE C,
            MM(2) TYPE C,
            DD(2) TYPE C,
          END OF T_DATE.
    DATA: DAY(3) TYPE N.
    DATA: VARNAME LIKE TTDTG-VARNAME.
    IF DATE IS INITIAL.
      CLEAR FORMATTED_DATE.
      EXIT.
    ENDIF.
    check document date format
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
      EXPORTING
        DATE = DATE
      EXCEPTIONS
        PLAUSIBILITY_CHECK_FAILED = 1.
    IF SY-SUBRC NE 0.
      RAISE INVALID_DATE.
    ENDIF.
    MOVE DATE TO T_DATE.
    CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.
    SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.
    WRITE T_DATE-DD TO DAY.
    CONCATENATE DAY ',' INTO DAY.
    CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE
      SEPARATED BY SPACE.
    ENDFUNCTION.
    the output is :--Convert a DATE field into a full format date eg. March 23, 2000
    Regards,
    Prabhudas

  • Is there any function module for purchase order change

    Hi Experts,
    Is there any function module for purchase order change or i need to do new recording in me22n.
    Thanks,
    Senthil

    Hi
    Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
    Regards,
    Viven

  • Do we have any native methods to get object instances which are alive ?

    Do we have any native methods to get object instances which are alive ?
    Help appreciated.

    If you are looking for accessing objects that are eligible for GC but are not GC,than it should be very difficult.As Java does not give you memory access to its variables.

  • AS01- is there any batch loading for asset card creation?

    Hi All,
    I need advise here, is there any batch loading for end user to create asset card in SAP in Batch?
    As from AS01, it only allows one creation each time, it will waste a lot of end user time if there're many inventories to be converted to Fixed asset for leasing purposes.

    Hi Davie,
    Hope you have completed your certification,
    In AS01 screen you will see field "No of similar Assets" which refers to the count of assets you want create.
    Enter the number of similar assets you want to create at this point of time.
    Else Build LSMW around AS01.
    Hope it helps,
    Pankaj B

  • I've just bought Office 365 Personal, without realising there is a University version. I'm due to start University in two weeks, is there any way I can convert my account to the University version? Or uninstall my current version and replace it?

    I've just bought Office 365 Personal, without realising there is a University version. I'm due to start University in two weeks, is there any way I can convert my account to the University version? Or uninstall my current version and replace it?

    Contact Microsoft and ask them.  These forums are for troubleshooting technical issues with Apple products and not related to Office or your question in any way.

  • Is there any default size for ArrayList

    The default capacity of Vector is 10.
    Is there any default size for ArrayList ??
    Vector v = new Vector();
    System.out.println("==> "+v.capacity()); // output is ==> 10
    java.util.List alist = new ArrayList();
    System.out.println("==> "+v.capacity()); // here the out put is ==> 0
    Regards
    Dhinesh

    No default size for arraylist.initially it's zero.
    I think u r comparing capacity with a size those two are different.
    Size- represents number of elements in the array.
    capacity- the capacity is the size of the array used to store the elements in the list. It is always at least as large as the list size. As elements are added to an ArrayList, its capacity grows automatically.
    it depends on the ensureCapacity() method in the arraylist.

  • Hi is there any function module for radix conversion

    Hi,
    I need to convert number of base 36 to decimal number. Is there any function module for that.
    i.e) z to 35
         10 to 36
         11 t0 37

    Hai,
    This program perfectly converts a number from one number system to another number system.
    REPORT  Z_RADIX_CONVERSION.
    PARAMETERS:
      P_S_RAD(2) TYPE N,                   " Source Radix
      P_D_RAD(2) TYPE N,                   " Destination Radix
      P_S_NUM(5) TYPE C.                   " Source Number
    *" Data declarations...................................................
    Work variables                                                      *
    DATA:
      W_LEN         TYPE I,
      W_FACT        TYPE I,
      W_D_NUM(5)    TYPE N,
      W_T_LEN       TYPE I,
      W_NUM         TYPE C,
      W_NUM1        TYPE I,
      W_REM         TYPE I,
      W_INDEX       TYPE I VALUE 20,
      W_T_NUM(30)   TYPE C,
      W_T_NUMBER(5) TYPE N.
    IF P_S_RAD GE 1  AND
       P_S_RAD LE 16 AND
       P_D_RAD GE 1  AND
       P_D_RAD LE 16.
      IF P_S_RAD EQ 01 AND P_S_NUM CO '0 ' OR
         P_S_RAD EQ 02 AND P_S_NUM CO '01 ' OR
         P_S_RAD EQ 03 AND P_S_NUM CO '012 ' OR
         P_S_RAD EQ 04 AND P_S_NUM CO '0123 ' OR
         P_S_RAD EQ 05 AND P_S_NUM CO '01234 ' OR
         P_S_RAD EQ 06 AND P_S_NUM CO '012345 ' OR
         P_S_RAD EQ 07 AND P_S_NUM CO '0123456 ' OR
         P_S_RAD EQ 08 AND P_S_NUM CO '01234567 ' OR
         P_S_RAD EQ 09 AND P_S_NUM CO '012345678 ' OR
         P_S_RAD EQ 10 AND P_S_NUM CO '0123456789 ' OR
         P_S_RAD EQ 11 AND P_S_NUM CO '0123456789A ' OR
         P_S_RAD EQ 12 AND P_S_NUM CO '0123456789AB ' OR
         P_S_RAD EQ 13 AND P_S_NUM CO '0123456789ABC ' OR
         P_S_RAD EQ 14 AND P_S_NUM CO '0123456789ABCD ' OR
         P_S_RAD EQ 15 AND P_S_NUM CO '0123456789ABCDE ' OR
         P_S_RAD EQ 16 AND P_S_NUM CO '00123456789ABCDEF ' .
        W_LEN = STRLEN( P_S_NUM ).
        W_T_LEN = W_LEN - 1.
        DO W_LEN TIMES.
          W_NUM = P_S_NUM+W_T_LEN(1).
          CASE W_NUM.
            WHEN 'A'.
              W_NUM1 = 10.
            WHEN 'B'.
              W_NUM1 = 11.
            WHEN 'C'.
              W_NUM1 = 12.
            WHEN 'D'.
              W_NUM1 = 13.
            WHEN 'E'.
              W_NUM1 = 14.
            WHEN 'F'.
              W_NUM1 = 15.
            WHEN OTHERS.
              W_NUM1 = W_NUM.
          ENDCASE.
          W_D_NUM = W_D_NUM + W_NUM1 * ( P_S_RAD ** W_FACT ).
          ADD 1 TO W_FACT.
          SUBTRACT 1 FROM W_T_LEN.
        ENDDO.
      ELSE.
        WRITE'Invalid Number'(003).
      ENDIF.
    ELSE.
      WRITE'Enter radix between 1 and 16 '(002).
    ENDIF.
    W_T_NUMBER = W_D_NUM.
    IF P_D_RAD = 1.
      DO W_D_NUM TIMES.
        WRITE'O'.
      ENDDO.
    ELSE.
      WHILE W_T_NUMBER NE 0.
        W_REM = W_T_NUMBER MOD P_D_RAD.
        CASE W_REM.
          WHEN  10.
            W_T_NUM+W_INDEX(1) = 'A'.
          WHEN  11.
            W_T_NUM+W_INDEX(1) = 'B'.
          WHEN  12.
            W_T_NUM+W_INDEX(1) = 'C'.
          WHEN  13.
            W_T_NUM+W_INDEX(1) = 'D'.
          WHEN  14.
            W_T_NUM+W_INDEX(1) = 'E'.
          WHEN  15.
            W_T_NUM+W_INDEX(1) = 'F'.
          WHEN OTHERS.
            W_T_NUM+W_INDEX(1) = W_REM.
        ENDCASE.                           " CASE W_REM.
        SUBTRACT 1 FROM W_INDEX.
        W_T_NUMBER = W_T_NUMBER DIV P_D_RAD.
      ENDWHILE.
    ENDIF.
    WRITE:
      /10 'The Equivallent number in Base'(001),
           P_D_RAD,
           'is',
           W_T_NUM.
    <b>Reward points if helpful .</b>
    regards,
    rama pammi

  • Are there any other methods which has same functionality as Ensure method in Sharepoint

    Hi,
    Am using "Ensureuser method" which will checks whether user belongs to the user list in share point  if not it will add the user to list.Is there any other method which can be used in the place of  "Ensureuser method" because
    am facing some problem with it.
    Thanks in Advance.

    Hi Shilpa,
    Am assigning permissions for folders in document libraries to users in external active directory.While assigning permissions to users am using Ensure User method but because of this method some of users are losing permission to folders even after assigning.so,
    am searching for any other method can i use in place of this Ensure User method to overcome my problem.Can I add permissions to user without using Ensure User method?
    Thanks in advance.

Maybe you are looking for

  • My hp deskjet 1510 series does not print when connected to my hplap top (windows Vista),

    My hp deskjet 1510 series does not print when connected to my hp lap top (windows Vista), it says the printer is not active, although it is default printer, connected and on. However, it does work when connected to the (also HP) lap top (windows 8) o

  • Yahoo Calendars entries created on Yahoo do not sync on iphone after upgrad

    After upgrading to IOS4, any previous or new calendar entries that have been created on the web in Yahoo calendars do not appear on the iphone. However, if you create a new yahoo calendar entry on the iphone then it appears without any problem in yah

  • Digital Signatures and date fields

    I have a form with digital signatures.  I understand that the digital signatures have a date on them but until we are fully electronic with the form some users may still print sign and date.  With that said we will have a date field next to the signa

  • Resizing text and images with actions and keeping it resized for the next slides, how to?

    Hello everybody, I searched over the net and in this support section for a solution to my problem, but i didnt find any, so...here I am asking you experts. Through a particular use of different actions I make a logo "compose" in the first slide of my

  • Work Outlook mail to my Mac

    I work on Windows at work (ARGHH!) and have an Outlook account. I want my Outlook mail to go to my Mac at home b/c I work from home quite a bit and aparently I cannot connect my Mac to our work server remotely. How do I do this? Should I set it up to