Want to get the Last 4 numbers of the Class number  of Material   !!Urgent!

Hi all,
I am having a BAPI called BAPI_OBJCL_GETCLASSES to get CLASS NUMBER FOR MATERIAL. In that I am getting the Class number for the Material.
But in that matetial  I want to get only the last 4 numbers of the Class number,
Can any one tell me is there any FM to solve this  or any other way to do.
Your help will be greatly appreciated
Regards
Yathish

Hi,
Try the following code after BAPI_OBJCL_GETCLASSES.
If you are not getting the full number(means class no is 18 char long & suppose a class no is '100000') then you can calculate last four digits manually using the following solution. Declare a variable of type string & assign the number(ALLOCLIST-CLASSNUM) to variable. Then use following function module STRING_REVERSE & pass the variable. And declare another variable of length 4 & assign the value like this:
v_var = v_str+0(4).
Again pass the v_var to STRING_REVERSE.
If you are getting nuumber with leading zeros (eg '000001000000000000') then go swains solution.
like this: (Write this code after BAPI_OBJCL_GETCLASSES)
V_var = ALLOCLIST-CLASSNUM+14(4).
Ashven

Similar Messages

  • My old phone doesn't turn and I want to get the serial number for it to see if it's eligible for the battery replacement with Apple. Can I use the IMEI number to find the serial number?

    My old phone doesn't turn and I want to get the serial number for it to see if it's eligible for the battery replacement with Apple. Can I use the IMEI number to find the serial number?

    Call applecare.  They can look up the IMEI number in their system to see if the device is eligible.
    AppleCare US phone number: (800)-694-7466
    Contact Apple for support and service
    http://support.apple.com/kb/HE57

  • Want to get the month number from month name

    Hi Friends
    Can you suggest  me a function module which would <b>convert the month name to the month number.</b>?
    Example : suppose the input is<b> December 20,2006</b> I want to get it converted to SAP internal format YYYYMMDD i.e. <b>20061220.</b>
    Would reward pointns for immediate help.:-)
    Also is there a function module which would convert date given in any format to the SAP internal format.
    Thanks
         Rita.

    Hi,
    I am not aware of any FM that will convert alphnumeric dates to SAP internal format.
    However, you could create a simple logic to convert this with the assumption that your first string is for the month then date then year:
    =====
    DATA: l_date(20) VALUE 'December 20,2006',
          l_new_date(8),
          l_month(10),
          l_day(2),
          l_year(4).
    START-OF-SELECTION.
      TRANSLATE l_date TO UPPER CASE.
    *- Get month string (separated by space from day & year)
      SPLIT l_date AT space INTO l_month l_date IN CHARACTER MODE.
    *- Get day & year (separated by comma)
      SPLIT l_date AT ',' INTO l_day l_year IN CHARACTER MODE.
      l_new_date0(4) = l_year0(4).
      l_new_date6(2) = l_day0(2).
    END-OF-SELECTION.
    *- Get numeric month
      SELECT SINGLE mnr FROM t247
        INTO l_new_date+4(2)
        WHERE ktx = l_month+0(3).
      IF sy-subrc = 0.
        WRITE:/ l_new_date.
      ELSE.
        WRITE:/ 'Invalid date'.
      ENDIF.
    Thanks.
    Kind Regards,
    Darwin

  • HT1349 How can I obtain an original receipt for a Time Capsule (external hard drive back up) that was stolen?  I want to get the serial number of the device.

    How can I obtain a receipt for the purchase of my Time Capsule back up external drive.  My drive was stolen and I am trying to find the serial number of the device.

    Unless you registered it, for warranty purposes, with the manufacturer, there's no way.
    Or if you have the box it came in, the box may have the S/N.
     Cheers, Tom

  • Getting the Department Number in HR- Urgent

    Hi All,
    I have a requirement where i need to take the department information for an employee from the HR tables.
    Its urgent and Please help
    Regards,
    Mohan

    If it is so urgent then raise an SR with Oracle. That's what they are there (and paid) for.
    But - in response to your question, do you mean the hr location? If so that is held against the assignment and should be joined to hr_locations.

  • How can I get the serial number of the hard disk of my PC

    I want to get the serial number of my PC hardisk. Is there any command that I can pass to the System Exec.vi that will give this info.

    I rember this from some time ago. If you use 32 bits system. You will need to do a call to kernel32.dll. And the function is GetVolumeInformationA
    http://forums.ni.com/t5/LabVIEW/Call-to-WinAPI-Kernel32-dll-doesn-t-work-in-runtime/m-p/121097 It may do the trick for you
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to get the page number according to MarkerID?

    I want to get the page number according to the marker element in fdk. I can get the marktext and markid,How to get the page number according to MarkerID in fdk?

    zhaopeng,
    You need to first get the ID of the paragraph containing the marker (with FP_TextLoc), then get the top-level frame containing the FO_Pgf object (FP_InTextFrame), then get the page containing the FO_TextFrame object (FP_PageFramePage). Here is a function that you can send various objects to in order to get the page ID, including paragraphs (this courtesy of Rick Quatro, originally posted to the Yahoo Framedev list):
    F_ObjHandleT GetPage(F_ObjHandleT oDoc, F_ObjHandleT oObj)
      F_ObjHandleT oFrame = 0;
      IntT iObjType;
      F_ObjHandleT oRow, oCell;
      while(oObj)
        oFrame = oObj;
        iObjType = F_ApiGetObjectType(oDoc, oObj);
        switch(iObjType)
          case FO_SubCol:
          oObj = F_ApiGetId(oDoc, oObj, FP_ParentTextFrame);
          break;
          case FO_Tbl:
          oRow = F_ApiGetId(oDoc, oObj, FP_FirstRowInTbl);
          oCell = F_ApiGetId(oDoc, oRow, FP_FirstCellInRow);
          oObj = oCell;
          break;
          case FO_Row:
          oCell = F_ApiGetId(oDoc, oObj, FP_FirstCellInRow);
          oObj = oCell;
          break;
          case FO_Cell:
          case FO_Pgf:
          case FO_AFrame:
          oObj = F_ApiGetId(oDoc, oObj, FP_InTextFrame);
          break;
          case FO_TextLine:
          case FO_TextFrame:
          case FO_UnanchoredFrame:
          case FO_Arc:
          case FO_Ellipse:
          case FO_Group:
          case FO_Inset:
          case FO_Line:
          case FO_Math:
          case FO_Polygon:
          case FO_Polyline:
          case FO_Rectangle:
          case FO_RoundRect:
          oObj = F_ApiGetId(oDoc, oObj, FP_FrameParent);
          break;
          //endless loop prevention, stops the process when the top-level frame is reached
          default:
          oObj = 0;
          break;
      //if we found the top-level frame, return its page ID, otherwise null
      if(oFrame)
        return (F_ApiGetId(oDoc, oFrame, FP_PageFramePage));
      else return(0);
    ...so, you would do something like this if you have the marker ID:
    F_TextLocT textLoc;
    F_ObjHandleT pageId;
    textLoc = F_ApiGetId(docId, markerId, FP_TextLoc);
    pageId = GetPage(docId, pageId.objId);
    Note: I'm not sure how this handles the case where a paragraph extends across two pages and the marker is located on the second page. My thought is that it might erroneously return the page where the paragraph begins. I don't know how to handle that.
    Russ

  • HT1848 how do i transfer my music on my ipad to a new computer that i recently downloaded itunes to and authorized? My last computer crashed and all my music is on my ipad and i want to get the music off my ipad and on my new computer.

    how do i transfer my music on my ipad to a new computer that i recently downloaded itunes to and authorized? My last computer crashed and all my music is on my ipad and i want to get the music off my ipad and on my new computer. somw music is purchased and some is just old transferred from cd's

    Sync with new computer
    http://discussions.apple.com/docs/DOC-3141

  • How do I get the red number of already read e-mails NOT to show up in the iMail icon on the dock? I only want the number of "unread" e-mails to display in red on the iMail icon.

    How do I get the red number of already read e-mails NOT to show up in the iMail icon on the dock? I only want the number of "unread" e-mails to display in red on the iMail icon.

    Your last post is blank, which happens a lot to users who try accessing the forum through email rather than its web interface.
    You are also in the wrong forum here.  We don't do Ps Elements here.

  • I downloaded an update from creative suite 5.5. to 6.0 and then switched computers for a few months. looks like all of the applications have not disappeared. maybe a trial was uploaded instead of the actual updates? anyway, i just want to get the applicat

    i downloaded an update from creative suite 5.5. to 6.0 and then switched computers for a few months. now I am back using the original computer and it looks like all of those Adobe applications (both 5.5 and 6.0) have disappeared. Maybe a "trial" was uploaded instead of the actual updates? Anyway, i just want to get the applications back onto my computer. i tried to enter the serial numbers on my original packaging but systems side error message from Adobe says they were already "redeemed" (which makes sense bc I already downloaded the updates. Apparently there is no phone customer service for Creative Suite anymore. ARRGGG. Any and all suggestions welcome!
    -Michele

    there is no update from 5.5. to 6.0.
    you could have upgraded from 5.5 to 6.0, but you would know that because you paid money.
    assuming you paid no money for a 6.0 upgrade, you still have your 5.5 license.  uninstall clean and reinstall 5.5 per http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I want to get the iphone 5s the day it comes out. Do you think the best way is to go to the apple store or wait at Verizon. I know when the iphone 5 came out here that they sold out at Verizon. The closest apple store is an hour away.

    I want to get the new iPhone 5s right when it comes out. I was just wondering what you guys thought. Should I go to the apple store (closet one is an hour away and always busy) or should I go to my local Verizon store. I know when the 5 came out last year they ran out of the iPhone 5. What do you think my best bet will be??

    There's really no way anyone can even guess, since we have no idea what sort of stock will be available and how Apple will distribute it. It's not impossible that your local Verizon store will not have any units at all on the first day, or they could have a quantify. We just can't know. If your Verizon store can't give you some idea, you'll just have to make your best guess. Note that people are already lining up at Apple Stores in at least a couple of cities according to reports, and started doing so earlier this week.
    http://news.cnet.com/8301-17938_105-57601882-1/lines-forming-at-apple-stores-in- advance-of-iphone-launch/
    Regards.

  • Why is it that i paid for photoshop for £8.57 a month but then i can only use photoshop as a trail and when i want to get the full version it charges me more money??

    why is it that i paid for photoshop for £8.57 a month but then i can only use photoshop as a trail and when i want to get the full version it charges me more money??

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • I want to get the values from the second hiphen only

    Hey Guys,
    I have one column and the data like this
    col1 = 'AI463-901-001'
    Now,
    I want to get the values from the second hiphen only(any no. of values).
    Please can any one help me on this .
    Thanks in advance!
    Regards,
    -LK

    you have a mistake
    you result is -001
    this is right
      select substr('AI463-901-001',instr('AI463-901-001','-',1,2)+1) from dual;
      -- @user11928732 -  if you are using Oracle Database 11g, ttry this please
    with data as
      (select  'AI463-901-001'from dual)
      select substr(str,instr(str,'-',1,2)+1) from data;
      select substr(<YOUR COLUMN>,instr(<YOUR COLUMN>,'-',1,2)+1) from <YOUR TABLE>;result is : 001
    Edited by: Mahir M. Quluzade on May 3, 2011 5:37 PM

  • I did a backup from my 3G and want to get the backup now on my iPhone 4, but the backup from the old 3G is not shown as an option to configurate. How do I get the information on my new phone?

    I did a backup from my 3G and want to get the backup now on my iPhone 4, but the backup from the old 3G is not shown as an option to configurate. How do I get the information on my new phone?

    First, back up your old iphone manually:
    Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your phone without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your old phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the phone for the first time.
    About backups and what's saved: http://support.apple.com/kb/HT1766
    How to back up and restore: http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    After that, connect your new phone and let iTunes set it up. iTunes will detect the old 3G backup and ask you, if you want to use it to restore the info on your new iphone. If you agree, all settings and data will be present after the process is finished.
    This is also explained in this article: http://support.apple.com/kb/HT4137

  • Need help in multisim 11? I want to get the transient response of RL circuit....

    Need help in multisim 11?
    I want to get the transient response of RL circuit....i can get the increasing exponential graph in multisim 7 during simulation.....but i am getting a decreasing exponential curve(i.e,decay response) in multisim 11 when i do the same procedure as i did in multisim 7.....how can i get the initial or growth transient response for RL circuit in multisim 11 so that i can get increasing exponential curve....which satisfies time constant = L/R

    Hello,
    The process is the same for any circuit (in this case it is an RC circuit which you sent me). You can find the response on the voltage (which I think it's what you're looking for) at any point of the circuit, as well as any parameter really (R,V,I,L..etc).
    Please refer to the image attached (an analysis on the voltage at an inductor and the wires connected to it).
    The way to set it up (once you're in the transient analysis set up) is, select the Output tab, under Variables in circuit, you can select which parameters to take. V(1) and V(2) refer to the voltage in the circuit at Net 1/2 (or wire 1/2).
    This differs from the voltage change within the capacitor/inductor/resistor. If you would like to see the voltage change of an inductor/capacitor/resistor/etc, you can select under the More options box, the button Add device/model parameter, which will take you to a window to select the device type, its name (in the circuit) and the parameter which you wish to analyse. Once you click on Simulate, you can select Cursor >> Show Cursors, to view information for y and x axis (like rise time, decay time, voltage difference...etc)
    Hope this helps,
    Miguel V
    National Instruments
    Attachments:
    untitled.jpg ‏178 KB

Maybe you are looking for

  • I feel like my phone got hacked, but it isn't jailbroken. Can someone please help me figure out what is wrong ?

    Alright, so like 2 hours ago i was playing with my sudoku app, and the password screen for iCloud kept popping up, so I put i my password not really thinking anything of it but it came up again, and I put the password in maybe twice more before I jus

  • In ALV display model ,how to accept the ENTER key event?

    Dear All, I have used ALV by  GRID DISPLAY model ,not class model.     CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'     EXPORTING       i_callback_program       = sy-repid       i_callback_pf_status_set = 'SET_PF_STATUS'       i_callback_user_command  = 'U

  • Error while importing xml file

    Hi, I am importing the xml file using the executefile function or dbms_aw_xml package and getting following error. SQL> execute dbms_output.put_line(dbms_aw_xml.executefile('XML_IMPORT_DIR','mod_OPER_DATA_BW.XML')); BEGIN dbms_output.put_line(dbms_aw

  • Cancel In App Purchase of Additional Loops and Sounds

    Hi there, A while back I purchased additional loops and sounds, but now I do not wish to download those on my new MacBook. The added content takes up storage space I can't afford. Does anyone know how to cancel the download? When I start GarageBand,

  • Trying to bridge connections to an xbox360 with no luck[SOLVED]

    I am trying to set it up so that I can either 1) have an ad hoc connection between my arch linux computer so I can stream music to the xbox and/or 2) Bridge a connection between the ethernet link between the xbox and computer... to the wireless conne