Is it possible to get the position of a charcter from a string ?

Hi !
Is it possible to get the position of a charcter from a string ?
Example:
@VAR contains the following text "ABCDEFGHIJKLM"
I'am seaching for FGH, it start on pos. 6 en ends on pos 8.
How can I get these numbers 6 and 8 ?
So, I can use them in the MID(text,start,len) function.
Thanks!

Hi Sooraj,
I'll explain more in detail:
From a web-service I get a variable called @Spec.
This variable contains the following:
"MOTORTYPE[CR]D-QW1234[LF]PART[CR]1234-FRD-X[LF]"
or
"MOTORTYPE[CR]ABC[LF]PART[CR]E-435[LF]"
I need the values behind MOTORTYPE[CR] and behind PART[CR]
But you’ll see that the positions of these values are different each time.
If there is a way to get the (start) position of "MOTORTYPE[CR]" or "PART[CR]" and the (end) position of the first "[LF]" behind that,
then I could use the MID() function to get the correct values.
The values will be displayed in a table view (between other fields).
An ABAP-call/function won’t work . . . how should I invoke this within a table column/field object ? (system action ?)

Similar Messages

  • Is it possible to get the table by knowing its name only (string)

    public bool IsShowTable
    get { return _IsShowTable; }
    set { _IsShowTable = value;
    if (_IsShowTable)
    //Type type = Type.GetType(GraphSelected);
    //Object o = (Activator.CreateInstance(type));
    using (var ctx = new PD5500DBEntities())
    DataGridSrc = new ObservableCollection<object>(ctx.G2_2_6_0dot01_0dot0); //Using here the TableName in String
    NotifyPropertyChanged();
    private ObservableCollection<Object> _DataGridSrc;
    public ObservableCollection<Object> DataGridSrc
    get { return _DataGridSrc; }
    set { _DataGridSrc = value;
    NotifyPropertyChanged();
    In the code I used ctx.TableName, would it be possible to get a reference by knowing the string of the TableName only. 
    I mean
    TableName = "MyTable";//Type type = Type.GetType("TableName");
    //Object o = (Activator.CreateInstance(type));

    Thanks Magnus.
    But now I have difficulty setting it to datagrid source 
    //public ObservableCollection<Object> DataGridSrc
    // get { return _DataGridSrc; }
    // set
    // _DataGridSrc = value;
    // NotifyPropertyChanged();
    or
    private ICollectionView _DataGridSrc;
    public ICollectionView DataGridSrc
    get { return _DataGridSrc; }
    set
    _DataGridSrc = value;
    NotifyPropertyChanged();
    using (var ctx = new PD5500DBEntities())
    Type type = Type.GetType("PressureVessels.Database.G2_2_6_0dot01_0dot0");
    var entities = ctx.Set(type);
    DataGridSrc = (ICollectionView)entities.Local;
    //or
    //DataGridSrc = new ObservableCollection<object>(entities.Local);
    Before when I was using 
    DataGridSrc = new ObservableCollection<object>(ctx.G2_2_6_0dot01_0dot0);
    it worked but now it doesn't. Though now by using the namespace.name I get the type but still cannot assign it to datagridSr which is ObservableCollection or ICollectionView. 

  • Possible to get the color space and resolution from the .eps file

    Hi all,
    We have using the InDesign CS3 5.0.4, windows, javascript.  We need to get the color space and resolution of the graphics (.eps) file using scripting.
    The properties of the image like (actualPpi and effectivePpi will return the value only for the .tiff. and .jpg etc) but it will not return the .eps file resolution values.
    Kindly give me the suggesting for the decrepancies.
    Regards,
    Nagaraj

    ... open them programmatically in PhotoShop, read out resolution and color space ...
    On opening them in Photoshop, it asks you "what resolution shall I use, and what color space shall I apply?"
    A single EPS may contain any number of embedded bitmaps, with any horizontal and vertical resolution, and in any color space. You can use only a few of these with Illustrator -- and even only one at a time with Photoshop --, but other programs allow just about every possible combination.
    Not to mention procedurally generated bitmaps, also possible with PostScript.

  • Is it possible to get the decline and answer buttons from sleep mode?

    The way my iphone operates now, when a call comes in and the phone is in sleep/locked mode, the only option is to slide the lock to answer the call. When a call comes in and the phone is not locked, it gives the option to decline the call with a red button and answer the call with a green button. My question is this: Is it possible to set the phone so it gives the decline/answer option coming straight out of sleep/locked mode?

    Nope. But single clicking the Sleep/Wake button will silence the ring, and double-clicking the Sleep/Wake button will send the call to voicemail, having the same effect as "Decline."

  • Query to get the difference between 2 totals from 2 different queries

    I wanted to know if it is possible to get the difference between 2 totals from 2 different queries. I would explain with an example:
    1st query  - Select sum(homepass) from table 1
    2nd query – select sum(homepass) from table2
    Is it possible to display the difference like-
    Select sum(homepass) from table 1 - sum(homepass) from table2
    I know the above query would gives syntax error but is there a better way or a trick to get the above task accomplished from a single query.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    tomernitin wrote:
    Try this one also:
    WITH adtn1
    AS
    SELECT 110 val1 FROM dual UNION ALL
    SELECT 100 FROM dual UNION ALL
    SELECT 90  FROM dual UNION ALL
    SELECT 10 FROM dual
    adtn2
    AS
    SELECT 10 val2 FROM dual UNION ALL
    SELECT 20 FROM dual UNION ALL
    SELECT 30  FROM dual UNION ALL
    SELECT 100 FROM dual
    SELECT(Sum(a1.val1)-Sum(a2.val2)) Diff FROM adtn1 a1,adtn2 a2;
    let me know if you still have any doubt.
    Um.... I don't think so. Not with the cartesian join between a1 and 2.

  • To get the position of the characters in the string in sql

    hi all,
    I need to get the position of the characters in the sql , the string like this '10101110111010111' , is it possible to get the answer like this
    pos char
    1 1
    2 0
    3 1
    4 0
    and so on .
    Thanks in advance .

    select level pos,substr(:your_string,level,1) "char"
      from dual
    connect by level <= length(:your_string)Regards
    Etbin
    Edited by: Etbin on 24.9.2011 8:46
    put char between double quotes http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/ap_keywd001.htm#BABCJAEB

  • I've recently been given a macbook pro from uni, with lots of adobe software on. I want to pair it with my iMac which has music etc and is it possible to get the software to the imac and the files to the macbook?Giving me the best of both :-)

    I've recently been given a macbook pro from uni, with lots of adobe software on. I want to pair it with my iMac which has music etc and is it possible to get the software to the imac and the files to the macbook?Giving me the best of both :-)

    You would need the original installation disks or files for the Adobe software to get it onto your iMac, and having it on two computers may not be allowed by your university's licensing. Talk to whoever issued the MacBook.
    As to the music, just copy it over to the MacBook, either via Home Sharing, file sharing, or an external storage medium (hard drive, USB flash drive, etc.).
    Regards.

  • Is it possible to get the style, font and related info of a paragraph of a in design file and write it on the same in design file  on the  left side

    Is it possible to get the style, font and related info of a paragraph text  of a in design file and write  all the stuff on the same in design file  on the  left side with small fonts 
    as
    Lets  this is a text in in design file    :
    style : abc                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 12                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu
    style : xyz                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 10                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu

    Hi Poojith
    Not sure if this would solve your requirment but just in case might be helpful:
    1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
    [http://www.sapdesignguild.org/resources/htmlb_guidance/]
    2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
    Thanks
    Deepak

  • How to get the position of a tag in XML,when i am using the org.xml.sax

    Hi,
    I am able to parse a xml document.I want to get the position of a tag in the document.So that by keeping that as reference, i can access other tags.Plz help me.I am using org.xml.sax API.

    Hello Friends
    After research , I could also find another way to check the existence of a node .We can even use CHOOSE to check the existence.
    <xsl:choose>
          <xsl:when test="(/mynode)">
              your action if the mynode is found
          </xsl:when>
          <xsl:otherwise>
                    action if mynode is not found
          </xsl:otherwise>
    </xsl:choose>
    Thanks.
    Wishes
    Richa

  • Is it possible to change the position of beining of text in a standard report

    Hi,
         I am wondering wether it is possible to change the position of the test (the starting point) in a standard report. I would like to print a label with different texts at different positions. If its not possible in a standard report is there any other way to do it.
    Thank you,
    Mudda.

    Hi Mudda, I don't see any way myself to set any particular starting position for your text. It looks like the best way to emulate this behavior would be to add a new line with lots of tab characters or spaces to place your new text at a specific offset from the left. You can also use Append Table to Report and wire in a 2D string array with only a few positions filled in with your various text labels as shown below. This will space text labels pretty well across the page. Try it out and see if it works for you. You could be more clever and build the 2D array programmatically if you wanted more control over position.
    Message Edited by Jarrod S. on 06-02-2006 05:37 PM
    Jarrod S.
    National Instruments
    Attachments:
    Set_Report_Position.JPG ‏69 KB

  • HT1222 Is it possible to get the SSL fix without having to install ios7 (which I tried and hated) or jailbreaking the devices?

    I have a few ipads, iphones and ipod touches of various models, and all run iOS6 of various types (whatever they were running when I last updated them before iOS 7 came along and stopped me being able to get newer versions of 6).
    I tried iOS7 for a while but hated both the appearance and some of the things that changed.
    My ipods have updated to a new version of iOS6 with the SSL fix.
    I can't seem to get this option for the ipads or iphones.
    Is it possible to get the important SSL update for iOS 6 for iPhone5, iPad3, ipad4 and ipad mini (not retina) without having to go to iOS7?
    (It seems that I can get a fix by jailbreaking but I really don't want to do that if there's another option since I have no need for it otherwise.)
    Thanks a lot.

    Thanks, that's helpful. I expected that answer, since I read a load of stuff about Apple pushing people to get iOS 7 despite it having people who disliked it, but was hopeful it was not the case
    Some of the changes, like to calendar were just frustrating.
    Not a big problem though - just means that the next phone and tablet hardware update I get won't be apple.
    Thanks a lot for the swift and helpful replies.

  • How to get the position of a selected cell in a table ?

    Hi,
    How can I get the position of a selected cell in a table or in a list multicolumn cmd ?
    Thanks.

    Invoke node >>> point to Row Column
    Ben
    Message Edited by Ben on 07-19-2007 03:14 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Point_To_Row_Column.PNG ‏22 KB

  • Is it possible to get the information from the complete forms send to different email account

    When i have a paid account is it than possible to get the information from the different forms send to seperate emailaddresses.
    Who dont have a account from formscentral but just need the information directly in there own inboxes?
    Because we're looking for a good and simple way to make qoustion & complain forms. But these need to go to different people in the company.

    You can have notifications sent to multiple email addresses, but each will need to have a FormsCentral account.  They can be free accounts.  What you do is create your form and set up the email addresses that you want the information to go to to be Co-authors or Contributors.  The co-author/contributor accounts will then need to log into FormsCentral, go to the Options tab and check the email notifications checkbox. 
    I hope this helps.
    -Jeff

  • Is it possible to get the image from the i pad when mirroring via Apple TV to fill the screen instead of appearing as a screen within a screen?

    When mirroring, is it possible to get the image from the ipad to fill the screen on the TV instead of appearing as a screen within a screen?

    Welcome to the Apple Community.
    No, the iPad has an aspect ratio of 4:3, a TV has an aspect ratio of 16:9, to fit one into the other is impossible without distorting the picture. If your TV has a zoom feature, you may be able to use this to fill the screen a little more to your liking, but this will result in cropping top and bottom.

  • Is it possible to get the balance sheet report by using profit center

    Dear Experts,
    could you please help me out regarding the following issue.
    business area wise we can get the balance sheet but i want to know is there any possibility to get the BS by using profit centers only for BS Items or can we assign biasness area as well as profit center in a single screen.

    I think you can use this report. S_ALR_87013336
    Regards
    Radha

Maybe you are looking for

  • Oracle 8.1.6 and 8.1.61 ODBC Driver Access Violation

    Using Oracle ODBC for Windows to Oracle 8.1.6 database to get a list of the tables/views in the database. The following code worked on 8.0.4, 8.0.5, and 8.1.5 databases and their respective ODBC Drivers. It gives me an access violation with 8.1.6. Th

  • Which table could i find 'Authorization Group'  used for Material master?

    Hi experts, Is there any table available could i find all 'Authorization Group' list as used by material master data. OR in SPRO, anywhere could i find 'Define authorization group' for material master data specific?? Thanks.

  • What can i do for creating view on a public synonym?

    Hi people, I have create a public synonym for other users object as, SQL> create public synonym pdep for scott.dept; Synonym created. then i tend to create a view on this public syn as, SQL> create view vpdep as select * from pdep; create view vpdep

  • Have LV 7.0 and 7.1.1. When I start LV 7.0 it wants to install it every time.

    I have both LV 7.0 and 7.1 installed on my system.  Every time I start LV 7.0, it wants to "install" something from the CD.  Of course it doesn't say what it wants, just that the feature I want is on the CD. If I double-click on a vi this doesn't hap

  • PR Creation and Change

    Dear All,                  I want to put a control in the Purchase requisition creation and change ME51N and ME52N any standard user exit  available for this?.. if available kindly send me the user exit name. We have already tried with the user Exit