How can I obtain the first 10 charcter from field and the last 4 characters

Hi
   I need to obtaind the first 10 characters from field AWKEY from BSEG table, and the last 4 characters, how can I obtain certains position from field??
    Example:
  AWKEY field from BSEG can be for example :
51000573112002
   This mean that you can obtain separately:
5100057311 - BELNR (field)
2002- GJAHR (field)
    As you can see, the first 10 positions are BELNR and the last 4 positions are GJAHR.
     But sometimes you find in old rows:
5100057312US502001
     This mean that you can get from this field:
10 positions for BELNR : 5100057312
4 positions for BUKRS or WERKS : US50  - in this case, I don´t know if its is BURKS or WERKS...for this reason only I want to take only the first 10 positions and the last 4 position to compare.
4 posiition for GJAHR: 2001
   I rewards all the answers.
   Thank you.
Alicia

Hi, thank you for yours answers
Let me try to explain more what I need to do:
I have a Internal Table that I create with EKBE table:
  SELECT  MANDT EBELN EBELP GJAHR BELNR BEWTP BUDAT
          MENGE WRBTR WAERS WERKS SHKZG DMBTR
          ZEKKN VGABE BUZEI
    INTO CORRESPONDING FIELDS OF TABLE LIST_EKBE
    FROM EKBE
      WHERE EBELN IN R_EBELN
        AND BEWTP IN ('E','Q','R').
The result is all the rows that have this conditions..then with this internal table I need to looking for each BELNR in BKPF table, but sometimes you can find the row compare EKBE-BELNR with BKPF-BELNR...but in many cases, you don´t find the row in this way, you need to add EKBE-BELNR and EKBE-GJAHR and looking for in BKPF with field AWKEY..
For this reason I CONCATENATE in this way:
LOOP AT LIST_EKBE.
    V_BELNR = LIST_EKBE-BELNR.
    V_GJAHR = LIST_EKBE-GJAHR.
    CONCATENATE V_BELNR V_GJAHR  INTO V_AWKEY.
    SELECT SINGLE MANDT BUKRS BELNR GJAHR AWKEY
    INTO (BKPF-MANDT, BKPF-BUKRS, BKPF-BELNR,
         BKPF-GJAHR, BKPF-AWKEY)
    FROM BKPF
    WHERE AWKEY = V_AWKEY.
ENDLOOP.
  But I saw that sometimes you don´t find the record in BKPF because the AWKEY is formed with BELNRBUKRSGJAHR....or may be with BELNRWERKSGJAHR ...I don´t know if is BUKRS or WERKS the second field...for this reason I try only read in the select..if its posible the first 10 postions and the last 4 positions...but Im not sure if its possible..
  The reason for that I looking for the BELNR field in BKPF field for AWKEY its because sometimes de BELNR in BKPF its different..example:
In EKBE you have:
BELNR: 5105618260
GJAHR: 2006
If you looking for in BKPF you don´t find sometimes exactly the field BELNR : 5105618260.. then you need try looking for the AWKEY field then you need to add BELNR+GJAHR..example:
BKPF:
BELNR: 5105611111
GJAHR: 2006
AWKEY: 51056182602006
But in other cases... I found that in AWKEY exist for example:
BELNR: 5105611111
GJAHR: 2006
AWKEY: 5105618260US502006
In the last case I supouse that I can divide in:
AWKEY: 5105618260-US50-2006 ... but I don´t know what its the field that have the information US50..may be is BUKRS or may be its WERKS
May be some people know what its exactly this field and can help me..
With the solution that some of yours give me..I don´t know the how I can make the select? and if its posible make in this way
Thank you a lot

Similar Messages

  • How can I obtain a complimentary upgrade from CS 5.5 to CS 6.0

    How can I obtain a complimentary upgrade from CS5.5 to CS 6.0?  I purchased CS5.5 and within a few months CS6 was published.

    I found the information on my own:
    http://helpx.adobe.com/x-productkb/policy-pricing/upgrade-policy-product-announcement.html

  • How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    You've logged into your account and viewed your purchase history and there aren't any error messages shown (e.g. 'problem with a previous purchase'), and you haven't got any purchases due (e.g. pre-orders and/or subscriptions) : Why can’t I select None when I edit my Apple ID payment information ?

  • How can you pull in pdf's from iBooks and bring them into the Box app?

    How can you pull in pdf's from iBooks and bring them into the Box app?

    That sounds great, but I'm lost.
    I followed these steps:
    1) Open your PDF (in Adobe Acrobat Pro)
    2) Chose print
    The print/printer options pop-up will show.
    3) In the printer section, do not use your normal printer, a printer named Adobe PDF should be an option. Chose it.
    4) Under the "Page handling" section, change the Page Scaling drop-down menu to "Multiple pages per sheet".
    It works fine, but it looses all of the font information and the search no longer works. How can you do it and save the font info, so the search tool continues to operate.
    Am I missing anything?

  • How can I order two different calendars from iPhoto in the same order?

    How can I order two different calendars from iPhoto in the same order?

    You cannot - the "Buy Calendar" button is only available, while viewing one calendar. You can order more than one copy of the same calendar on one order, however.

  • 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 can i delete my gmail account from mail and add aol, how can i delete my gmail account from mail and add aol, how can i delete my gmail account from mail and add aol

    how can i delete my gmail account from mail and add aol, how can i delete my gmail account from mail and add aol, how can i delete my gmail account from mail and add aol

    Welcome to the Apple Support Communities
    To delete a mail account in Mail, open Mail, and go to Mail menu > Preferences > Accounts. Then, select the account you want to remove and press the - button.
    Then, press the + button to add the AOL mail account

  • How can I copy a number of like fields and paste to reduce form creation time?

    How can I copy a number of like fields and paste to reduce form creation time?

    Creating Form Fields by Ted Padova

  • How can I import my address book from aol and hotmail email to my iphone

    How can I import my address books from my aol and hotmail accounts to my Iphone4?

    First you must import them to your computer, and then sync your iPhone to your computer.
    http://www.juliakm.com/transferring-aol-address-book-apple039s-address-book
    http://email.about.com/od/windowslivehotmailtips/qt/Export_Contacts_Email_Addres ses_from_Windows_Live_Hotmail.htm

  • TS4036 How Can I re-enable my disabled from my Computer(the Ipad doesn't allow me any access to the Ipad)

    How can I re-enable a disabled Ipad from my computer?

    By not allowing enough time to reset, do you mean you have tried a reboot by holding both the power and home buttons until the apple logo appears, ignoring the red slider?  If so, are you able to power down just using the power button?  Does it then restart on its own?
    If you cannot get it to reboot, stay powered down, take it to an Apple store genius bar and have the technicians test it to see what is wrong...that is most likely a hardware issue.

  • How can i send PGP encrypted file from PI to the receiver

    Hi experts,
                        I am unable to send the  PGP encrypted file from PI to the receiver. where the Clients sends the file using PGP encryption,
    But i am trying to send the same with PI. But i am not able to send the same can you please help me out to get the same incorporated using PI 7.1
    and sends to the receiver ( the rceiver would be FTP ).
    Regards,
    Amruth

    hi,
    You can write an adapter module to encypt your payload before sending to Reciever:
    /people/dijesh.tanna/blog/2008/09/15/sap-pi-integrating-macafee-e-business-server-with-sap-pi-70-for-pgp-encryptiondecryption
    http://www.bouncycastle.org/documentation.html
    http://www.cryptix.org/
    http://aedaptive.com/index.php/solutions/pgp-for-sap-netweaver
    http://www.pgpi.org/doc/pgpintro/
    PGP encryption: Do we need to write adapter module?
    If you are getting PGP file from sender and want  to send this file to target without any mapping transformation you can use this blog:
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Thanks.

  • How can I permanently stop Backup Asisstant from running in the background?

    Backup Asisstant plus is constantly running in the background of my phone. It is annoying and I can not even open it up under the "manage accounts" section of my phone. When I do this it just has the blue circle spinning forever and ever never openning up at all. Is there a way to fix this or am I just stuck battling this stupid app day after day. It came with the Verizon phone, but I had this before and customer service was able to stop it from running all the time. Now I get told there is nothing Verizon can do. So how can I stop this app permanently and why is there so much comflicting information coming from Verizon agents and its website? I cant seem to get a solid answer.

    I have a galaxy s3. The backup assistant just freezes my phone. It is always running in the background draining memory from my phone slowing it down. It is beyond annoying since even after a hard reset I can not even access the Backup Assistant + to manually change settings, so I would just like it to stay off. It has not helped me recover much in the way it was advertised.

  • How can I export a finished project from iMovie when the "share" function will not respond?

    Hopefully someone might have an answer for me. I am trying to export a finished project to You Tube. However, when trying to choose the file, it does not show up in the finished project list. I have gone back to iMovie to see if I've made a mistake with finalizing it. It seems to be finalized, but I cannot share it to anything (You Tube, Facebook, iTunes). I click on share and it does not respond. I click on File, scroll down to share, it does nothing. Has anyone else had this problem? How did you reslove it?

    I experienced the same problem as mreingrover. The Share features of iMovie appear to be completely unimplemented.
    I had had MacKeeper installed for a short while on my previous Mac; never on my new MacBook Pro. I could not find any trace of it in Application Support, Launch Daemons, or LaunchAgents, in either my user Library or the root Library. But I figured maybe there was some trace somewhere that had been copied over from the old system, so I deleted iMovie and went to reinstall it from the App Store.
    Now the App Store wants $14.95 for an app that has never worked right, and which is (I think) supposed to be free with my new MacBook Pro Retina.

  • How can I obtain a summary report from webi through counts and sum

    I have a report built from webi. But will like to count the report by different categories.

    Hi Cobimah,
    You have several options. You can simply add totals to the measure columns where you want a count or sum. Click on the column and then click the Sum button on the menu and you can count, sum, min, max, etc.
    If you want a separate summary report, you can place formulas in the cells like =Sum([Measure Object]) or Count([Measure Object]), or create a variable as the same and place it in the cell.
    You also have the option of creating the pre-aggregated objects in the Universe and then they are already there for you to use where you like if they are aggregations that you will be using often.
    Thanks

  • How can I track an Iphone storen from me using the serial number?

    I got my I Phone stolen yesterday and I really need to find it. I registered it with apple when I bought it, but thats about it. My location finder on the phone could be on, or off. help if there is a way of tracking it using the serial number.

    Did you enable the "Find My iPhone" feature?
    If you did, log into MobileMe and use it.
    If you did not, there is no way to track it.
    Apple does not assist users in tracking lost/stolen devices.
    Contact your carrier and report it stolen.  YOU are responsible for all charges on the account until you report it stolen.
    Contact law enforcement and file a report.  If they have the manpower and deem it important enough, they can get a warrant and get information from your carrier to track the device.

Maybe you are looking for

  • How do I uninstall iBooks from my MacBook Pro?

    how do I uninstall iBooks from my MacBook Pro if a message pops up saying: "iBooks app cannot be modified or deleted because its requires by OS X"???

  • Microsoft Access 2010 Creating a Form from Multiple Tables

    Hi. I am brand new to Microsoft Access and have had some exciting success making forms from single tables. This has made my data entry life much easier. However, I am continually stumped on one form I want to make. I would like to make a form that wi

  • Reading the Document files

    Hi Experts, In my requirement i have to read the documents attached to a materail. I got the Document Number, Type,Released version from Tables DRAD and DRAW by passing the Material Number as OBJKY. When i went to CV03N , i saw one '.doc' file and on

  • To make a table available for maintanance(very urgent Pls!)

    Hi , My requirement is .I need to create a Z custom table to which  some default values are to be maintained. My question is... 1) what is the delivery class that i need to give while creating that Ztable? 2) How to make it open for maintanence? Do i

  • MacBook pro, will not start up- drive begins

    MacBook pro, will not start up- drive begins?