Query on reading infotype 0001 using the macro rp-provide from last p0001

Dear Friends,
        I have a question rgarding relating the infotype 0001 when we are using in the program the logical database PNP.
iam using rp-provide-from-last p0001 space sydatum sydatum
        if pnp-sw-found eq 1.
        append p0001 into i_p0001.
        endif.
iam getting a problem in production , in the selection screen iam passing for emloyee subgroup with multiple values option.
i have passed E,H,S  -> where E means Executive , H means hourly and S means salaried employee...
one particular scneario is iam having an employee whose
employee subgroup is C (contactor) and on the selection screen if am passing this personnel no and on the selection screen iam only having in the multiple selection option only E,H,S but not C so this record should  should fail but it is getting success and appending to internal table i_p0001
which is wrong
, i mean to say the macro is getting success
rp-provide-from-last p0001 space sydatum sydatum
this employee .
my question is will the macro will not check on the selection screen the employee gropu which we have passed and should i exclusively check
if p0001-persk in pnppersk ?? or please let me knwo how to check this wrong employee not getting appended to my internal table.
please let me know
regards
madhuri

Hi Madhuri
  The macro rp-provide-from-last p0001 will not fetch data from the database, it simply extracts the last record from the available internal table P0001[]  for the time frame provided(as 3rd and 4th parameters). You can check the definition of the macro from the database table TRMAC, it simply uses the LOOP....ENDLOOP and IF conditions to arrive at the last record and populates the fields pnp-sw-found, pnp-sw-tabix.
    And coming to your problem, please check all the IT0001 records of the EE concerned, it can happen that the EE is attached to different employee subgroups in different time frames and hence the LDB is fetching all the available records of the EE (even if the employee subgroup is not among the one's selected in  the selection screen). If this is the case, I reckon, u've to perform manual check before appending to the internal table.
Note:  The macro  rp-provide-from-last p0001 space sydatum sydatum will only fetch the valid IT0001record as on date - sy-datum

Similar Messages

  • Error in the macro 'rp-provide-from-last'

    Hi, experts!
    Can anyone please help me address an error regarding the macro rp-provide-from last? During activation, this error is returned: "Unable to interpret SPACE. Possible causes: Incorrect spelling or comma error".  The line in question is this: rp-provide-from-last p0000 SPACE pn-begda pn-endda This is the only error standing between me and activation. Please help
    Thanks in advance.
    Regards,
    brent

    HI Brent,
    Use this sample example :
    REPORT  ZTEST_94TEST.
    TABLES :pernr.
    INFOTYPES :0000.
    GET PERNR.
    rp-provide-from-last p0000 SPACE pn-begda pn-endda.
    No syntax errors and activated. hope it will be helpful.

  • Read infotype records using the classes

    Hi All,
    In my system i can see many classes with cl_hrpa*
    Here i want to read a infotype record using these classes. I want finally the data in PA0008 or a record in P0008 format.
    i tried using the various classes like
    cl_hrpa_masterdata_factory
    if_hrpa_infty_bl
    hrpad_infty_container_tab
    I tried using the sevaral calsses passing one class type to other. finally i get is the class cl_hrpa_infotype_0008_in.
    can any one suggest how i should be reading the data for any infotype.
    Pls do not suggest the function module HR_READ_INFOTYPE. I want to use these classes to read the data.
    Pls suggest
    Regards,
    Umesh Chaudhari.

    Hi,
    Did you get any replies to this or have you found an answer on your own?
    Regards,
    LC

  • Where condition for reading infotype while using ldb

    hi
    i want to read info from infotype p0000
    using where condition eg: for pernr = ' '.
    i am using LDB pnp.
    how can i put the where condition while using macro
    rp-provide-from-last.
    regards
    cs

    in fact you don't have to get the values, you only need to tell to the program to take them into account :
    GET PRPS.
      CHECK SELECT-OPTIONS.

  • Running abap programs using the macros

    In our DP implementation we have faced several issues in the extraction of the data from the demand planning to one of the legacy system. We have written the ABAP program and would be using the read planning book bapi. I wanted to run the ABAP program using the macro could some one please let me know what is the structure of the macro builder that is used to fire the ABAP program. this is being fired from the macros as some comparison is to be done to run the macro.

    Hi,
    Some more information on macro function
    REPORT_SUBMIT()
    REPORT_SUBMIT( 'program_name' ;  <'job_name'> ; <'job_number'>; <'newmode'>) causes the specified program to be executed. Use the optional arguments, job name and job number, if you wish the program to run in the background. If you set the argument 'newmode', the results are displayed in a new window.
    Hope this will helps you.
    Regards,
    Sunitha.

  • Crystal Report XI: Can you write your query in SQL instead of using the GUI

    Hello
      In crystal report version XI, can you write your query in sqlplus and then use the crystal report designer to build your report instead of using the GUI . I would like to be able to go database and show sql query and open that query and make changes directly there, is that possible on this version, if yes is there a setting somewhere? Please let me know.
    Thank you
    alpha

    Moved to Database forum.
    No you can no longer modify the SQL directly. Use a Command Object to enter the SQL directly.
    Thank you
    Don

  • Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.

    OK, so I'm clearly a newb. I thought if I asked a question, it would post, and now I'm being told to post a comment, so I'm asking the same question again. Sorry I sound like an idiot. I'm new to this apple/mac stuff.
    Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.

    If you have added the ringtone file correctly to iTunes, it will appear under iTunes 'Tones' library.
    If you don't find Tones library in iTunes, go to iTunes menu EDIT/PRFERENCES under GENERAL tab, check the Tones Box under Library source to display Tones library in iTunes.
    iTunes accepts only m4r file as ringtone and has to be less than 40secs.

  • How can I use the Time Machine Backups from my Old Computer?

    I have two months of Time Machine backups made using my old Macintosh computer which died and I no longer have. I have now purchased a new computer and am trying to use the Time Machine back ups from the original computer, but it will not recognise them. How can I get my new MacBook Pro to use the Time Machine Backups from my old Computer? I phoned the Apple help line and they said I cannot use them and would have to delete them. This sounds crazy if you can only use the Time Machine back up file with one computer and have to delete it when you buy a new Mac. Surely there must be some way to transfer ownership (not files) from an old to the new Mac?
    Thanks
    Richard

    Thanks Kevin for the suggestion posted on MacOSXHints how to "Repair Time Machine after logic board changes".
    http://www.macosxhints.com/article.php?story=20080128003716101
    It seems as though I am not alone with my frustration with the way Time Machine uses the MAC address of a computer to tell one system from another. This means that if you have your Mac repaired with a new logic board, or replace your system with a new one, you can't resume backups where you left off. Reading through the readers who used the fix using Terminal, it appears that the fix does not always work. I contacted Apple again, but they were no help. Surely Apple should come out with a solution as more and more people use Time Machine/Time Capsule.
    It is CRAZY that after a change computers or a switch in the computer logic board that you cannot resume your Time Machine back ups.

  • Can I create a custom XMP panel but using the exact same fields from standard XMP panels?

    Hi,
    I am new to XMP and not very technical, so please excuse me if this sounds like a stupid question!
    I have managed to create my own custom panels for Photoshop using the Generic Panel method with my own custom fields and they work fine. However what I need to do now is create a custom panel that uses the exact same fields from some of the standard panels. The reason being is that I have 4 fields that need to be integrated into another non-adobe system (Extensis Portfolio) that recognizes standard XMP fields, but at present these 4 fields are spread across different standard panels and it would be much easier for the user in Photoshop if they were all together on one panel.
    An example field is the "Additional Model Info" field that currently resides on the standard IPTC Extension panel. If I fill in a value in this field on a JPEG then open the the image in Extensis Portfolio, then the field is also filled in in a field called IPTC - Model Info, displaying a key of Iptc4xmpExt:AddlModelInfo.
    Is there a way I can take this standard field and use it on a custom panel, so that it can still be filled in in Photoshop and the value viewed in Extensis Portfolio? Sure I can create a custom panel and create a field called "Additional Model Info" but I can't figure out how to connect it to the corresponding field in Portfolio. I tried changing the  xmp_property name="Iptc4xmpExt:AddlModelInfo" but this just broke the panel.
    Is what I am trying to do possible and if so how and can it be done using the Generic Panel method?
    Many thanks!

    I am trying to do the same thing but with only the IPTC Keywords field. Searching everywhere but no luck.
    Thanks!

  • Is it possible to create a DVD in iDVD without using the themes they provide?

    Is it possible to create a DVD in iDVD without using the themes they provide?

    Hi
    No Menu DVD
    from. Mishmunken
    How to create a DVD in iDVD6 without menu (there are several options)
    1. Easy. Drop your iMovie in the auto-play box in iDVD's Map View, then set your auto-play item (your movie) to loop continuously.
    Disadvantage. The DVD plays until you hit stop on the remote
    2. Still easy. If you don't want your (auto-play) movie to loop, you can create a black theme by replacing the background of a static theme with a black background and no content in the drop-zone (text needs to be black as well).
    Disadvantage. The menu is still there and will play after the movie. You don't see it, but your disc keeps spinning in the player.
    3. Still quite easy but takes more time. Export the iMovie to DV tape, and then re-import using One-Step DVD.
    Disadvantage. One-Step DVD creation has been known to be not 100% reliable.
    4. (My preferred method) Easy enough but needs 3rd party software. Toast lets you burn your iMovie to DVD without menu - just drag the iMovie project to the Toast Window and click burn.
    Disadvantage. you'll need to spend some extra $$ for the software. In Toast, you just drop the iMovie project on the Window and click Burn.
    5. The "hard way". Post-production with myDVDedit (free-ware)
    Tools necessary. myDVDedit ( www.mydvdedit.com )
    • create a disc image of your iDVD project, then double-click to mount it.
    • Extract the VIDEO_TS and AUDIO_TS folders to a location of your choice. select the VIDEO_TS folder and hit Cmd + I to open the Inspector window
    • Set permissions to "read & write" and include all enclosed items; Ignore the warning.
    • Open the VIDEO_TS folder with myDVDedit. You'll find all items enclosed in your DVD in the left hand panel.
    • Select the menu (usually named VTS Menu) and delete it
    • Choose from the menu File > Test with DVD Player to see if your DVD behaves as planned. If it works save and close myDVDedit.
    • Before burning the folders to Video DVD, set permissions back to "read only", then create a disc image burnable with Disc Utility from a VIDEO_TS folder using Laine D. Lee's DVD Imager.
    //lonestar.utsa.edu/llee/applescript/dvdimager.html
    hope this helps!
    From LynnLU USA
    www.mediasoftmac.com/dvd-creator-articles/convert-mov-video-to-dvd-on-mac.html#1 29
    Yours Bengt W

  • How to use the DLLs which created from c++ in Java?

    And How to use the DLLs which created from JNI in C++?

    Huh?
    Are you asking how to do JNI - you should read the tutorial.
    Are you asking how to load it - then use System.loadLibrary()
    Are you asking what to do with the output from javah - put it in a C file and write some code, compile it into a dll.

  • Can you get an iphone 5 at target that uses AT&T or Verizon network and use the Straight Talk plan from Walmart?

    Can you get an iphone 5 at target that uses AT&T or Verizon network and use the Straight Talk plan from Walmart? I don't have AT&T or Verizon network and I don't want to get them but I was just wondering if you can get the iphone 5 that is at target and use it for the straight talk plan. I will be getting the straight talk plan but I would like to do some research on the iphone 5 first for straight talk. At walmart the phone is $544.99 and I think it will be a lot cheaper to buy it at target.
    Thank You!

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

  • I have a macbook white (Snow leopard), just started using mac, Is there anyway we can use the Iphone Apps( downloaded from ITune) on Mac

    I have a macbook white (Snow leopard), just started using mac, Is there anyway we can use the Iphone Apps( downloaded from ITune) on Mac, they are getting saved in Mobile applications and have ipa extension

    The operating systems for iOS devices and for Macs are completely different. Applications written for iOS won't run on a Mac no matter what fiddles you try with it. You can sometime extract data by opening the package, but it still won't do you any good. Look in the Mac App Store in your Applications folder to see if there are Mac versions or similar programs (iTunes login required).

  • Since I've updated to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.

    Since I've updated from iOS 5 to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.
    This is working fine for albums but are broken for audio books.
    The back button refers always to the first chapter of the audio book (very annoying if you are in the middle of an audio book) and the nex button goes one level higher back to the selection of the audio book itself.
    In iOS 5.0 it was still possible to navigate throught the audio book chapters using these buttons.
    This still happens in iOS 6.1.
    Is this a known bug?
    Does any solution exist?
    Thx,
    Oliver

    To gdgmacguy your a f****** idiot for one I'm having the same problem as pennymar. And you tell me to quit whinning. You got more problems then the iOS 6 you did not answer my question nor the other 13 or whatever you replied to within a 30 min time frame. You must got nothing better to do then to harass people and to pretend you know something about apple products. Which you don't from what I've read the other advices you should have gave to other people. But you didn't you replied a question back to the people asking a question. So if your not gonna use these community forums the right way don't use them at all.

  • I purchase Lightroom 6 upgrade and during installation the product won't download using the serial number provided. It then asks for serial number of previous installation (lightroom5) but does not recognise it once inserted. Please help!

    i purchase Lightroom 6 upgrade and during installation the product won't download using the serial number provided. It then asks for serial number of previous installation (lightroom5) but does not recognise it once inserted. Please help!

    Yes, I have a TLP license, so which kind of upgrade should I buy?
    I'm an Italian user and I would prefer to contact support by web chat but I can't find it in the website, please can you help me? Thank you, I'm desperate!

Maybe you are looking for