Plotting Signal Power vs Time question

Hello,
Is there any way to plot on a waveform graph the power of a sinewave signal in dBm around f=36 Khz in real time? I am making up a simple example below to better ilustrate the question:
Let's consider the signal  Power=-20dBm and is pretty constant. At this point the graph should show an almost  flat line @ -20dBm mark. When a quick power variation occurs (e.g 1ms )the graph should be able to  register this variation as a negative spike (e.g -100dBm).
Your help is appreciated.
Thanks

You can do this if you have LabVIEW Real-Time and have the supporting hardware for this. You can a remote front panel application to monitor the values real-time.
LabVIEW itself runs on Windows which is not a RT system.
Warm regards,
Karunya R
National Instruments
Applications Engineer

Similar Messages

  • My Pavilion G7 Suddenly Cannot Recognize WiFi Signal For Second Time In A Year

    Hi All,
    My Pavilion is about two years old and the
    motherboard was replaced by HP while under
    warranty. 
    For the second time in about nine months the notebook suddenly cannot recognize my router's 
    WiFi signal. This time if I do a system recovery I will have to reinstall 50 apps! I am trying to avoid this if possible. I understand that changing the bios settings may fix wifi issue but no idea how this step will affect (delete/save) files. Upgraded from WIN7 to 8 to 8.1. Please help. Thanks so much.
    This question was solved.
    View Solution.

    Hi @actionrob 
    Welcome to the HP Community.  I hope you enjoy your experience with us.  To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I saw your post regarding the problems connecting to your router.  I will be happy to help you with that.  I will need to know what the product number is for your notebook as there are a number of models in the g7 series.  Try the troubleshooting steps in this HP document Troubleshooting Wireless Network and Internet.
    Here are some generic steps that you can try as well:
    Power cycle the network: (Do this even if you have other devices that work properly with the router as it will interact with each piece of hardware differently)
    1. Shut down your notebook.
    2. Unplug the power to your router.
    3. Unplug the power to your modem.
    4. Wait at least 45 seconds.
    5. Plug in the modem, and wait for it to come back online.
    6. Plug in the router, and wait for it to come back online.
    7. Turn on your notebook, and test your connection.
    Reset the TCP/IP settings:
    1. Go to your start screen/menu and type CMD.
    2. Right click on the command prompt icon and chose Run as administrator.
    3. In the window that opens type "netsh int ip reset resetlog.txt" without quotes, and press enter.
    4. Restart your PC and test.
    Reset the winsock catalogue:
    1. Go to your start screen/menu and type CMD.
    2. Right click on the command prompt icon and chose Run as administrator.
    3. In the window that opens type "netsh winsock reset" without quotes, and press enter.
    4. Restart your PC and test.
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Slow WiFi transmission and low signal power (Airport Extreme extended by Airport Express)

    I am experiencing slow wifi transmission between my notebooks and my base stations and I am hoping someone can help me fix it.
    My wifi configuration is the following:
    1 Airport Extreme base station (acting as router, wifi "creator" and DHCP server)
    1 Airport Express base station (connected to Airport Extreme with a LAN cable, set up to extend wireless network)
    1 Lenovo T410 notebook with Intel Centrino Ultimate N-6300 AGN WiFi antenna (I will call this one "Lenovo"), connected to wireless network, running Windows 7
    1 MacBook Pro purchased in 2009 (I will call this one "Mac"), connected to wireless network, running Mac OS X Lion
    1 QNAP T209-II NAS, connected to Airport Extreme via UTP cable
    Airport Extreme (AXTRM) is creating a 802.11n wireless network with WPA2+PSK security with MAC address filtering. The other base station, Airport Express (AXPRS) is connected to AXTRM via a UTP cable. AXPRS is set to extend my wireless network.
    My first problem is low signal power. My appartment is 90m2 in size and is in one floor. It is a new flat with high ceiling and modern layout, meaning little walls, big rooms and wide corridors. Still my notebooks, iPhones and iPad can barely reach AXTRM when I am on the other side of the flat. This was the reason why I purchased AXPRS and placed it in the middle of the appartment. My notebooks are placed just on the other side of the AXPRS's wall (less than 1 meter of distance and a simple 10cm brick wall in between), yet signal strength is only at about 80% (measured on my Lenovo using Lenovo Access Connections tool).
    My first question is: Is it normal that in a 90m2 flat with not unusual obstacles, I need 2 base stations and even then have a rather poor reception?
    My second problem is even more disturbing. I think I have catastrophic transfer speeds via wLAN. It takes over 1 hour to transfer cca. 1GB of files (average size 8MB) from my Lenovo or Mac to my QNAP. My Lenovo is showing about 250kb/s transfer rate when copying files. At the same time, Windows 7 show connection speed 144Mbps. This mean about 18MB/s. I know these numbers are theoretical and that actual transfer speeds are lower. But hey, 72 times lower? Furthermore, if I copy files from my Mac and my Lenovo at the same time, transfer speed is slightly lower. On the other hand, if I connect my notebooks to AXTRM via LAN cable and copy files to QNAP, transfer speeds are a few megabytes per second.
    To make things even more confusing for me: if I transfer files from the internet, I get download speed at about 700kb/s, which is quite in line with my internet download speed. I don't understand why transfer speeds within my local network are so much lower.
    Therefore, my second question is: How to set up my base stations and my routers to get a decent wifi connection?
    I hope someone could help me. If you need any more information, just ask. Thanks!

    From my experience of setting up the Airport WiFi for family members and friends, I have learnt the following :-
    1. Airport Express is not as good as Airport Extreme, for being as extender, the difference can be quite a lot.
    2. There is always a dead cornor (bad reception) in a house
    3. Even moving the Airport Extreme / AE a few inches, the performance can be improved quite significant
    4. If possible, always choose 5G 802.11n than 2.4G, unless there are many thick walls.
    My suggestion will be as follows :
    1. Moving out the AEBS out of a closet, is a good idea
    2. Always try to locate the AEBS in the centre of a area, instead of the two sides
    3. Try to test the AEBS without an extender, and find the best location area (don't place on the floor, neither above 6 feet height)
    4. After finding a best location, set the extender closer to the AEBS, and then moving apart from it (check the performance after every move), it is better that both devices can face each other.
    5. I can't tell you the reason, and some people may not agree with me, the new 2013 Airport Exteme performance is better and may be is a good idea to replace your Airport Express, and use it to connect with your router, and old AEBS as an extender
    6. Some Powerlinks (in case you can't use a wired ethernet connection between the two devices) work and some don't work with Apple Airport products, therefore, if possible, have an option to return them to the shop if they do not match
    Good luck

  • Waterfall plot acquired in real time doesn't match when it is read offline.

    Dear fellow LabVIEW experts,
    I'm in need of help regarding the waterfall plot in LabVIEW. I acquired vibration signals of a CNC router during idling. The accelerometer was attached to the tool spindle in proximity to the rotating tool. Using a LabVIEW program (LV 2010),  I saved my data (using write to spreasheet function) and I also had a waterfall plot showing the vibration spectrum built up as I was collecting the data. I used the Print Screen function on the keyboard to copy the waterfall plot (collected during real time data acquisition) and pasted it in a Word document.  Then, I had another LabVIEW program that was able to read back all the data that I've saved including a waterfall plot that was used to reproduce the vibration spectrum that I've collected. After I read back my data (offline), I compared the vibration spectra between the real time and offline. The vibration spectrum that is collected during real time is supposed to match with the vibration spectrum that is reproduced when reading back the same data.
    My problem is this, when I changed the location of the accelerometer or the vibration sensor to a new location (a bit far up and away from the rotating tool), the real time and offline vibration spectra didn't match in that the offline one showed some additional frequencies or peaks that weren''t there when I was collecting it in real time. Does anyone know why this happens?...Is it something to do with the buffer?
    I've tried my best to explain and I hope someone out there is able to explain this situation.
    Really appreciate any helps.
    Thanks.

    TiTou is right some screen shots would be helpful,
    But these are good references too: http://zone.ni.com/devzone/cda/epd/p/id/5607   http://zone.ni.com/devzone/cda/epd/p/id/1425   http://zone.ni.com/devzone/cda/epd/p/id/5523 
    Sam S
    Applications Engineer
    National Instruments

  • Measurement studio plot data vs. date/time (Measurement studio for Visual Basic 6)

    Hi, I'm trying to do something that should be simple and appears totally possible but I can't get there.
    I'd like to plot some data on the y axis vs. the date/time on the x-axis.  I've looked at the samples, and tried modifying the chart properties but I'm doing something wrong and can't get it properly.
    Any chance someone has a very simple example of plotting a few points vs. date/time that they can share?
    Thanks for any feedback!!

    Hey Larrymcd,
    What format is your date/time currently in? That might help us find the best way to do this. I was able to find a few examples of plotting a graph with time on the X-axis:
    http://forums.ni.com/t5/Measurement-Studio-for-NET/Measurement-Studio-Graph-to-plot-with-time-scale/...
    http://digital.ni.com/public.nsf/allkb/FFC867DDE42029BA8625760300477BEB
    http://zone.ni.com/devzone/cda/epd/p/id/3334
    Hopefully some of these can point you in the right direction. If you have any more questions after checking those examples out, please let us know!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • How can I remedy losing my wifi signal a hundred times a day at least?

    HOw can I remedy losing my wifi signal a hundred times a day?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • How can I manage audio output power save time?

    I need to make spdif-audio out always ON, that's needed for my external DAC which is synced on the signal correctly. However, the system mute audio out in about one minute of silence. How can I avoid this power save and keep sync signal always ON, or, at least, increase power save time up to 10-15 minutes?
    Thanks!

    You may be able to do what you want with Rogue Amoeba's Airfoil for Mac.
    Best of luck.

  • Graph power over time

    Hi,
    I am new to Signal Express.  I am using it with the USB-6289 to measure system power on my DUT.  I have a target sense resistor on the board that I have sense lines connected to and thse lines are connected to analog 1 and analog 2 on the 6289.  The goal is to measure the voltage drop across the resistor and use it to calculate the power and graph it in real time with Signal Express.
    I created a task for voltages ai0 and ai1 for the voltage drop across the resistor.
    Tried to run the project but I am not seeing any kind of output on the screen.  
    I verified the 6289 is being detected and calibrated with NIMAX.  Also created a task with NIMAX.  However, I am not sure how to specify power over time.  How do I specify power over time in Signal Express if I have sense lines connected to a resistor on a board?
    Thanks, Joe

    Hi Joe,
    Are you able to run and see the voltage in MAX when you create the task? How do you have your voltage input set up in SignalExpress?
    Here is a link that might be helpful for setting and collecting data in SignalExpress: http://www.ni.com/white-paper/5903/en/
    As far as calculating the power over time, you can create a customer scale. Here is: http://digital.ni.com/public.nsf/allkb/31A3EF18B6141E2C862579DE0077ABA7
    Thanks!
    Stephanie S.
    Application Engineer
    National Instruments

  • 15454 Low Output Signal Power

    Having a problem with the Bits timing output on pins A3, B3 and A1,B1 on the back of the Sonnet Shelf. Appears the output signal power of our 15454 is reading 1.30 which is very low.
    Tried changing the LBO setting and it did not make a difference.
    Need to now if there is a way to boost the signal power level up.
    The bits timing ouputs are used to time our Motorola BSR (CMTS) for telephony. The problem the Motorola BSR's are experiencing is when you failover the SRM (CPU) to the Secondary SRM, you loose both timing inputs.
    Any advice?

    To understand how BITS Network clocking work and how to troubleshoot when there are loss of Signal power
    please check the following URL which provides useful information
    http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120limit/120db/120db7/str3bits.htm
    http://www.cisco.com/en/US/products/hw/optical/ps2006/products_tech_note09186a0080124260.shtml#topic1

  • The signal drops every time i lock the screen.

    I have a wierd problem with my Iphone5. The signal drops every time i lock the screen. It seems to happening only when the battery is under 20%.. After i restart my iphone the problem disapear, but after a time it happends again. I have ios 6.0.2. Anybody help?

    When the phone goes into sleep mode (screen locked), after a few seconds of inactivity, the wifi will disconnect. This is by design to help further battery life. Once you wake the phone up, it connects. Nothing wrong with the phone, working like it is supposed to. The only way to wifi connected all of the time is to have the device connected to power.

  • Can somebody give some real time questions for alv report

    hi guru
    can somebody give some real time questions for alv report.
    answers also.
    regards
    subhasis.

    hi,
    The ALV is a set of function modules and classes and their methods which are added to program code. Developers can use the functionality of the ALV in creating new reports,  saving time which might otherwise have been spent on report enhancement
    The common features of report are column    alignment, sorting, filtering, subtotals, totals etc. <b>To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).</b>
    Using ALV, we can have three types of reports:
       1. Simple Report
       2. Block Report
       3. Hierarchical Sequential Report
    <b>Reward useful points</b>
    Siva

  • I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assistant i am able to log data from one signal at a time only.

    I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assiatant i am able to log data from one signal at a time only.I am trying to get all 4 input data to logged in a single file againt time. I am new to Labview, I need to sample this data within a couple of days can someone help please.

    Naveen
    Check out the info in the Analog Input section of the document linked below.  (Ignore the part about Global Channels.)  In Figure 5, notice that you can select multiple channels while holding <Ctrl> or <Shift>.
    Developer Zone Tutorial: NI-DAQmx Express VI Tutorial
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • Get a waveform graph to stop plotting after a given time period

    I am doing a research project looking at the effects of modifying visual feedback on a person's current force output. I have a waveform graph that plots the target force level they are trying to match (specified by me) and next to it a second plot showing their current force output (in real time). I am trying to make a condition where the current force output plot (or really the whole waveform graph) stops plotting after a 10 s time period, but can't seem to get it to work. It either plots for the whole trial, or does not plot at all. Is there a way to put a timer on a waveform graph in order to tell it to stop plotting after a specified time period?
    Thanks!

    Hi again,
    I have tried to open the .vi you sent, but I have version 8.2 (yours is in version 8.5) and cannot open it. Is there a way for you to tave the.vi so that it can be opened with earlier versions of the program?
    I have attatched my .vi to this message as well.
    Attachments:
    bimanual combined with metronome_conds.vi ‏174 KB

  • My iPHONE 5 wifi is NOT working when am 3 feet away from router while my iPhone 4s has full signal all the time.Please help.

    My iPHONE 5 wifi is NOT working when am 3 feet away from router while my iPhone 4s has full signal all the time.Please help.

    The problem would seem to be in the firewall in your router.  Have you tried disabling it? I assume you've updated the router firmware, right?  Consider bypassing the ISP provided router (using it as a modem only) and unsing another device such as an Aiport Express.

  • Abap-hr real time questions

    hi friends
    kindly send me ABAP-HR REAL TIME QUESTION to my mail [email protected]
    Thanks&Regards
    babasish

    Hi
    Logical database
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. Using logical databases facilitates the process of reading database tables.
    HR Logical Database is PNP
    Main Functions of the logical database PNP:
    Standard Selection screen
    Data Retrieval
    Authorization check 
    To use logical database PNP in your program, specify in your program attributes.
    Standard Selection Screen
    Date selection
    Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database.  When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
    Person selection
    Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
    Sorting Data
    · The standard sort sequence lists personnel numbers in ascending order.
    · SORT function allows you to sort the report data otherwise. All the sorting fields are from infotype 0001.
    Report Class
    · You can suppress input fields which are not used on the selection screen by assigning a report class to your program.
    · If SAP standard delivered report classes do not satisfy your requirements, you can create your own report class through the IMG.
    Data Retrieval from LDB
    1. Create data structures for infotypes.
        INFOTYPES: 0001, "ORG ASSIGNMENT
                            0002, "PERSONAL DATA
                            0008. "BASIC PAY
    2. Fill data structures with the infotype records.
        Start-of-selection.
             GET PERNR.
        End-0f-selection. 
        Read Master Data
    Infotype structures (after GET PERNR) are internal tables loaded with data.
    The infotype records (selected within the period) are processed sequentially by the PROVIDE - ENDPROVIDE loop.
              GET PERNR.
                 PROVIDE * FROM Pnnnn BETWEEN PN/BEGDA AND PN/ENDDA
                        If Pnnnn-XXXX = ' '. write:/ Pnnnn-XXXX. endif.
                 ENDPROVIDE.
    Period-Related Data
    All infotype records are time stamped.
    IT0006 (Address infotype)
    01/01/1990   12/31/9999  present
              Which record to be read depends on the date selection period specified on the
              selection screen. PN/BEGDA PN/ENDDA.
    Current Data
    IT0006 Address  -  01/01/1990 12/31/9999   present
    RP-PROVIDE-FROM-LAST retrieves the record which is valid in the data selection period.
    For example, pn/begda = '19990931'    pn/endda = '99991231'
    IT0006 subtype 1 is resident address
    RP-PROVIDE-FROM-LAST P0006 1 PN/BEGDA PN/ENDDA.
    Process Infotypes
    RMAC Modules - RMAC module as referred to Macro, is a special construct of ABAP/4 codes. Normally, the program code of these modules is stored in table 'TRMAC'. The table key combines the program code under a given name. It can also be defined in programs.The RMAC defined in the TRMAC can be used in all Reports. When an RMAC is changed, the report has to be regenerated manually to reflect the change.
    Reading Infotypes - by using RMAC (macro) RP-READ-INFOTYPE
              REPORT ZHR00001.
              INFOTYPE: 0002.
              PARAMETERS: PERNR LIKE P0002-PERNR.
              RP-READ-INFOTYPE PERNR 0002 P0002 .
              PROVIDE * FROM P0002
                  if ... then ...endif.
              ENDPROVIDE.
    Changing Infotypes - by using RMAC (macro) RP-READ-INFOTYPE. 
    · Three steps are involved in changing infotypes:
    1. Select the infotype records to be changed;
    2. Make the required changes and store the records in an alternative table;
    3. Save this table to the database;
    The RP-UPDATE macro updates the database. The parameters of this macro are the OLD internal table containing the unchanged records and the NEW internal table containing the changed records. You cannot create or delete data. Only modification is possible.
    INFOTYPES: Pnnnn NAME OLD,
    Pnnnn NAME NEW.
    GET PERNR.
        PROVIDE * FROM OLD
               WHERE .... = ... "Change old record
               *Save old record in alternate table
               NEW = OLD.
        ENDPROVIDE.
        RP-UPDATE OLD NEW. "Update changed record
    Infotype with repeat structures
    · How to identify repeat structures.
    a. On infotype entry screen, data is entered in table form.
        IT0005, IT0008, IT0041, etc.
    b. In the infotype structure, fields are grouped by the same name followed by sequence number.
        P0005-UARnn P0005-UANnn P0005-UBEnn
        P0005-UENnn P0005-UABnn
    Repeat Structures
    · Data is entered on the infotype screen in table format but stored on the database in a linear  
      structure.
    · Each row of the table is stored in the same record on the database.
    · When evaluating a repeat structure, you must define the starting point, the increment and the
      work area which contains the complete field group definition.
    Repeat Structures Evaluation (I)
    · To evaluate the repeat structures
       a. Define work area.
           The work area is a field string. Its structure is identical to that of the field group.
       b. Use a DO LOOP to divide the repeat structure into segments and make it available for  
           processing in the work area, one field group (block) at a time.
    Repeat Structures Evaluation(II)
    Define work area
    DATA: BEGIN OF VACATION,
                  UAR LIKE P0005-UAR01, "Leave type
                  UAN LIKE P0005-UAN01, "Leave entitlement
                  UBE LIKE P0005-UBE01, "Start date
                  UEN LIKE P0005-UEN01, "End date
                  UAB LIKE P0005-UAB01, "Leave accounted
               END OF VACATION.
    GET PERNR.
         RP-PROVIDE-FROM-LAST P0005 SPACE PN/BEGDA PN/ENDDA.
         DO 6 TIMES VARYING VACATION
                 FROM P0005-UAR01 "Starting point
                     NEXT P0005-UAR02. "Increment
                 If p0005-xyz then ... endif.
          ENDDO.
    Processing 'Time Data'.
    · Dependence of time data on validity period
    · Importing time data
    · Processing time data using internal tables
    Time Data and Validity Period
    · Time data always applies to a specific validity period.
    · The validity periods of different types of time data are not always the same as the date selection period specified in the selection screen.
    Date selection period |----
    |
    Leave |----
    |
    · PROVIDE in this case is therefore not used for time infotypes.
    Importing Time Data
    · GET PERNR reads all time infotypes from the lowest to highest system data, not only those within the date selection period.
    · To prevent memory overload, add MODE N to the infotype declaration. This prevents the logical database from importing all data into infotype tables at GET PERNR.
    · Use macro RP-READ-ALL-TIME-ITY to fill infotype table.
    INFOTYPES: 2001 MODE N.
    GET PERNR.
        RP-READ-ALL-TIME-ITY PN/BEGDA PN/ENDDA.
        LOOP AT P0021.
             If P0021-XYZ = ' '. A=B. Endif.
        ENDLOOP.
    Processing Time Data
    · Once data is imported into infotype tables, you can use an internal table to process the interested data.
    DATA: BEGIN OF ITAB OCCURS 0,
                  BUKRS LIKE P0001-BUKRS, "COMPANY
                  WERKS LIKE P0001-WERKS, "PERSONNEL AREA
                  AWART LIKE P2001-AWART, "ABS./ATTEND. TYPE
                  ASWTG LIKE P2001-ASWTG, "ABS./ATTEND. DAYS
               END OF ITAB.
    GET PERNR.
    RP-PROVIDE-FROM-LAST P0001 SAPCE PN/BEGDA PN/ENDDA.
    CLEAR ITAB.
    ITAB-BUKRS = P0001-BURKS. ITAB-WERKS = P0001-WERKS.
    RP-READ-ALL-TIME-ITY PN/BEGDA PN/ENDDA.
    LOOP AT P2001.
          ITAB-AWART = P2001-AWART. ITAB-ASWTG = P2001-ASWTG.
          COLLECT ITAB. (OR: APPEND ITAB.)
    ENDLOOP.
    Database Tables in HR
    ·  Personnel Administration (PA) - master and time data infotype tables (transparent tables).
       PAnnnn: e.g. PA0001 for infotype 0001
    ·  Personnel Development (PD) - Org Unit, Job, Position, etc. (transparent tables).
       HRPnnnn: e.g. HRP1000 for infotype 1000
    ·  Time/Travel expense/Payroll/Applicant Tracking data/HR work areas/Documents (cluster  
       PCLn: e.g. PCL2 for time/payroll results.
    Cluster Table
    · Cluster tables combine the data from several tables with identical (or almost identical) keys
      into one physical record on the database.
    . Data is written to a database in compressed form.
    · Retrieval of data is very fast if the primary key is known.
    · Cluster tables are defined in the data dictionary as transparent tables.
    · External programs can NOT interpret the data in a cluster table.
    · Special language elements EXPORT TO DATABASE, IMPORT TO DATABASE and DELETE
      FROM DATABASE are used to process data in the cluster tables.
    PCL1 - Database for HR work area;
    PCL2 - Accounting Results (time, travel expense and payroll);
    PCL3 - Applicant tracking data;
    PCL4 - Documents, Payroll year-end Tax data
    Database Tables PCLn
    · PCLn database tables are divided into subareas known as data clusters.
    · Data Clusters are identified by a two-character code. e.g RU for US payroll result, B2 for
      time evaluation result...
    · Each HR subarea has its own cluster.
    · Each subarea has its own key.
    Database Table PCL1
    · The database table PCL1 contains the following data areas:
      B1 time events/PDC
      G1 group incentive wages
      L1 individual incentive wages
      PC personal calendar
      TE travel expenses/payroll results
      TS travel expenses/master data
      TX infotype texts
      ZI PDC interface -> cost account
    Database Table PCL2
    · The database table PCL2 contains the following data areas:
      B2 time accounting results
      CD cluster directory of the CD manager
      PS generated schemas
      PT texts for generated schemas
      RX payroll accounting results/international
      Rn payroll accounting results/country-specific ( n = HR country indicator )
      ZL personal work schedule
    Database Table PCL3
    · The database table PCL3 contains the following data areas:
      AP action log / time schedule
      TY texts for applicant data infotypes
    Data Management of PCLn
    · The ABAP commands IMPORT and EXPORT are used for management of read/write to
      database tables PCLn.
    · A unique key has to be used when reading data from or writing data to the PCLn.
      Field Name KEY Length Text
      MANDT X 3 Client
      RELID X 2 Relation ID (RU,B2..)
      SRTFD X 40 Work Area Key
      SRTF2 X 4 Sort key for dup. key
    Cluster Definition
    · The data definition of a work area for PCLn is specified in separate programs which comply  
       with fixed naming conventions.
    · They are defined as INCLUDE programs (RPCnxxy0). The following naming convention applies:
       n = 1 or 2 (PCL1 or PCL2)
       xx = Relation ID (e.g. RX)
       y = 0 for international clusters or country indicator (T500L) for different country cluster
    Exporting Data (I)
    · The EXPORT command causes one or more 'xy' KEY data objects to be written to cluster xy.
    · The cluster definition is integrated with the INCLUDE statement.
    REPORT ZHREXPRT.
    TABLES: PCLn.
    INCLUDE: RPCnxxy0. "Cluster definition
    Fill cluster KEY
    xy-key-field = .
    Fill data object
    Export record
    EXPORT TABLE1 TO DATABASE PCLn(xy) ID xy-KEY.
       IF SY-SUBRC EQ 0.
           WRITE: / 'Update successful'.
       ENDIF.
    Exporting Data (II)
    . Export data using macro RP-EXP-Cn-xy.
    · When data records are exported using macro, they are not written to the database but to a  
      main memory buffer.
    · To save data, use the PREPARE_UPDATE routine with the USING parameter 'V'.
    REPORT ZHREXPRT.
    *Buffer definition
    INCLUDE RPPPXD00. INCLUDE RPPPXM00. "Buffer management
    DATA: BEGIN OF COMMON PART 'BUFFER'.
    INCLUDE RPPPXD10.
    DATA: END OF COMMON PART 'BUFFER'.
    RP-EXP-Cn-xy.
    IF SY-SUBRC EQ 0.
        PERFORM PREPARE_UPDATE USING 'V'..
    ENDIF.
    Importing Data (I)
    · The IMPORT command causes data objects with the specified key values to be read from
       PCLn.
    · If the import is successful, SY-SUBRC is 0; if not, it is 4.
    REPORT RPIMPORT.
    TABLES: PCLn.
    INCLUDE RPCnxxy0. "Cluster definition
    Fill cluster Key
    Import record
    IMPORT TABLE1 FROM DATABASE PCLn(xy) ID xy-KEY.
       IF SY-SUBRC EQ 0.
    Display data object
       ENDIF.
    Importing data (II)
    · Import data using macro RP-IMP-Cn-xy.
    · Check return code SY-SUBRC. If 0, it is successful. If 4, error.
    · Need include buffer management routines RPPPXM00
    REPORT RPIMPORT.
    *Buffer definition
    INCLUDE RPPPXD00.
    DATA: BEGIN OF COMMON PART 'BUFFER'.
    INCLUDE RPPPXD10.
    DATA: END OF COMMON PART 'BUFFER'.
    *import data to buffer
    RP-IMP-Cn-xy.
    *Buffer management routines
    INCLUDE RPPPXM00.
    Cluster Authorization
    · Simple EXPORT/IMPORT statement does not check for cluster authorization.
    · Use EXPORT/IMPORT via buffer, the buffer management routines check for cluster
      authorization.
    Payroll Results (I)
    · Payroll results are stored in cluster Rn of PCL2 as field string and internal tables.
      n - country identifier.
    · Standard reports read the results from cluster Rn. Report RPCLSTRn lists all payroll results;
      report RPCEDTn0 lists the results on a payroll form.
    Payroll Results (II)
    · The cluster definition of payroll results is stored in two INLCUDE reports:
      include: rpc2rx09. "Definition Cluster Ru (I)
      include: rpc2ruu0. "Definition Cluster Ru (II)
    The first INCLUDE defines the country-independent part; The second INCLUDE defines the country-specific part (US).
    · The cluster key is stored in the field string RX-KEY.
    Payroll Results (III)
    · All the field string and internal tables stored in PCL2 are defined in the ABAP/4 dictionary. This
      allows you to use the same structures in different definitions and nonetheless maintain data
      consistency.
    · The structures for cluster definition comply with the name convention PCnnn. Unfortunately, 
       'nnn' can be any set of alphanumeric characters.
    *Key definition
    DATA: BEGIN OF RX-KEY.
         INCLUDE STRUCTURE PC200.
    DATA: END OF RX-KEY.
    *Payroll directory
    DATA: BEGIN OF RGDIR OCCURS 100.
         INCLUDE STRUCTURE PC261.
    DATA: END OF RGDIR.
    Payroll Cluster Directory
    · To read payroll results, you need two keys: pernr and seqno
    . You can get SEQNO by importing the cluster directory (CD) first.
    REPORT ZHRIMPRT.
    TABLES: PERNR, PCL1, PCL2.
    INLCUDE: rpc2cd09. "definition cluster CD
    PARAMETERS: PERSON LIKE PERNR-PERNR.
    RP-INIT-BUFFER.
    *Import cluster Directory
       CD-KEY-PERNR = PERNR-PERNR.
    RP-IMP-C2-CU.
       CHECK SY-SUBRC = 0.
    LOOP AT RGDIR.
       RX-KEY-PERNR = PERSON.
       UNPACK RGDIR-SEQNR TO RX-KEY-SEQNO.
       *Import data from PCL2
       RP-IMP-C2-RU.
       INLCUDE: RPPPXM00. "PCL1/PCL2 BUFFER HANDLING
    Function Module (I)
      CD_EVALUATION_PERIODS
    · After importing the payroll directory, which record to read is up to the programmer.
    · Each payroll result has a status.
      'P' - previous result
      'A' - current (actual) result
      'O' - old result
    · Function module CD_EVALUATION_PERIODS will restore the payroll result status for a period
       when that payroll is initially run. It also will select all the relevant periods to be evaluated.
    Function Module (II)
    CD_EVALUATION_PERIODS
    call function 'CD_EVALUATION_PERIODS'
         exporting
              bonus_date = ref_periods-bondt
              inper_modif = pn-permo
              inper = ref_periods-inper
              pay_type = ref_periods-payty
              pay_ident = ref_periods-payid
         tables
              rgdir = rgdir
              evpdir = evp
              iabkrs = pnpabkrs
         exceptions
              no_record_found = 1.
    Authorization Check
       Authorization for Persons
    ·  In the authorization check for persons, the system determines whether the user has the 
       authorizations required for the organizational features of the employees selected with
       GET PERNR.
    ·  Employees for which the user has no authorization are skipped and appear in a list at the end
       of the report.
    ·  Authorization object: 'HR: Master data'
    Authorization for Data
    · In the authorization check for data, the system determines whether the user is authorized to
      read the infotypes specified in the report.
    · If the authorization for a particular infotype is missing, the evaluation is terminated and an error
      message is displayed.
    Deactivating the Authorization Check
    · In certain reports, it may be useful to deactivate the authorization check in order to improve
      performance. (e.g. when running payroll)
    · You can store this information in the object 'HR: Reporting'.
    these are the main areas they ask q?

Maybe you are looking for