Use FM - HR_READ_INFOTYPE one time but to read mulitple Info types

Dear All,
I have a select-option where in users enter the Info types Numbers.
Now I have to read and every infotype and display related data from each info type .
I have to use FM - HR_READ_INFOTYPE  but we need to declare data for each and every infotype so I need to use this 10 times in case If I have 10 infotype.
Is their any generlaised way exist where in I will pass the variable e.g., P0001 and build the internal table and use it for a FM. Kindly explain.
Regards,
Mangalagi S V

Yes you can.
1.) Declare fields as follows:
FIELD-SYMBOLS <it> TYPE STANDARD TABLE.
DATA  l_table_name LIKE feld-name.
DATA: wa_0008 TYPE STANDARD TABLE OF p0008,
          0008_line LIKE LINE OF wa_0008.
2)  In Step 3 I have a form that you will need to call like this:
        MOVE 'wa_0008' TO l_table_name.
        ASSIGN (l_table_name) TO <it>.
        PERFORM read_infotype USING pernr
                                    '0008'
                                    begda
                                    endda.
        wa_0008 = <it>.
3) Your form will need to look like this
FORM read_infotype USING pers_num
                         it_num
                         begin
                         end.
  CALL FUNCTION 'HR_READ_INFOTYPE'
    EXPORTING
      pernr             = pers_num
      infty             = it_num
      begda             = begin
      endda             = end
    TABLES
      infty_tab         = <it>
    EXCEPTIONS
      infty_not_found = 1
      OTHERS          = 2.
  IF sy-subrc  = 1.
  ENDIF.
ENDFORM.                    " read_infotype
You can then call your form passing different infotype numbers to it.
Hope that helps.
Mary

Similar Messages

  • I use podcasts all the time but downloaded my first books from the istore this morning. how do I get them to my ipod?

    I use podcasts all the time but downloaded my first books from the istore this morning, I can't get them synced onto my ipod. What am I doing wrong?

    the audiobooks I purchased show up in itunes under books and under purchased items but i cannot make them sync to my ipod. I followed your directions but it did not help. I have drag and dropped to a playlist which shows up on itunes but not on my ipod even after repeated syncs. when I try to drag and drop to the books or audiobooks in the itunes list it gives me the NO symbol.

  • Can I use more than one version of Adobe Reader on an iPad, 8.1 touch and 11.1

    Can I use more than one version of Adobe Reader on an iPad  adobe Reader Touch and Reader 11.1 .  .  I use Acrobat XI Pro although I had some old files that were stored on adobe.com from a prior version of acrobat 9 student edition.
    I guess the same question for my Surface Pro2 Computer might apply, although I gather from what I read that you shouldn't have two versions of reader on a computer.

    If I may add a qualification: on a device running full Windows 8, you may have both Adobe Reader Touch and Adobe Reader (normal desktop edition). This does not apply to the primitive devices which cannot run desktop apps (running "Windows RT"), and while I may be wrong, I believe that the Surface 2 is such a device.

  • Playing playlists on apple TV:  It worked at one time, but not now.  Home sharing is on, on the computer, but AppleTV wants me to turn it on!

    Trying to play playlist on Apple TV.  It worked at one time, but not now.  Home sharing is on, on the computer; but apple TV keeps asking me to turn home sharing on.
      What gives?

    Hello hobartco,
    Home sharing will, indeed, need to be set up on your Apple TV, as well.
    Setting up Home Sharing for Apple TV (2nd generation and 3rd generation)
    http://support.apple.com/kb/HT4352
    Cheers,
    Allen

  • Phone makes "morse code" sound when in use, not all the time but quite frequently. The sound does not come from the speakers, infact it comes from the comments inside the phone.

    When in use my phone makes a quiet buzzing noise coming not from the speakers but the actual phone. It does not do it all the time but it is quite frequent, my phone is an iPhone 5. Please can you tell me what the problem  is?

    Make an appointment at the Genius Bar to have it evaluated by the techs there. This is not normal and is probably not something that a user can fix.

  • Using more than one time delay in a thread

    Hello,
         I need to use two non-consecutive time delays in a thread. My thread typically proceeds as follows:
    1. Tell an oriel MS257 to change wavelengths
    2. Time delay #1 to give the MS257 time to change
    3. Tell HP 4156C to start sweeping
    4. Poll the 4156C until sweeping is complete
    5. Time delay #2 to give 4156C time to load data
    6. Read/parse/save data
    My problem is that the second time delay seems to start counting immediately after the first one - it does not wait for the sweeping to complete before counting. My VI is attached. It's a bit messy - organizational tips are also welcome!
    Thanks,
    Ying 
    Solved!
    Go to Solution.
    Attachments:
    TFTmeasure.vi ‏115 KB

    Looking into the sources show: Cleanup is a nice tool (even thought it is far from perfect )
    Well, nevertheless, from the wireworking, it seems alright that the second Time Delay express VI should indeed wait for the loop to finish. Therefore, i am wondering why it is skipped. And the only reasonable explanation: You have an error on the error cluster.
    So please debug into it using highlight/probes on the error cluster to make sure that you are not running into issues here.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Using more then one computer but only see new songs on one computer

    I have my itunes on both my home computer and my work computer and when I purchase new music on my home computer it doesnt show up on my work computer. How can I see the music on both?

    *I purchase new music on my home computer it doesnt show up on my work computer. How can I see the music on both?*
    If you want to have your purchases on more than one computer you have to copy them from the computer they are purchased on. When you purchase something it is downloaded to the computer you are logged into at the time, purchases don't simply appear on ever computer you choose to use. There are various methods to copy purchases between computers, CD-R, iPod, USB stick etc, you can read more at this llink: iTunes for Windows: How to copy purchases between authorized computers
    You can have up to 5 computers authorised at any one time to play iTunes purchases: About iTunes Music Store Authorisation and Deauthorisation

  • I cannot get the edge dection tool to work i use to use it all the time but now i can't, how do i get it to work?

    I use to use the edge detection tool all the time but now I can't, how do I get it to work again.  When I try to use it, it will show the o with the line in side.

    A lot more information about your hardware and software is needed.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CC", but something like CC2014.v.2.2) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    a screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Used CS6 trial one time and Continue Trial button disabled

    As the title states I opened it one time and after that the Continue Trial button is disabled.
    I installed the Beta a LONG time ago and decided at that time I could not afford it but have purchased the CS product and expect it some time next week but would like to use it until then.
    Thanks,
    Mike Hankey
    [edit]
    I am using WIndows 7 64-bit
    [/edit]

    Nothing you can do:
    Adobe trial software expired early
    And your Beta involvement may have something to do with it, so double-check:
    Adobe Forums: FAQ: How do I uninstall the Photoshop CS6 beta?
    Mylenium

  • My itunes is telling me to now authorize my computer after 6years of use and showing me an itunes account i havent used in all that time but now songs i have purchased wont sync to devices and are no longer in my music library

    my itunes is telling me to now authorize my computer after 6years of use and showing me an itunes account i havent used in all that time.... but now songs i have purchased wont sync to devices and are no longer in my music library

    see if these articles will help
    http://support.apple.com/kb/PH12303
    http://support.apple.com/kb/HT2519
    make sure you are signed in with correct appleid in itunes store and authorize for any appleid that has purchases.
    Peace, Clyde

  • Using more than one time capsule

    Is it possible to backup my MBP to 2 different time capsules in 2 different locations and have the same backups? for instance, I'd like to back up my MBP at home every hour and also backup at my office every hour when I'm there.
    I'd like both to back up anyhting new as of the last backup on that time capsule so i end up with duplicate backups in the event that something happens to either time capsule.
    thanks.

    Yes, you can do this. It's an excellent strategy.
    You will have to tell TM each time you swap, via TM Preferences > Change Disk.
    And the first backup after the swap will take somewhat longer than normal.
    You'll have two, independent sets of backups. They won't be the same, exactly, as they'd be done at different times, but the result would be nearly the same.
    Each would be current as of the last backup performed to that particular disk.

  • Wanting to use more than one time entry in cube

    My original question came from joining tables to be used in a cube. This all works fine now but for my specific application I want to join tables with the following specifics.
    Both tables contain the key ID
    Table 1 contains a Payment Type 1 date and amount - eg. TV 001 commission paid 1 JAn
    Table 2 contains a Payment Type 2 date and amount - eg  TV 001 payment received 3 FEb
    I wanted to join the tables because there are a lot of attributes in TAble 1 that I'd like to use and have in the same entry line. But now it seams that the cube is not going to allow me to enter 2 dates, even if each is assigned to different key figures. (Or maybe I don't know how to set that up)
    The other possible solution that I can think of is to somehow get the attributes from table 1 and keep the entries seperate

    Is ZDATE  just a custom name you entered. Why does it create the 0CALDAY attribute, I thought you would have to specify this.
    Do these attributes still fall under the Time Dimension or do I have to create a different dimension
    Edited by: corne.potgieter on Mar 11, 2009 12:22 PM

  • HT204053 I have two Apple ID's and one I have used to purchase all my apps but now I want to use my other one. But I can not purchase my old apps with my other one. How can I use my other one to purchase apps?

    I can't remember why but I made two Apple ID's, one with a Gmail address and another with a Yahoo address. I have always used my Yahoo address Apple ID to purchase my apps but I have recently deactivated my Yahoo address. So now I want to start using my Gmail address Apple ID but I can't purchase any apps or even my old apps on my iPhone. How can I use and re-install apps through my Gmail address Apple ID on my iPhone? And is there a way to deactivate my Yahoo address Apple ID that I do not want to use anymore?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • I purchased the gaming app from app store and I used it for some time but now suddenly the app is not working properly it's not starting properly and just dies down after the start and comes Back to homepage need help please guys help me out with this!

    Guys needed your help with my real racingHD game app it's not working properly even after paying for it I don't know why it's not working having trouble with it cause it won't star smooth need help guys

    Read Mitch's post on the sad ipod in this thread:
    http://discussions.apple.com/message.jspa?messageID=2369954#2369954

  • Can't use iMessage with one person but can with everyone else and he can iMessage me

    So my husband has an iPhone 5c and up until recently has has iMessage turned off. He turned it back on recently and my phone hasn't figured that out yet. It still sends texts to him as SMS instead of through iMessage, yet any texts he sends to me come in as iMessage. What gives and how can I fix it?

    See if these articles help:
    http://support.apple.com/kb/ts4268
    http://support.apple.com/kb/ts2755

Maybe you are looking for

  • AW01N  Depreciation calculation

    Hi All, We have a requirement on Calculation of tax depreciation for countries US & CA(Canada). We are using 2 depreciation areas :  10   -     MACRS                                                             11  -     AMT . The total acquisition am

  • DVD/CD loading problem

    I have a 3+ year old Intel Mini with superdrive. Recently I rented a DVD and it kept hanging, so I ejected. Ever since then I have not been able to load a DVD or CD. I put it in and the machine makes a few noises and then ejects it. I read in another

  • DBMS_CRYPTO.HASH produces a different hash result when I use it in sqlldr?

    Hello, If I execute the following in sqlplus: SELECT LOWER(SYS.DBMS_CRYPTO.HASH(UTL_RAW.CAST_TO_RAW(CONCAT('Salt','000000000')),3)) FROM DUAL; It produces one hash value. However, if I use similar logic in a sqlldr control file: OPTIONS (SKIP=7) LOAD

  • APEX Web Services Proxy Settings

    So I have been experimenting with Web Services and I see to have a problem whenever I go through a Proxy Server; I keep getting the error below for the same request that works when I am not using a Proxy Server. ORA-06502: PL/SQL: numeric or value er

  • Events in maintenance view

    I was trying to put some checks through event in maintenance view. It is working while creating a new entry. But in case an exisiting entry is being modified it is not working. Pls help.