Simple One: How to fetch substring from last of the word

Say there is variable = '[email protected]'.
Everytime I want to retrieve @rediffmail.com from this string  for validation .
One method is : I have used SPLIT at '@' but at that case in second variable I will get rediffmail.com instead of @rediffmail.com.
This method is ok . but can you suggest some other method.

Your method is the efficient way to retrieve the last word.
Split the string at '@' and then if you need to have '@' within your string, CONCATENATE it.
Regards,
pavan.

Similar Messages

  • How to fetch data from Mysql with SSL.

    I am using jdk1.5 and mysql 5.0.
    How to fetch data from Mysql with SSL
    I am using url = jdbc:mysql://localhost/database?useSSL=true&requireSSL=true.
    It shows error. how to fetch

    I have created certificate in mysql and checked in mysql.
    mysql>\s
    SSL: Cipher in use is DHE-RSA-AES256-SHA
    but through ssl how to fetch data in java.

  • How to fetch records from query.....

    hii experts,
    How to fetch data from following query.... The query is depend on the Project_Id
    SELECT           'Plant Consumption' TYP,                                 -1*ROUND(SUM (MTA.BASE_TRANSACTION_VALUE)) S_VALUE,
    TO_CHAR (MMT.TRANSACTION_DATE, 'Mon-rrrr') MNTYR,
    TO_CHAR (MMT.TRANSACTION_DATE, 'rrrrmm') MNT,
                        TO_CHAR(MMT.TRANSACTION_REFERENCE) TRX_REF,
                        MMT.SOURCE_LINE_ID SRC_LIN,
                        TO_CHAR(MMT.SHIPMENT_NUMBER) SHP
    FROM (SELECT TO_CHAR( OLA.HEADER_ID) HDR1,
                        OLA.LINE_ID LINE1,
                                  OLA.PROJECT_ID ,
                                  TO_CHAR(OLA.SHIPMENT_NUMBER) SHP1
                             FROM OE_ORDER_HEADERS_ALL OHA,
                                  OE_ORDER_LINES_ALL OLA
                             WHERE OHA.HEADER_ID = OLA.HEADER_ID
                             AND OHA.ORG_ID = OLA.ORG_ID
                             AND OLA.PROJECT_ID = :P_PROJECT_ID
                             AND OLA.ORG_ID = :P_ORG_ID
                             AND OLA.FLOW_STATUS_CODE = 'CLOSED'
                             ) A,
                        MTL_MATERIAL_TRANSACTIONS MMT,
    MTL_TRANSACTION_ACCOUNTS MTA,
    GL_CODE_COMBINATIONS GCC
    WHERE MMT.TRANSACTION_ID = MTA.TRANSACTION_ID
    AND GCC.CODE_COMBINATION_ID      = MTA.REFERENCE_ACCOUNT
    AND MMT.TRANSACTION_TYPE_ID = 33
    AND GCC.SEGMENT1 = '11'
    AND GCC.SEGMENT2 = '13'
    AND GCC.SEGMENT3 = '34381'
    AND GCC.SEGMENT4 = '0000'
    AND                GCC.SEGMENT5                     =      '000000'
    AND MMT.SHIPMENT_NUMBER IS NOT NULL
    AND MMT.PROJECT_ID IS NULL
    AND           A.HDR1           = TO_CHAR(MMT.TRANSACTION_REFERENCE)
    AND                A.LINE1           = MMT.SOURCE_LINE_ID
    AND A.PROJECT_ID = :P_PROJECT_ID
    AND                A.SHP1           = TO_CHAR(MMT.SHIPMENT_NUMBER)
    GROUP BY TO_CHAR (MMT.TRANSACTION_DATE, 'rrrrmm'),
         TO_CHAR (MMT.TRANSACTION_DATE, 'Mon-rrrr'),MMT.TRANSACTION_REFERENCE,MMT.SOURCE_LINE_ID,MMT.SHIPMENT_NUMBER;
    -----

    hii
    The project_number is matching column in table mtl_material_transaction mmt and A (FROM CLAUSE query). But data retreive based on
    WHERE MMT.PROJECT_ID IS NULL
    AND A.PROJECT_ID = :P_PROJECT_ID
    PS

  • What is a cube? how we store data in that? how we fetch data from cube?

    Hi,
    What is a cube? how we store data in that? how we fetch data from cube?
    Regards.
    venkat

    >
    venkey B wrote:
    > Hi,
    >
    >
    > What is a cube? how we store data in that? how we fetch data from cube?
    >
    >
    > Regards.
    >
    > venkat
    Hi Venkat,
    I guess you mean an infocube from the SAP BI product. I propose to look at the forum for Business Intelligence to find your answers.
    E.g. SAP POS DM writes the sales data in infocubes.....

  • How to fetch data from PTREQ tables

    I need to display  data in the customised webdynpro application from PTREQ tables.
    Can anyone help me out how to fetch data from these tables.

    use the standard modules like
    PT_ARQ_REQUEST_CHECK
    PT_ARQ_REQUEST_EXECUTE
    PT_ARQ_REQUEST_PREPARE

  • How to fetch data from cluster tables

    hi
    i need to know  how to fetch data from cluster tables please update me if any
    i know that we cannot use joins in cluster table we use view etc
    but i need detailed inforation on methods for fetching data from cluster tables
    regards
    Nishant

    Hi,
        Check the following links
    http://fuller.mit.edu/hr/cluster_tables.html
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33

  • Why has apple restricted adobe flash player?  How can one watch things like shows from CBS without the flash player?

    Wy has apple restricted the use of adobe flash player?  How can one watch things like shows from CBS without the flash player?

    This has been discussed a billion times. Please search before posting.
    Read this: http://www.apple.com/hotnews/thoughts-on-flash/
    CBS has apps for watching its shows. Search the AppStore.

  • How do I restore from last backup  before IOS upgrade?

    How can I restore from last backup before IOS upgrade?

    You need to go into Settings > General > Reset > Erase all Content and Settings.
    Once done you will be back as though it is a new iPhone and you can setup from the iCloud backup.

  • How to pass arguments from PAPI to the process

    Can any one tell me How to pass arguments from PAPI to the process.

    The link Creating a new work item instance in a process using PAPI shows how to create instances on PAPI and pass in the variable information as they are being created.
    Provide some additional detail if you're interested in seeing how to pass in variable information using PAPI for scenarios other than instance creation.
    Dan

  • When i open my itunes of recent edition , i am getting error as  "itunes.exe has been set to run in compatabiltity mode " Though i reinstalled it several times from last days ,the problem is not solved. Please provide the solution asap.

    When i open my itunes of recent edition 12.0, i am getting error as "itunes.exe has been set to run in compatabiltity mode " Though i reinstalled it several times from last days ,the problem is not solved. Please provide the solution asap.

    Try iTunes for Windows: How to turn off Compatibility Mode.
    tt2

  • How to fetch data from different sources into one source (like into Ztable)

    hi friends,
    As per our client requirements they want to develope an Inventory and an Ontime delivery report in BO on top of Oracle database.
    Situation is some thing like they have ECC 6.0.and they want to collect all inventory and ontime delivery data at one place.According to me that could be one Ztable in which we can gather all data.Apart from that they are going to use Data Integrator in which they can directly fetch the data from R/3 system(They dont want to have BI system) and put all data in Oracle DB.On top of ORacle BO person can develop BO reports.
    My question is how to fetch all data at one place and what are the tables going to be use.
    kindly help me out as its very important project.
    Thanks
    Abhishek

    The following is my standard reply to those who need to get old data from a backup in one account and add it to another account.  The method described here may be applied to your case.  It would be a bit of a long process, though.
    When connected to the account you want to GET data from, Go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off. 
    When prompted choose to keep the data on the iPhone. 
    After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.
    Note that this only affects the "Apple data" like contacts, calendars, reminders, etc.  Many third party apps also use iCloud to store data files there.  These files may be lost in the process, unless the apps also keep the data locally on the device.
    NOTE:  Photos in the photo stream (if you use it) will not transfer to the new account.  It is advised that you save the photos to a computer before performing the account switch. 

  • How to run select query from one SID to fetch record from another SID?

    I have two SID, one is AAA and another is BBB and the connection name is A1 and B1 respectively. I want to run one select query from A1 connection to fetch record B1. Can anyone help me how I can connect from one SID to another SID?

    Hi 869357,
    You can also use the copy command. (Works with limited types)
    try:
    help copyRegards,
    Turloch

  • How to fetch data from bseg based  on 2 internal tables in 1 select query?

    hi,
    i have bukrs and belnr in one internal table and bukrs and vbeln in another internal table..now if i select from bseg twice using for all entries for fields bukrs vbeln and bukrs belnr twice in 2 select statements its fine..but since bseg is a huge table i want to use select only once..but the problem is that none of the belnrs in the one internal table will have vbeln in another internal table....ie if vbeln is selected from bseg based on belnr in 1 internal table non eof those vbeln will be equal to vbeln on another internal tables..in this scenario even if i take all data from two internal tables into 1 single internal table and then use for all entries on vbeln and belnr of that table ..but i think this will not work because and AND operator will not work because no record will satisfy both vbeln and belnr conditions..even if i use OR operator if the 1st condition satisfies the select clause will not enter into the second clause and all the records will not be fetched...Please help how should i tackle this..

    Hi vijaya,
    no simple select statement solution so far.
    As BSEG is a huge table you should try to get the full key values into another internal table first.
    SAP avoids direct selections from BSEG.
    Pleas consider the use of one of the secondary index tables first:
          BSAD : Accounting: Secondary Index for Customers (Cleared Items)
          BSAK : Accounting: Secondary Index for Vendors (Cleared Items)
          BSAS : Accounting: Secondary Index for G/L Accounts (Cleared Item
          BSEC : One-Time Account Data Document Segment
          BSEG : Accounting Document Segment
          BSID : Accounting: Secondary Index for Customers
          BSIK : Accounting: Secondary Index for Vendors
          BSIS : Accounting: Secondary Index for G/L Accounts
    you may include
          BKPF : Accounting Document Header
    for restrictions about time and document type.
    The last step is a FOR ALL ENTRIES selection from BSEG providing the full key values.
    Although you may have even more selects, the overall performance will be much better.
    Regards,
    Clemens

  • How to fetch data from CDHDR Table based on Order Number

    Hi,
    I need to fetch the data from CDHDR just based on the Order number .I found there is a field called 'OBJECTID' in table 'CDHDR'. But the  last part of OBJECTID contains order number.suppose my order number is 90506210 the objectid field contains '51030000090506210'.510 is login client,don't know what 30 is and last part is order number i.e 000090506210.i have to concatenate all and fetch data .i can do it for one order number but here order number is declared as select-options.how do i ?
    HERE IS THE CODE FOR ONE ORDER NUMBER.HOW CAN DO FOR RANGE OF ORDER NUMBERS.
    PARAMETER : S_OBJECT FOR  /BEV1/RBVBAK-AUFNR  OBLIGATORY.
    DATA : IT_CDHDR TYPE STANDARD TABLE OF CDHDR WITH HEADER LINE,
                 WA_CDHDR LIKE LINE OF IT_CDHDR,
                 S_OBJECT1 LIKE CDHDR-OBJECTID.
    CONCATENATE  sy-mandt  '30'  S_OBJECT INTO S_OBJECT1.
    SELECT * FROM CDHDR INTO TABLE IT_CDHDR WHERE OBJECTID = S_OBJECT1.

    P838355 wrote:>
    > Hi,
    >  I need to fetch the data from CDHDR just based on the Order number .I found there is a field called 'OBJECTID' in table 'CDHDR'. But the  last part of OBJECTID contains order number.suppose my order number is 90506210 the objectid field contains '51030000090506210'.510 is login client,don't know what 30 is and last part is order number i.e 000090506210.i have to concatenate all and fetch data .i can do it for one order number but here order number is declared as select-options.how do i ?
    >
    > HERE IS THE CODE FOR ONE ORDER NUMBER.HOW CAN DO FOR RANGE OF ORDER NUMBERS.
    >
    >
    > PARAMETER : S_OBJECT FOR  /BEV1/RBVBAK-AUFNR  OBLIGATORY.
    >
    > DATA : IT_CDHDR TYPE STANDARD TABLE OF CDHDR WITH HEADER LINE,
    >              WA_CDHDR LIKE LINE OF IT_CDHDR,
    >              S_OBJECT1 LIKE CDHDR-OBJECTID.
    >
    > CONCATENATE  sy-mandt  '30'  S_OBJECT INTO S_OBJECT1.
    >
    > SELECT * FROM CDHDR INTO TABLE IT_CDHDR WHERE OBJECTID = S_OBJECT1.
    You need to loop through the select option and concatenate with required data then select using 'in' instead of equal or select one by one.
    or
    select sales order numbers from VBAK for the selection into internal table then loop through the internal table and concatenate then select from CDHDR.
    for better performance use objectclass in where clause. the value for sales order for objectclass is VERKBELEG.
    in my system the object id is just an order number there is no other additions to it but in CDPOS the tabkey contains the order number with client and other information also.
    the 30 may be your item number... check it
    go ahead and change sales order and see what you can find in CDHDR
    Good luck
    Edited by: Sampath Kumar on Oct 21, 2009 9:02 AM

  • How to fetch assets from tables depending on periods submitted in query ?

    Hello,
    Module : Fixed Assets
    We are trying to fetch the assets for a report depending on the periods['From Period' & 'To Period'] given to SQL query,but we are not getting count of assets as expected.
    And so the count isn't matching with 'CIP Details Report' which is a seeded oracle report.Here is the query that we tried,
    SELECT   fadd.asset_id, fadd.asset_number,
             fak.segment1 || '.' || fak.segment2 asset_key, fadd.tag_number,
             fadd.description asset_description,
             fadd.attribute_category_code asset_category,
             fb.date_placed_in_service, gp.start_date, gp.end_date
        FROM fa_additions fadd,
             fa_asset_keywords fak,
             fa_books_v fb,
             gl_periods gp,
             fa_deprn_periods fdp,
             fa_asset_history fah,
             fa_transaction_headers fth
       WHERE fadd.asset_key_ccid = fak.code_combination_id
         AND fadd.asset_id = fb.asset_id
         AND fah.asset_id = fadd.asset_id
         AND fth.asset_id = fah.asset_id
         AND fth.transaction_header_id = fah.transaction_header_id_in
         AND fah.asset_type = 'CIP'
         AND fdp.book_type_code = fb.book_type_code
         AND fdp.period_name = gp.period_name
         AND fdp.book_type_code = :p_book_type_code            --'KV US CORP BOOK'
         AND fdp.period_counter =
                (SELECT MAX (fdp.period_counter)
                   FROM fa_deprn_periods fdp
                  WHERE 1 = 1
                    AND fdp.calendar_period_open_date BETWEEN (SELECT start_date
                                                                 FROM gl_periods
                                                                WHERE period_name =
                                                                        :p_period_from) = -- 'JUL-12-F13'
                                                          AND (SELECT start_date
                                                                 FROM gl_periods
                                                                WHERE period_name =
                                                                        :p_period_to)) -- 'DEC-12-F13'
         AND fth.transaction_date_entered
                BETWEEN (SELECT calendar_period_open_date   
                           FROM fa_deprn_periods                      --gl_periods
                          WHERE period_name = :p_period_from           -- 'JUL-12-F13'
                            AND book_type_code = :p_book_type_code)   --'KV US CORP BOOK'
                    AND (SELECT calendar_period_close_date    
                           FROM fa_deprn_periods                      --gl_periods
                          WHERE period_name = :p_period_to              -- 'DEC-12-F13'
                            AND book_type_code = :p_book_type_code)
    GROUP BY fadd.asset_id,
             fadd.asset_number,
             fak.segment1 || '.' || fak.segment2,
             fadd.tag_number,
             fadd.description,
             fadd.attribute_category_code,
             fb.date_placed_in_service,
             fb.deprn_method_code,
             fb.life_in_months,
             gp.start_date,
             gp.end_date
    ORDER BY 1
    The query returns the assets which have the 'transaction date entered' between the periods submitted.
    But what about the assets who's 'Beginning Year Balance' is not zero [in the periods submitted in the query], those assets should also get displayed in the report.[and seeded report 'CIP Detail Report' shows assets who's 'Beginning Year Balance' is not zero along with  the assets which have the transaction date entered between the periods submitted]
    Any inputs / help / suggestions on this ?
    Thanks !

    Hi vijaya,
    no simple select statement solution so far.
    As BSEG is a huge table you should try to get the full key values into another internal table first.
    SAP avoids direct selections from BSEG.
    Pleas consider the use of one of the secondary index tables first:
          BSAD : Accounting: Secondary Index for Customers (Cleared Items)
          BSAK : Accounting: Secondary Index for Vendors (Cleared Items)
          BSAS : Accounting: Secondary Index for G/L Accounts (Cleared Item
          BSEC : One-Time Account Data Document Segment
          BSEG : Accounting Document Segment
          BSID : Accounting: Secondary Index for Customers
          BSIK : Accounting: Secondary Index for Vendors
          BSIS : Accounting: Secondary Index for G/L Accounts
    you may include
          BKPF : Accounting Document Header
    for restrictions about time and document type.
    The last step is a FOR ALL ENTRIES selection from BSEG providing the full key values.
    Although you may have even more selects, the overall performance will be much better.
    Regards,
    Clemens

Maybe you are looking for

  • Intel HD Graphics 5500: Wrong rendering with KMS

    Hi folks, I've been struggling to get my new laptop – a PC Specialist Lafité with Intel Core i7-5500U – configured properly and wonder if somebody could help me out.  The problem seems to be in the graphics configuration. This is the controller: 00:0

  • Data socket buffer overflow detection

    Hello, I plan to use data socket to access SharedVariables. I started with the example Buffering.vi from the Shared_Variable_Buffering.lvproj shipped with LabVIEW 2009 SP1 (DSC-Module). This example leads to a read buffer overflow caused by the high

  • IPod Touch not recognising internal wi-fi hardware

    I used my ipod touch to access the home page of my wireless router (192.168 blah blah) and Safari froze while attempting to load the page. It stayed like that for about 5 minutes until the ipod turned itself off. When I turned it back on and went int

  • Airport base station graphite

    I'm having trouble connecting my airport base station graphite to my macbook. My macbook is running 10.6.8 and I downloaded the airport admin utility 4.2.5 for graphite but when I open it, it says that it doesn't support this version of OSX. I tried

  • ORA-28547 - Multiple Oracle Homes - Sqlplus

    I have two oracle homes XE and Developer 10g When trying to access XE using Sqlplus I receive ORA-28547. C:\>sqlplus system@xe SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 8 16:29:21 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved.