Standard function to find alphabet in string?

Is there a standard function to find alphabet in string?
For example, a variable define as char (10),
I need a function to find out if this variable contains alphabet.
Any standard function there?

hiii
use following code
data: wa_str(100) type c.
data: wa_str1 type string.
data: wa_str2 type string.
data: wa_str3 type string.
data: len type i.
data: ofset type i.
wa_str = 'ABCD435hjK'.
len = strlen( wa_str ).
TRANSLATE wa_str TO UPPER CASE.
do.
  if ofset = len.
    exit.
  endif.
if wa_str+ofset(1) co sy-abcde  .
      concatenate wa_str2 wa_str+ofset(1) into wa_str2.
else.
    concatenate wa_str3 wa_str+ofset(1) into wa_str3.
  endif.
  ofset = ofset + 1.
enddo.
write:/ wa_str.
write:/ 'alphabatic char', 20 wa_str2.
here TRANSLATE wa_str TO UPPER CASE.
statement have added .i hope this will solve your problem.
regards
twinkal

Similar Messages

  • Oracle Spatial function to find nearest line string based on lat/long

    Hi,
    Here is my scenario. I have a table that contains geometries of type line strings (the roadway network). The line geomteries are of type Ohio state plane south (SRID 41104).
    I have a requirement - given a lat/long, find the line string that snaps to that lat/long or the nearest set of line strings within a distance of 0.02 miles.
    This is a typical example of trying to identify a crash location on our roadway network. The crashes being reported to us in lat/long thru the GPS system.
    How can i acheive this through any spatial functions?
    Thanks for the help in advance.
    thanx,
    L.

    Hi L,
    That is not the way I would do it. I would convert my road segments to LRS data, then you can do all queries on the same data.
    Or, if you do not want to modify your original data, create a copy of your road segments with the same ID's and convert the copy into LRS data. If you keep the ID's identical, you can easily use geometry from one and LRS data from the other - as long as you are sure the ID is the same.
    Which will make the workflow a bit easier:
    1. Use SDO_NN to get the closest segments
    2. Use SDO_LRS.PROJECT_PT to get the projected point
    3. Use SDO_LRS.GET_MEASURE to get the measure
    And most of these you can incorporate into one single query. Now I am writing this of the top of my head (It's been a while since I played with LRS). so this has not been tested, but something like this should work (but could probably be greatly improved - it's getting late for me :-) ):
    SELECT
    SDO_LRS.FIND_MEASURE  --//find_measure needs an LRS segment and a point
        SELECT            --//here we select the LRS segment
          r.geometry 
        FROM
          roadsegments r
        WHERE SDO_NN(r.geometry,    --//based on the given GPS point
                     sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL), 
                     'sdo_num_res=2 distance=0.02 unit=mile') = 'TRUE'
      SDO_LRS.PROJECT_PT  --//We project the point on the LRS segment
          SELECT         --//here we select the LRS segment (again, which could probably be improved!!)
            r.geometry 
          FROM
            roadsegments r
          WHERE SDO_NN(r.geometry,
                       sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL), 
                       'sdo_num_res=2 distance=0.02 unit=mile') = 'TRUE'
        sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL) --//The GPS point again
    AS milemarker from dual;So it is not as complicated as you think, it can easily be done with just one query (SQL can do a lot more than you think ;-) ).
    Good luck,
    Stefan

  • How to find standard function modules for IDOCs

    Hi,
    Can anyone tell me is there any way to find the standard function module for IDOC. I have checked BD60 but it's not available. For example  Idoc type WPUBON01 and I need to know the function module. Can anyone tell me the way out.
    Secondly, if anyone can provide me the code to map the file fields and idoc segements.
    Regards

    Use WE82 to find message type associated with Idoc type.
    Then use this message type as a search string to find the FM.
    The associated FMs are.
    POSED_FILL_OVERVIEW_ENT_WPUBON
    POSED_INIT_DATA_WPUBON       
    POSED_LOCK_DATA_WPUBON       
    POSED_OVERVIEW_ASSIGN_WPUBON 
    POSED_READ_DATA_FROM_DB_WPUBON
    POSED_READ_TR_DATA_WPUBON    
    POSED_SAVE_DATA_WPUBON       
    POSED_SEARCH_STRING_WPUBON   
    POSED_STORE_DATA_WPUBON      
    POSED_UNLOCK_DATA_WPUBON     
    POSED_UPDATE_DATA_WPUBON     
    POSED_UPDATE_TR_DATA_WPUBON  
    Thanks,
    Utsah Garg.

  • How to find query_only and standard functions (AOL)

    Hi,
    There are many functions which are attached to menus and which inturn are attached to responsibility.
    Also, we can have a function view only by creating the same function by entering QUERY_ONLY="YES" in parameter.
    For ex:- I have a function called "Customers Standard" by which you can create customers. I can create another
    function using the same form and make it query only by entering QUERY_ONLY="YES" in the parameters column.
    My question is, I want to know for which responsibilities i have this query_only function attached and for
    which reponsibilities i have this normal standard function is attached to. If it is Query_only, then i want
    to populate a comment saying " Query Only Customer" and if not then populate with " Standard Customer Function".
    I wrote a query which displays all the menus, sub-menus and user-function-names for all responsibilities. But
    i need to populate another column with this "Query-only" or "Standard Customer" by checking the parameter values.
    Like this, i need to check for all like "customer" , "invoices", "order entry", "vendors" etc etc.
    If it is hard to understand my problem, to make it simple, " A query to Display all the menus, sub-menus, sub-sub-menus,
    user-function-names for all menus, sub-menus, sub-sub-menus for all reponsibilities. After writing this query,
    I want to populate one more column in which i want to display whether it is query_only or not_query_only."
    Help Appreciated
    Thanks

    Hi Adwinn,
    Do you have any query for this.
    For ex:- for AR reponsibility, the screen looks like this:-
    -Transactions
         Batches
         Batches Summary
         Transactions Summary
         Credit Transactions
    -Receipts
         Batches
         Batches Summary
         Receipts
         Receipts Summary
         Remittances
         Remittances Summary
    -Lockbox
              Transmission History
              Maintain Transmission Data
    -Collections
         Scheduler
         Customer Calls
         Customer Account
         Account Overview
         Aging
         Correspondence
    -Customers
         Standard
         Quick
         Summary
         Profile Class
         Merge     
    and so on.....
    In this, there are may be query_only functions created and attached to these menus. I need a report which shows me all the menus, sub-menus, sub-sub-menus and tell whether that is standard or query_only with that prompt description.
    for ex:- output:-
    AR reponsbility | AR_NAVIGATE_GUI | Customers | Standard | Customers-Standard-Query Only
    help appreciated
    thanks

  • What are the standard functions in XI ?

    What are the standard functions in XI ?

    Hi,
    The target field mapping is possible by using below typs of functions
    1. Standard functions
    2. Runtime procedure
    3. User Defined functions
    Standard functions are the APIs provided in Graphical mapping to process the values of the fields used for target field mapping.
    Technically all these values are trated as string thus all standard functions expect strings as input argument and string as an export aurgument
    Please find here with you more details about it at below link
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/frameset.htm
    2. Runtime procedure
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/24e15bf9d79243b45d49b13b03de8f/content.htm
    3. User Defined functions
    http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
    Thanks
    Swarup

  • Currency Translation at the Web Template level (standard functionality)

    Hi Experts ,
    We are currently working in BI 7.0 env. with source system ECC 5.0.
    We are working for a task where we need to make the BEx  queries enabled for currency translation .
    The requirement is :-
    The user should be enable to give/opt/choose for the follwoing options:-
    Currency type (target currency in which the translation is aimed)
    Exchange Rate ( Standard(M) or other(P) or something else) and
    Key date: The translation will be performed taking the exchange rate on that particular date.
    We do have 2 option to perform the task...
    1:- Either we do it thru currency translation type definition(RSCUR) and then attaching this currency translation for every amount key figure values at each query level. OR
    2:- If we can go and find something at the Web Template level and add/modify the template in such a way so that it gives us the functionality to translate a source currency into a desired one with desired exchange rate type (currently either M or P) and for a specific date.
    At this point of time when we do have numerous sub-areas holding hundreds of queries, we want something which should be available as the modification/addition to standard functionality at the web template level and not at the query level as changing each and every one of them and testing would be a cumbersome process and would be costly and risky at the same time. So we are just wondering if we can find something with option no. 2 and add/modify something in the standard functionality.
    Please ask for any more information required.
    Thanks very much.
    regds.

    Hi Amit,
    You would still need to define the Currency Translation using RSCUR where you would specify
    -the exchange rate type (either fixed or variable)
    -the target currency (either fixed or variable)
    -the reference date
    You don't need to modify any of your queries. You can instead use 'Translate Currency'/[SET_CURRENCY_TRANSLATION] command in WAD & specify the Currency Translation as defined in RSCUR. If you want the target currency & exchange rate type to be driven by user input, you can define these as variables in RSCUR & invoke the variable screen using 'OPEN_VARIABLE_DIALOG' in WAD for user input just before calling 'SET_CURRENCY_TRANSLATION' command.
    --Priya

  • Projects, is the Standard Functionality the one with COGS created?

    Korean Air manufactures AIRCRAFT components and delivers them to customers such as Boeing. It wants to implement ERP (R12) applying Oracle Projects Solution.
    Issue
    1. When Shipping Type Deliverable is created in Project Module and it is interface to Shipping Execution for Ship Confirm, COGS(Cost of Goods Sold ) for Shipping Item is created and it overlaps with cost of sales per Project/Task.
    Question
    *1. **When Shipping was done using deliverable of Shipping Type in Project Module, is the Standard Functionality the one with COGS created?*
    A. If the number 1 case is Standard Functionality, is there any option to prevent COGS creation?
    B. If the answer is no, by what kind of setup is it possible?
    C. Does Shipping of Project Module based on “non-asset based warehouse”?
    *2. What is the Integration mapping of Project Management, Shipping Execution, Inventory, AR, COGS etc?*
    The following are basic process.
    1. Quotation-> Contract -> Plan -> Production -> Delivery -> Revenue
    A. Using Deliverable in Projects
    2. Project: Agreement
    3. Task: Unit
    4. Purchasing Plan, Production Plan etc. executed based on Project/Task
    5. Cost calculation is calculated in Project/Task unit
    6. When Task (Tail Number) is completed, deliver to Boeing according to contract
    B. Interface through Shipping Execution
    C. Ship Confirm
    7. Based on cost revenue is recognized according to progression rate.
    A. Cost Collect
    B. Generate Draft Revenue
    8. Based on delivery or contract, account receivable is created and send to customer.
    A. Create Event per Task
    B. Generate Draft Revenue
    C. Interface Draft Revenue to Receivables.

    Hello Daniel,
    The PCI serial cards are not supported with LabVIEW RT for ETS targets and are not expected to work. We are looking into finding a way to add support for PCI serial devices in RT, but currently that support does not exist.
    One possible workaround would be to use a NI ENET-485-X device. The visa resource name will not be COMx in this case. Instead, you will need to enter the long name of ASRL::::::INSTR as documented in the NI-VISA help.
    I hope this helps. If you need to speak with your sales representative to resolve this issue, please follow this link. Have a great day.
    Regards,
    Kristi H
    National InstrumentsMessage Edited by Support on 01-18-2005 08:24 AM

  • *Can we call a Standard Function Module inside a Zfunction module ?*

    Can anyone please help me know whether we can call a Standard Function Module inside a Zfunction module ?
    I tried the same (No syntax error) BUT when i activate the zFunction Module it throws the error:-
    +'' REPORT/PROGRAM statement missing, or program type is INCLUDE. " +

    Yes, I got the Answer -
    We Can we call a Standard Function Module inside a Zfunction module.
    But we need to make sure that the Function Groups are activated.
    FUNCTION ZFM_TEST_NESTED_FM.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(EX_CONVERT_UPPER_CASE) TYPE  STRING
    CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'
      EXPORTING
      LANGU                     = SY-LANGU
        TEXT                         = 'gaurav'
    IMPORTING
        TEXT_UC                   = EX_CONVERT_UPPER_CASE
    EXCEPTIONS
       NO_LOCALE_AVAILABLE       = 1
       OTHERS                                    = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFUNCTION.

  • Function to find quantity of a material in Open sales Order in 4.5

    hi ,
    is there any function to find the total quantity of a material in open sales order for an input date in 4.5
    Regards

    I think you may find function <b>RV_BILLING_PRINT_VIEW</b> helpful. This is the function used by the standard SAP report <b>RVADIN01</b> to assemble all the information needed to print a Sales Order. The structure and table output by this function contain all the information in the header and line items of the Sales Order.
    To watch this function in action, set a break point on this function (line 1075 of RVADIN01 in my system) and print a Sales Order (SO).
    I use VF31 to print an arbitrary SO during testing.
    Your company may have altered the standard print configuration for sales orders in SAP. If so, you will need to note the output type of your test Sales Order in VF31 and use Transaction <b>V/83</b> to determine which program is being used to print that type of SO.

  • Write two functions to find the the number of elements in a linked list?

    I am trying to Write two functions to find the the number of elements in a linked list. One method using recursion and One method using a loop...
    //The linked List class is Represented here.
    public class lp {
    public int first;
    public lp rest;
    public lp(int first1, lp rest1)
    first = first1;
    rest = rest1;
    The program i wrote so far is
    import java.util.*;
    import linklist.lp;
    public class listCount{
    //loop function
    public static void show_list(lp list)
    int counter = 0;
    while(list != null)
    list = list.rest;
    counter++;
    System.out.println ("length computed with a loop:" + counter);
    //recursive function
    public static int recursive_count(lp list)
    if (list.first == null)
    return 0;
    else
    return recursive_count(list.rest) + 1;
    //main method
    public static void main (String args[])
    lp list1 = new lp(1, new lp(2, new lp(3, null)));
    show_list(list1);
    System.out.println("length computed with a recursion:" +
    recursive_count(list1));
    at the if (list.first == null) line i get the error " incomparable types:
    int and <nulltype>" I know this is a beginners error but please
    help...What should I do?

    byte, char, short, int, long, float, double, and boolean are primitives, not objects. They have no members, you cannot call methods on them, and they cannot be set to or compared with null.

  • Use REGEXP_INSTR to find a text string with space(s) in it

    I am trying to use REGEXP_INSTR to find a text string with space(s) in it.
    (This is in a Function.)
    Let's say ParmIn_Look_For has a value of 'black dog'. I want to see if
    ParmIn_Search_This_String has 'black dog' anywhere in it. But it gives an error
    Syntax error on command line.
    If ParmIn_Look_For is just 'black' or 'dog' it works fine.
    Is there some way to put single quotes/double quotes around ParmIn_Look_For so this will
    look for 'black dog' ??
    Also: If I want to use the option of ignoring white space, is the last parm
    'ix' 'i,x' or what ?
    SELECT
    REGEXP_INSTR(ParmIn_Search_This_String,
    '('||ParmIn_Look_For||')+', 1, 1, 0, 'i')
    INTO Position_Found_In_String
    FROM DUAL;
    Thanks, Wayne

    Maybe something like this ?
    test@ORA10G>
    test@ORA10G> with t as (
      2    select 1 as num, 'this sentence has a black dog in it' as str from dual union all
      3    select 2, 'this sentence does not' from dual union all
      4    select 3, 'yet another dog that is black' from dual union all
      5    select 4, 'yet another black dog' from dual union all
      6    select 5, 'black dogs everywhere...' from dual union all
      7    select 6, 'black dog running after me...' from dual union all
      8    select 7, 'i saw a black dog' from dual)
      9  --
    10  select num, str
    11  from t
    12  where regexp_like(str,'black dog');
           NUM STR
             1 this sentence has a black dog in it
             4 yet another black dog
             5 black dogs everywhere...
             6 black dog running after me...
             7 i saw a black dog
    5 rows selected.
    test@ORA10G>
    test@ORA10G>pratz
    Also, 'x' ignores whitespace characters. Link to doc:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions007.htm#i1048942
    Message was edited by:
    pratz

  • Handling date to ADD or Substract fixed # of days using standard function

    Hi ,
    Using the standard functions in XI, is it possible to add or subtract a fixed number of days from the date i get from the input file.
    Like, from file I get the date as 25/06/2009.My output should be 05/07/2009 after adding 10 days .
    can some one guide how to handle this.
    Thanks,
    Ven..

    Hi Ven,
    Here is a  UDF code,which takes date(format:yyyyMMdd) as input and does addition or subtraction operations based on <field 1> value,return the result date(format:yyyyMMdd) as string value.
    public String GenerateDate(String date_input, String field1,Container container){
    //Here "date_input" and "field1" are inputs for this UDF
    int date = Integer.parseInt(date_input);
    Calendar cal;
    int day = date % 100;
    int month = (date/100) % 100 - 1;
    int year = date / 10000;
    cal = Calendar.getInstance();
    cal.set(year, month, day);
    /implement addition or subtraction logic here as your needs/
    if (field1 == "A")
    cal.add(Calendar.DATE, 10);
    else if(field == "B")
    cal.add(Calendar.DATE, -5);
    day = cal.get(Calendar.DATE);
    month = cal.get(Calendar.MONTH)+ 1;
    year = cal.get(Calendar.YEAR);
    date = year * 10000 + month * 100 + day;
    return (""+date);
    You can use Standard Funtion DateTrans to convert date from your format to the format used in the UDF and vice versa.
    Regards
    Pravesh

  • Problem using SUM standard function  during Field Mapping

    Hi Experts ,
    I am trying to sum all LIFMG 's in in the lineitems of a particular
    header and map this result to Lifmg of the header.(Idoc with multiple headers and line item).I am using SUM standard function.
    Rough Source structure.
    Header1
          vbeln
    ....Lineitem1
          vbeln
          posnr
    ......LIFMG
    ....Lineitem2
            vbeln
            posnr
    ......LIFMG
    Header2
         vbeln
    ....Lineitem1
            vbeln
           posnr
    ......LIFMG
    ....Lineitem2
            vbeln
           posnr
    ......LIFMG
    I am able to find the SUM ...but in the target structure's Header field  I am getting
    repeated value of the corresponding sum in each header ...i.e.
    Header1
    LFIMG-- 100
    LFIMG    100
    Header2
    LFIMG-- 102
    LFIMG    102
    How to get a single value for each .
    Regards,
    Deepak

    Solved Myself ...
    Placed  sum after  if without else ...
    placing it before was causing ...those values to be replicated.

  • Is it necessary to use the standard function modules always?

    Hi All,
       Suppose i can retrieve the BUSINEES PARTNER ID from the table BUT000 with the help of 'BP_GUID' field through a select query statement. 
    Now is it necessary to use a standard function module to retrieve the same data. what about the performance? which is the better solution. to implement our own code or to use the function module available.
    Please someone clarify me about this issue.
    Regards,
    Sharry.

    If you'd ask the question in general it's obvious that there is no good answer as it always would depend on the circumstance. However, as you've posted your question in the performance tuning forum, let's look at your question in this context first. I think it's fairly safe to say, that in almost 100% of the cases a standard function module will not be as fast as any well implemented and custom tailored code. If in doubt, just try reading the code of the function module you want to read; most likely you will find lots of unnecessary fluff in there, often they read data that you don't even need.
    And as far as buffering is concerned, that can also be an issue. E.g. let's say you do a massive read of distinct business partners and you only need the data once for each partner. Obviously buffering is silly in this case and it might even slow down your program, because the implemented buffering is not necessarily well implemented. I've come across a few cases, where the buffer tables where standard tables with no efficient read access (so no sorted table or hash table) and once tons of data were buffered, it actually took a moment to look up if the record already was buffered (just to find it wasn't there yet).
    Now most of the times this slowdown is not an issue as the lookup is still fast compared to the (usually) prevalent database accesses with their slower IO timing. But another factor to consider is memory consumption and why buffer data in memory (and waste it), if you can't use the buffer anyway? So when I do use standard function modules, I usually try to see what they retain in global memory, to better understand if I need to call some initialization/clearing/refresh function...
    Note also that often you need to process lots of data, but don't find a standard function module for "mass access", so you need to read your object one by one. Obviously that's another good candidate for implementing your own queries, where you can process the data in packages.
    So what might be the reason to use a standard function module? Well, often it's required because the logic is so complex that it would take you too much time to implement it (not to mention that we often simply don't know all the logic that's coded in there). Another advantage is that you might get independent of the data model. E.g. for IDoc interfaces SAP switched in some release the tables where the data is stored. So if you had coded your own queries to get IDoc data, they wouldn't have worked after this particular release upgrade. The standard function on the other hand, checks both the old and new tables, so by using it you would have been fine.
    The one major caveat I'd give though is to always check whether the function module is released or at least documented to some degree. I.e. if it's not released, SAP won't support it and does not guarantee that the interface or logic stays the same. In my experience lots of functions I do want to use are not released (or documented), but I will still use them because they seem to be the best alternative in certain scenarios.
    Cheers, harald

  • Standard function modules to get birthday list etc.

    Dear all,
    I need to read the following information, it is nice to have standard function modules, do you know any?
    1. monthly birthday list
    2. anniversaries of people in a month
    3. Entries/Exits of people in a month
    4. reminder for other HR events like Performance Review and Expiry of Probation
    Thanks a lot.

    Alex
    goto t-code SE37 and do a wildcard search:
    type *birth* and hit the F4 key on keyboard
    the list of function modules to extract brithdates will list out.
    you will need to spend time to review if each of them fits your requirement
    likewise for other function, feel free to do the wildcard search using the keyword in Se37
    should you are not able to find any FM for your use, i am afraid you may need to develop your own FM
    Edited by: Gregg Chen on May 19, 2011 3:20 PM

Maybe you are looking for

  • IMac 27" (Late 2009): getting audio to HDMI receiver via mini DisplayPort

    I just got my first iMac 27" and I'm in the process of integrating it into my home theater system. Here is my setup: iMac 27" connected to HDMI receiver (Yamaha RX-V1800) via mini DosplayPort, using miniDP-to-HDMI adapter + HDMI cable Optoma HD20 vid

  • Old iWeb and Tiger to iWeb '09 and Snow Leopard - can I salvage my site?

    I recently updated my operating system from Tiger to Snow Leopard. In the process I had to re-format my hard drive and so all of my data was lost, including my iWeb files (which were created on the original version of iWeb starting in 2006). I have b

  • Display fetched value as heading

    Hi Experts, Please advice if it is possible to display the fetched value as heading in ALV. Suppose If in dbtab: OBJECT           OBJECT DESCRIPTION            CLASS           VALUE OBJ 1             MACHINE 1                       A               20

  • Problem Assigning Local Shared Object

    I have created a swf that increments a dollar amount every five seconds. My clients want this dollar counter to be consistent between HTML pages. That is where the local shared object comes in. I can create it fine, and even read it (I know this by a

  • Animating damage to a 2D map

    Hi, I'm a student creating a re-make of 'Scorched Earth' for my final year, and I'm having problems with dame and was wondering if any1 could help. Basically, my map is generated by drawing straight lines at every x co-ordiate from the bottom of the