Select only first 10 chars from the field in a table while writlng a selec

hi experts,
In a table  one field contains a value of above 10 characters (ex 10 or 15 or 20 characters).But i want to select
only first 10 characters from this field while writing a select statement.
This logic should be included in select statement.
please gime immediate solution.
My question is understood.

Hi,
Try this one
data : begin of itab occurs 0,
        maktx(10) type c,
end of itab.
" though the length of MAKTX is 40 you only get 10 chars
select maktx from makt into table itab up to 10 rows.
if sy-subrc is initial.
endif.
" Suppose the field name of table you want to select is MAKTX then declare
" Your internal table in the above manner, it will automatically fit into it and will get 10 Chars only
" Instead of burding the select query / DB interface use the above.
Cheerz
Ram

Similar Messages

  • How to extract data from the fields present in two or three tables

    Hi Experts,
          I have a scenario where i have to extract data from the fields of different tables. e.g. let there 2 tables which have some number of fields . I want the data of 3 fields each from these 2 tables. How can i get that??
    Sam

    Hi
    You can create view in tcode se11..
    here you include all tables from which you want to fetch the data..
    you need to give selection condition here
    eg..
    say select empname from table A, select empadd from table B.. where empno(from A)=empno(from B)
    (note that you dont need to write queries like this.. i have just given u the example)
    After creating the view you can create datasource in RSO2..
    Regards
    Swati

  • How to get the text field in the header for only first page of the report

    Hi,
    I am developing reports in BI Publisher Enterprise where i am facing problem i.e., i have to get some text field in header,for only first page in the result but it is displaying in all the other pages of the report in result.So,please if you have any idea of how to solve it, please reply.It is required as early as possible.
    Thanks in Advance

    Invalid path? What are you doing? Writing the report output to an invalid directory?
    Where are your terms and conditions? It would be very easy just to put them in a database table and select them in your report query.

  • Could you please tell me why as a Brit resident in Japan therefore having a billing address that is Japanese is forced to only get service from the Japanese online store? Is there not some way of allowing me to select movies and music to buy and download

    Could you please tell me why as a Brit resident in Japan therefore having a billing address that is Japanese is forced to only get service from the Japanese online store? Is there not some way of allowing me to select movies and music to buy and download from other stores. Why do am i forced to try to nread Japanese when I have selected English as my language. The price for Downloads is no different and even if it was I am happy to pay. This also applies to Movie rental which is crazy and extremely restrictive. I a supposed GLOBAL community why does Apple do this.

    You can buy ONLY from the itunes store of your country of residence (As proven by valid billing address of credit card) and ONLY while inside the borders of that country.
    These are the terms of the itunes store.

  • Selecting first char from column

    In my qeury below i would like to select the first character from the column other_party_number. How can i do this? The left function does not seem to work
    in pl/sql. I get an error statinf invalid identifier. Can anyone please help? Thanks
    select call_date, left(other_party_number, 1) as number
    from ccwebcf.calls_archive

    Hallo,
    why do you think, that LEFT must work in SQL ? :-)
    Dmytro,
    Probably because LEFT works in other languages and other incarnations of SQL. Not everyone is tied to Oracle you know. ;-)
    Oh look, if I run the SQL on an ingres database...
    select left('blushadow',3) as name
    name
    bluMwuhahahaha!
    :)

  • My itunes is separating the first song from the rest of the album

    Can anyone help, my itunes separates the first song from the rest of the album so they apear as two separate things in itunes, very very annoying as it has only done it one some albums not all!!

    I was having this problem if I changed the name of an artist for an entire album from in grid view. This ended up changing the name successfully, but left me with the first track as a separate item in the grid. The solution suggested by bkpr worked for me; I entered the artist name into the album artist field, and saving this change merged the album back together. I could then remove the album artist entry without the album separating again. Thanks for the suggestio bkpr

  • When using the search function in mail I only see results from the current year. how can I see results from all years?

    When searching mail results only contain messages from the current year. I'd like to see results from all years. This just started after upgrading from Snow leopard to Lion.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Always first item from the punchout catalog will get missed in SRM cart

    Hi All,
    Recently we have configured the vendor punch-out catalog in our SRM system. We are able to get in to their catalog and able to select the items. However we have observed the following.
    1) When we select 3 items from the list we get only 2 items in to our cart.
    2) When we select 4 items we get only 3 items to our cart
    It is noted that always the first item selected will be missing when comes to SRM shopping cart.
    We have debugged the Badi BBP_CATALOG_TRANSFER and observed in that only 2 items are entering in to SRM server in the first case and 3 items are entering in to SRM server in the second case.
    One more thing observed that when we select only one item in the catalog, that comes to our shopping cart without any issues.
    Can any body help me in this, is this issue with vendor side or can there be an issue at our SRM server.
    Thnaks
    psamp1

    I take it that you checked the CATALLOG_CONTENT table? Does the table CATALOG_CONTENT_ERRORS have any errors posted?
    Checking if the error is at the vendor site:
    Check the source code of the vendor just before the shopping cart is returned to SRM. Sometimes it's easy, just right-click in your browser and click 'show source'. This opens the source html of the page. Search for "NEW_ITEM" and see if all products are there.
    The difficult thing is that sometimes the vendor catalog uses a self-posting form. Timing is important then. Right after you click press the escape key, this stops your browser from continuing. Now do the above again.
    Things you can bump into: you're too quick, there is no form with the NEW_ITEM lines. You're too slow: you're back in SRM already. So if it doesn't work at the first try, try again.
    Check all the NEW_ITEM lines and see if the first item is missing there.

  • How to select only first few values in a Column

    Hi, in one of the column of type SDO_GEOMETRY. In that column we have many values. Example : *(-6.33787700000002, 56.547309, -6.33786800000001, 56.547279, -6.33781400000001, 56.547249, -6.33776900000001)*
    I wanted to know how can i select only first two or last two values from within the column.
    Eg: i want only -6.33787700000002, 56.547309 to be displayed
    Thanks

    Hi,
    Are the value specified here are multirow or single row data?
    if it is multi row, Karthick solution should work. Else if it is a single row then try this
    with T as
    select '-6.33787700000002, 56.547309, -6.33786800000001, 56.547279, -6.33781400000001, 56.547249, -6.33776900000001' SDO_GEOMETRY from dual
    -- end of sample data
    select substr(SDO_GEOMETRY,1,instr(SDO_GEOMETRY,',',1,&cnt)-1) Output from T
    PRAZY@11gR2> /
    Enter value for cnt: 2
    OUTPUT
    -6.33787700000002, 56.547309
    Elapsed: 00:00:00.05And remember, while posting questions it is good to specify your DB version with clear sample data and required output.
    HTH,
    Prazy

  • How do I use pots on my client machine to change values, from the field, on my server machine and all other client machines?

    I am using Lookout 4.5, build 12, and I am having a problem concerning pots. I have data tables created for the different size sewer stations my system monitors. For each station, there are setpoints for starting and stopping of the pumps. I want to be able to change the setpoints for a station on the client file using a pot and have it change on all other machines running Lookout. I did this in 3.8 using DDE, but I don't want to use DDE anymore.
    I created a pot on the client file and URL'ed it to a pot on the server. On the server I created a table with a generic member "A" named "Lead Setp" and then created a member "A1" named
    "C5_1LeadSetp" then a member "A2" named "C3_1LeadSetp" and so on....
    In this table I connected the generic member "A" to the Pot I created on the server, and I connected A1 to its corresponding setpoint signal coming in from the field.
    On the client file I connected (in the table similar to the one on the server but with all signals for the station) the "A1" member to the setpoint signal coming in from the field, and I connected the "A" member to the Pot I created on the client file which is URL'ed to the pot on the server file.
    But, when I change the value of the pot on the client file, only the pot on the server and the "A" member in the table on the server change to the value of the pot on the client. The "A1" member whose screen I am changing the values from on the client does not change! This is the last thing I have to do and my file will be completely converted to 4.0. Does anyone have any ideas?
    Thanks for any responses..
    GBWY
    Jason
    Jason Phillips

    Hi Jason,
    If I understood your task correctly, you want to change the Setpoints on the Server DataTable using Pots from different clients. And also reflect these changes on the clients locally.
    You correctly remoted the Pots on the Clients to the corresponding Pots on the Server. However, you do not need tables on your clients. All you need is Expressions on each client to the particular cell of the Clients.
    So, to summarize: On the Server, the Pots write to the DataTable. And since the Pots on the Clients are remoted to these Pots on the Server, you can affect any change using these Pots. Because of the common remote source (Server Pots, i.e.) all of these Pots will always be in sync. Finally, to get the Setpoints on the Clients, just insert Expressio
    ns to the Server's DataTable.
    I am attaching a simple example (exmpl.zip) which does this. There are three processes -- My_Server, My_Client1, and My_Client2. I had them setup on the same machine so the paths are all process relative, but you can always change those to computer relative or absolute and move the client processes to diff machines.
    Hope this helps.
    Rgds,
    Khalid
    Attachments:
    exmpl.zip ‏12 KB

  • C4650 Will only print black from the internet. MS Word and PS will not print in black but has color.

    Before you think I just haven't tried anything, let me run you down with the whole lot:
    -HP PhotoSmart C4650
    -Windows Vista
    -Problem: My printer won't print in black --but-- this only goes for Microsoft applications it seems. If I have a page of text in black, when printing from MS Word, the page comes out blank, however the printer is actually "printing" back and forth. IF, however I print from my browser, from email, or a webpage, picture, google docs, etc, black prints *just fine.* So far this holds true for both MS Word and PhotoShop CS5. Issue: Black ink simply doesn't print from any program other than a browser.
    -NO. The cartridge isn't empty. NO. It's not incompatible. NO. The cartridge head isn't dry and I am not going to soak it in water. This is a new cartridge. It's the official HP brand.
    I've done a search and I've found that a few people seem to have this "only print from the internet" problem, however none of these was solved. The only advice that an HP support member gave to one of them is to "install XP service pack 2" however.. I am not running XP. A few other people get the opposite issue where they can only print color from the internet and not from the computer's applications.
    I don't know much about printers but it sounds like some kind of driver issue. Yes. I've already searched for, uninstalled and reinstalled drivers. Whenever I have to print something, I now try to open it up in my firefox just so I can be able to print black. It's quite the hassle. Almost seems like some kind of ploy to cause people to buy new ink cartridges when it's not really empty.
    -Yes, I have also uninstalled and reinstalled the printer.
    -Updated my windows (although idk how that would help. But I know it's going to be a suggestion anyway.)
    Is there any known fix or should i chuck it off the balcony and go get a lexmark?

    Hi lisaloyd,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I see that you are having issues printing in colour.  I also see that you are using a Lexmark printer. I would advise you to get into contact with Lexmark so that they can show you how to navigate through the printing software that they provide.
    Please click on the following link to get to Lexmark Support.
    Thank you for your time.
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • How to find out the table from the field.

    Hi Friends,
    I want to know the table name from the field.
    I mean i know the field with which i want to know the table. I tried but could find the structure only but how can i find the table.
    Please guide me.
    siva.

    Hi Sivakumar,
    Using DD03L (in SE16, SQVI) you can list the tables & structures which contain the desired field.
    (If it's a very common field [e.g. MATNR] you'll get a huge amount of hits...you can also use 'F1' + 'Technical information' [in the transacton you are] to get information on table & field as mentioned before)
    http://www.erpgenie.com/abap/tables.htm
    BR
    Csaba

  • Is it possible to only install Color from the FCS3 suite?

    Is it possible to only install Color from the FCS3 suite? If so, what is the correct procedure?
    thanks

    I'm not sure whether you can install it on its own or whether you will need FCP as well.
    Open the installer, go through it and you will come to a page where every app and its media is listed.
    Deselect everything except Color and continue with the installation.
    If it refuses you will have to go back and select FCP as well.

  • If you right-click an image you can select to "Block Images" from the site, but how do you reverse this choice?

    If you right-click an image on a web page you can select to
    "Block Images from [the url of the site]".
    This works well, particularly to make the page printer-friendly, but how do you reverse this choice to see the images again?

    You can see all permissions for the current page in Tools > Page Info > Permissions
    If it is from a different domain then use this:
    *A way to see which images are blocked is to click the favicon (<i>Site Identification</i> icon) on the left side of the location bar.
    *A click on the "More Information" button will open the Security tab of the "Page Info" window (also accessible via "Tools > Page Info").
    *Open the <i>Media</i> tab of the "Page Info" window.
    *Select the first image and scroll down though the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • TS1389 I am trying to authorise a new computer. The Apple instructions are to select Authorise this computer from the itunes store menu. I can't find this in any menu. Can you please help? How do I authorise my computer?

    I am trying to authorise a new computer. Apple's instructions are to select "Authorise this computer" from the itunes store menu. I can't find this in any menu. Can you please help? How do I authorise my computer?

    Authorization and Deauthorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    More On De-authorizing Computers (contributed by user John Galt)
    You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
      1. Open iTunes on a computer
      2. From the Store menu, select "View my Account..."
      3. Sign in with your Apple ID and password.
      4. Under "Computer Authorizations" select "De-authorize All".
      5. Authorize each computer you still have, as you may require.
    You may only do this once per year.
    After you "de-authorize all" your authorized computers, re-authorize each one as required.
    If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.

Maybe you are looking for

  • Can't import CD to iTunes 10

    I have a Macbook Pro with OS 10.5.8 and I'm using iTunes 10 which is the optimal version for this machine.  When I insert a music CD it goes directly to the DVD player and does not appear in iTunes so I cannot add it to my library.  I disabled all th

  • ITunes for multiple accounts for Windows XP

    I am the admin on my PC with Windows XP. I have iTunes installed under my account. I just got my wife an Nano. Can I install another iTunes under her account, move the music to a shared folder, and have both iTunes use that shared library? If not, ca

  • How do I get back my old home page on firefox?

    I carefully created a home page on Firefox, and it has disappeared with a blank opening page now. I would like my old home page back. How do I do this?

  • Powershell insert into sql table is failling

    function Do-FilesInsertRowByRow ([Data.SqlClient.SqlConnection] $OpenSQLConnection) { $sqlCommand = New-Object System.Data.SqlClient.SqlCommand $sqlCommand.Connection = $sqlConnection $sqlCommand.CommandText = "SET NOCOUNT ON; " + "INSERT INTO dbo.di

  • Active Sync - What attributes to set in UserMap

    I am have written an active sync adapter for MySQL Table. I am not sure what attributes to add in the user map object that is passed in the list of updates. I get the following error: The result of submitting the message - com.waveset.exception.FormV