Select the value ending with 'S'

Hello ABAP experts,
I am a BW guy, not much into ABAP. There is a small coding requirment. I am not sure if this can be done in one statment.
select the value from the table which has value ending with 'S'.
Solutions
-- I can loop the table with 'LOOP'
-- is there any statment to achive the value ending with 'S'
Any suggestions are highly valuable.
Many thx in advance.
Sandhya

Hi,
Just try this.
No need of loop.
delete itab1 where ptr1 cp 'S' or ptr1 cp 's'.
For more information about CP , just have a look on this.
The logical expression
<f1> CP <f2>
is true if <f1> matches the pattern <f2>. If <f2> is of type C, you can use the following wildcards in <f2>:
•     for any character string: *
•     for any single character: +
Trailing spaces are ignored and the comparison is not case-sensitive. If the comparison is true, the system field SY-FDPOS contains the offset of <f2> in <f1> . If it is false, SY-FDPOS contains the length of <f1>.
If you want to perform a comparison on a particular character in <f2>, place the escape character # in front of it. You can use the escape character # to specify
•     characters in upper and lower case
•     the wildcard character "" (enter:#)
•     the wildcard character "" (enter: # )
•     the escape symbol itself (enter: ## )
•     blanks at the end of a string (enter: #___ )
Message was edited by: Jayanthi Jayaraman

Similar Messages

  • Since upgrading to Mavericks, my Canon MP980 printer no longer works. I've tried deleting the printer and adding it again. the process ends with my mac saying the software is not currently available from the software update server.

    Since upgrading to Mavericks, my Canon MP980 printer no longer works. I've tried deleting the printer and adding it again. I've downloaded the driver software from Canon. My Mac dropbox tells me "the selected printer software is available from Apple", but when I click to download it, the process ends with my mac saying the software is not currently available from the software update server.

    Open Finder and click on Go > Go to Folder. Then type
    /Library/Printers/Canon
    and press Enter. This will show the BJPrinter and iJScanner folders. You could try moving or trashing this folder and then installing the driver that you downloaded from Canon again.

  • XML:selecting the value of a xml tag using plsql

    Hi,
    I have a table xx_table with one of the column xx_column which is of type XMLTYPE.I inserted the xml data into this column with xml data as below.
    <userComments xmlns:ns1="http://xmlns.oracle.com/XXXX_AccountDistribution"
    xmlns="http://xmlns.oracle.com/XXXXX_AccountDistribution">
    <task:userComment
    xmlns:task="http://xmlns.oracle.com/bpel/workflow/task">
    <task:comment>*********** Rejecting invoice **********</task:comment>
    <task:updatedBy>
    <task:id>r</task:id>
    <task:displayName></task:displayName>
    <task:systemVersionFlag></task:systemVersionFlag>
    </task:updatedBy>
    <task:updatedDate>2010-05-19T14:09:15-07:00</task:updatedDate>
    <task:displayNameLanguage></task:displayNameLanguage>
    <task:action></task:action>
    <task:systemVersionFlag></task:systemVersionFlag>
    </task:userComment>
    </userComments>
    My question ,how do i select the value of the tag "comment" from the above xml data using plsql? Can we write a query to select the value of the tag "comment" to fetch "*********** Rejecting invoice **********" as value.
    Regards,
    Sandeep

    If you have rights to modify tabular model then, you can create a measure in your Tabular model which returns previous week and then use this measure in Pivot Table.
    Thanks,
    Sagar K 
    (Blog: http://datamazik.blogspot.in/)

  • When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock.  Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.

    When I quit itunes it restarts again with the dot under the itunes logo but the iTunes window doesn't open until I click the icon on the dock.  Also in the middle of the size vale in the size column the value starts with a number then a ? then a number.

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes for Mac forums.
    Regards.

  • After selecting the value from the list box, want to disable checkbox

    hi guru,
    After selecting the value from the list box, want to disable checkbox and custom control textbox(container) in module pool.
    so please help me on this.
    thanx,
    man

    in PBO,
    loop at screen.
      if screen-name = your textbox's name.
        screen-input = 0.
        modify screen.
      endif.
    endloop.

  • Since up grading to new OS Lion  my iPhone iPod and iPad  all give me sync issues  they load apps , music , books , movies , but refuse photos  and the sync ends with an error 50 message most times  , yes  I have re booted  reinstalled new i Tunes  help !

    Since up grading to the  new OS Lion  basicly problem free except  my iPhone iPod and iPad  all give me sync issues  they load apps , music , books , movies , but refuse photos  and the sync ends with an error 50 message most times  , yes  I have re booted  reinstalled new i Tunes and all my others   help !   I have update every thing I can  re installed  , no other issues apart from Parallels  and windows  which  I have deleted and will reisnstall and up date when I get my discs back moving house so in storage boxes somewhere ? , but who needs  Windows ?  is any one else suffering , or have any solutions 

    Hi Ken,
    Wow, I've logged into adobe and never seen your response until now.
    I need to make the forums more of a daily stop I guess.
    Thank you for your response, When I go to the Archives, it states I have none. In addition, previously when I'd tried to move items to the archive, they just disappeared  
    Currently my desktop is not connecting at all, Everytime I connect, it's states "We have now logged you out" and requests I login again.
    I have of course rebooted,
    Gone into taskmanager, killed all the relevant threads,  tried again to login through the desktop, no luck, I'll have to uninstall it, make sure the threads are killed, then reboot it and then reinstall it, but I've not had the time to do that.
    On another note, and just as a point of reference, myself, personally, I hate these "cloud" file repositories (not to be confused with adobe cloud services which I love) but the file repositories themselves imho, are a blackhole of resource usage when one doesn't/isn't using them,
    Is there a way we can use it more of a "ftp" sort of thing, when I want to I can  put files there?  There is no way to "Download" the repository, no way to download the folders.. only individual files and then it takes I think three different steps before the download starts.. I find this very inhibiting.  Just an fyi. for what it's worth.
    Please, feel free to contact me,
    I'm on g+ chat [email protected]

  • How to write a query to select a column where the column value ends with %

    Hii people!!
    I want to select bag_code where bag_code ends with %, e.g. A2389% from the table bags using the following
    query:
    select bag_code from bags where bag_id in
    (select bag_id from store where store_id = 3266)
    and bag_code like '%_%'
    Now the problem's it returns all the possible bag codes in the store with store_id 3266.
    how should i write such a query?
    Abhishek.

    I could even imagine
    SQL> create index r on emp(reverse(ename));
    Index created.
    SQL> select empno,ename from emp where reverse(ename) like 'T%';
         EMPNO ENAME     
          7788 SCOTT      It is too sad that we have to use fbi, since reverse index does exists, but it does not get use for range scan :-(
    SQL> create index r on emp(ename) reverse;
    SQL> select * from emp where ename like '%T';to tune thomas query, if you are only looking for %, then you could do
    where ... decode(substr(bags.bag_code, -1),'%',1) is not null
    and
    create [bitmap] index fbi_pct on bags(decode(substr(bag_code, -1),'%',1));
    Regards
    Laurent

  • Unable to select the value from a list item in forms 6i

    Hi ,
    I'am using forms 6i. I have created a list item in my form as below.
    Item_type = list item
    list style - popup list
    elements in list - A, B, C,D
    When I open the form all the above values are displayed for the list item. But I'am unable to select the item( either A,B,C,D).
    Please let me know if I need to add any thing else programatically to acheive this. The block on whixh these values are diplayed is a datablock.
    This is very urgent. Any suggestions would be of great help.
    Thanks
    Deepthi

    If you have a list item where you have:
    Display A value 1
    Display B value 2
    Display C value 3
    Display D value 4
    If want to initial the value of the item to be A, you can set the initial value of the item to 1 in the property pane.
    Otherwise in an initialisation triger have
    :block.list_item := 1;
    HTH
    Tony

  • Error in decimal places while using the currency ends with 4 e.g. CNY4,USD4

    Dear all,
    I need ye help, the problem that a report having a field KONP-KBETR .......the report moves the decimal 2 places to the right.  And so, 412.3846 becomes 41238.46.  ..occurs only when the currency ends in 4 (CNY4, USD4, EUR4..) 
          Can you please guide.
    Thanks in advance .
    Rgds,
    Pem

    Hi,
    I think you are misinterpretting the things.
    1.CNY4, USD4, EUR4 are Currency keys and they does not end with 4 they are CNY, USD, EUR.
    2.and KBETR is CURR(11,2) so it will always display TWO places of decimals.
    Regards,
    Neha

  • Select the one record with the latest record

    I have the following table called tblSales:
    SKU   TransDate   Color
    ===   ======  ====
    123   1/1/2015    Red
    123   1/2/2015    Red
    123   1/5/2015    Red
    123   1/1/2015    White
    123   1/2/2015    White
    123   1/3/2015    White
    123   1/1/2015    Blue
    123   1/2/2015    Blue
    123   1/5/2015    Blue
    I need to create a query along the lines "SELECT the latest record FROM tblSales WHERE Color = 'White''
    In this example, the record dated 1/3/2015 would be the result.  I know that MAX(TransDate) is used here, but not sure how.
    Thanks.
    Ken

    Karl,
    I had already tried that.  It returns all 3 records having SKU = 123 and Color = White.
    Worst case scenario is I can always search for White 123s using a query with TransDate DESC and then get the first record.  I was just hoping for something a bit more elegant.
    Thanks for your help though.
    Ken

  • Live Paint - Selecting the Fills made with live paint

    hi
    A few questions about live paint.....
    1) How do you select the fills you make with live paint by color? so you can change their properties ie, transparency, color?
    2) How do you put the Live Painted Fills onto separate layers so you can turn them off/on easily and change their properties?
    thanks

    Expand the LivePaint object. Then ungroup as necessary for what you are trying to do.
    JET

  • Finder crush when I select the exported file with FCP/Compressor

    I exported an mpeg2 file from FCP using compressor, but when I tryed to select the output file in finder window the application crushed.
    Somebody can help me? thank you a lot, carlo

    How large was the original file? 7 gigs is an enormous m2v file. Anyway, it sounds like there's some kind of corruption going on. First repair permissions on your startup drive using the drive utility (in applications:utilities). It might be worthwhile to get DiskWarrior and run that on the drive. How much free space is there on your startup drive? If your drive is almost full, this could also cause problems.

  • Fider crush when I select the exported file with FCP/Compressor

    I exported an mpeg2 file from FCP using compressor, but when I tryed to select the output file in finder window the application crushed.
    Somebody can help me? thank you a lot, carlo

    What icon shows the m2v file? Compressor one? The problem must be in default application for that file and not in the file itself.

  • How to upgrade the second dropdownbox when selecting the values of the first ?

    Hello everyone, I am new to programming. Tell me, please, how to automatically load the new values in the second dropdownbox, depending on the choice of the values in the first dropdownbox ?

    There is an example here...
    http://www.scriptsrus.talktalk.net/Run%20Action.htm

  • Multiple selection in value help  with Web service

    Hi All,
    I want to get data from web service and store in data base. I created input form with set of inputfields. For some input filds in that input form, I want to get value from web service.So I have used value help wizard. I followed below link to create value help wizard for web service.
    Value help wizard working with java web service ?
    While creating value help, it is only showing 'single selection' option. It does not showing any other options. Here I want to get multiple values from value help. How can I acheive this?.
    Thanks,
    Venkatesh R

    Hi Venkat,
    Try the below links for value help in visual composer.
    Visual Composer: Value Help Data Service
    Choosing Multiple Values within Visual Composer
    http://help.sap.com/saphelp_nw04s/helpdata/en/50/91db4238bbf140e10000000a1550b0/frameset.htm
    Regards
    Basheer

Maybe you are looking for

  • Error while creating IViews using collaboration API

    Hi I have created one Dynpage portal component, in that i would like to utilize collaboration API. I am keep on getting errors like "<b>The compilation unit directly references the missing type ...."</b>" import com.sapportals.htmlb.page.DynPage; imp

  • Trying to share an XP printer in OSX

    Hi, Been messing with this for a while. I've got a Canon MP160 that is connected to an XP machine via USB. The XP is connected to the wifi router, as is the iMac. I've set the workgroup the same in the WINS section. I can get files off the machine, a

  • Can't get JDK to work! Please help!

    Hi, I have downloaded the JDK1.3.1 many times and I have try installing it into different computers at home but none of them work. Is there like an online thing where I can compile my code and run it. Because at home it seems not to work but in schoo

  • ADG is not picking up changes from this getter

    My ADG is not picking up changes from this getter, is it because the whole class needs to implement IEventDispatcher ? <mx:AdvancedDataGridColumn headerText="Delete" dataField="reviewDate" visible="{userModel.loggedInUser.deleteReview}" id="deleteCol

  • PP IDOC Message for Work Center upload with Costing

    Hi all, I'm looking for apropriate IDOC message type to import  Costing data with Work Centers. I found some of them to pass WorkCenters data, the best is LOIWCS I think, but I don;t see a possibility to passing costing data. ( e.q. KOSTL domain fiel