Program is not working

friends, need help once again.
i have created one structre which is based on table pa0000 and pa0001. where pernr is primary key on both table. i have seen both table data and there is more then 5000 records for same key. my datasource ias based on this structre and program but when i am checking in bw it is fetch only one recortd. please check my below code and suggest me where i am worng
code -
Tables: pa0000,
pa0001,
ztest12.
Data: begin of itab_pa0000 occurs 0.
include structure ztest12.
Data : end of itab_pa0000.
Data tab type i.
*<query_head>
select * from pa0000 into corresponding fields of table itab_pa0000.
Select * from pa0001 into corresponding fields of table itab_pa0000 where pernr = itab_pa0000-pernr.
append itab_pa0000.
Loop at itab_pa0000.
move-corresponding itab_pa0000 to ztest12.
*<query_body>.
endloop.
please let me know if yopu need any more information
regards

I think the below should work...
empl no begda endda
1277 01.01.1994 31.03.1998
1277 01.04.1998 31.12.9999
table pa0001
1277 01.01.1994 31.12.1996
1277 01.01.1997 31.12.9999
so my datasource shld fetch entries in following way
1277 01.01.1994 31.12.1996
1277 01.01.1997 31.03.1998
1277 01.04.1998 31.12.9999
XXX----
Tables: pa0000,
pa0001,
ztest12.
data: itab_pa0000 like ztest12 occurs 0 with header line,
itab_pa0001 like ztest12 occurs 0 with header line,
itab_final like ztest12 occurs 0 with header line.
Data tab type i.
*<query_head>
select * into corresponding fields of table itab_pa0000
from pa000.
select * into corresponding fields of table itab_pa0001
from pa0001.
loop at itab_pa0000.
clear: itab_pa0001, itab_final.
loop at itab_pa0001 where pernr = itab_pa0000-pernr
and begda = itab_pa0000-begda.
  if itab_pa0000-endda > itab_pa0001-endda.
     move-corresponding itab_pa0001 to itab_final.
  else.
    move-corresponding itab_pa0000 to itab_final.
  endif.
  delete itab_pa0001.
  exit.
endloop.
if sy-subrc ne 0.
   move-corresponding itab_pa0000 to itab_final.
endif.
append itab_final.
endloop.
loop at itab_pa0001.
move-corresponding itab_pa0001 to itab_final.
append itab_final.
endloop.
Loop at itab_final.
move-corresponding itab_final to ztest12.
*<query_body>.
endloop.
Regards
Anurag

Similar Messages

  • TS1702 Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a

    Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a blur.

    Do you have a question? This is a user to user help forum. Apple is not here only other users like yourself. You don't report problems to Apple here.
    By the way, it might help if you indicated where you are located.
    To complain to Apple use http://www.apple.com/feedback/ipad.html

  • I installed mountain lion os on my mac book pro and now Word for Mac and my Fluenz Spanish programs do not work. How can I go back to my original OS? Thanks

    I installed Mountain Lion OS on my Mac Book Pro and now WORD for Mac and Fluenz Spanish program do not work. How do I reinstall original OS and scrap ML?
    Thanks

    My previous answer still stands: Restore from your backup taken before you upgaded to Mountain Lion. For example, a Time Machine backup, a Carbon Copy Cloner clone, or a commercial backup service. Not the disk that came with your computer (which is how I read "OS back up disk").
    If you reinstall the original OS from the disk that came with your computer, it will wipe out everything on your computer. (The installer won't install an older OS over a newer one, so you'll have to wipe the disk first.) Then you'll need to restore your data from your backup and reinstall applications like Word.

  • I just signed up for a subscription to adobe reader paying EUR 24.40. The program does not work, and I can not even go to my personal page .... help ...?

    I just signed up for a subscription to adobe reader paying EUR 24.40.
    The program does not work, and I can not even go to my personal page .... help ...?

    Adobe Reader is free; it does not require a subscription.
    Did you subscribe to an online service like ExportPDF, PDF Pack, ...?
    What exactly does "not work" mean?

  • JSObject programming was not working when compiled in JSDK1.4.2_06

    JSObject programming was not working when compiled in JSDK1.4.2_06.
    But problem solved when i compiled with JSDK1.3.1_15 and tested with JVM 1.3.1_15.
    Still I could not run the class file generated in JSDK1.3.1_15 in JVM 1.4.2_06.
    What do you think happened across the SDK versions? Shouldn't the JSObject
    and other classes be part of the browser JVM.
    I want to know whether JSObject supports in JSDK1.4.2_06.
    It goes into the loop. It neither say error nor execute.

    Do not spam the site by posting to 4 forums

  • The installation program is not working so I can't install anything. What do I do?

    The installation program is not working, it won't start and I have to quit by forcem so I can't install anything. What do I do?

    Hi Caroline,
    http://reviews.cnet.com/8301-13727_7-20087723-263/how-to-run-the-password-reset- utility-in-os-x-10.7-lion/
    http://osxdaily.com/2011/09/19/change-password-mac-os-x-10-7-lion-without-knowin g-current-password/

  • I just upgraded to OS 10.8.4 last night and my Office 2011 programs will not work.

    I just upgraded my MacBook Pro (early 2011) to OS 10.8.4 last night and my Office for Mac 2011 programs will not work. To test in safe mode, I shut down my computer, restarted in safe mode to see if I could open any of my word or excel documents, which I was able to do.  I restarted, and tried opening an office document (word and excel), which did not work.  Does anyone have a solution to this?  I cannot revert back to OS 10.8.3 because I did not use Time Machine.  Any help will be appreciated.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; } | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}' | open -f -a TextEdit 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Hello Since yesterday evening. My itunse program does not work my mobile. Note  I update the program to ios7 Please help me Thank you

    hi
    Hello
    Since yesterday evening. My itunse program does not work my mobile.
    Note
    I update the program to ios7
    Please help me
    Thank you

    I found this strange glitch that wouldn't let me open my iTunes Store. I tried all the reset options and still iTunes would close a second after it opened. I fixed this. Instead of using the iTunes Store icon on your home page to open it. Go into music and click on store. It will say "Cannot Connect To Store". Just tap ok. Then tap on "featured" on the bottom of the screen. That will take you to the store front page. After that is loaded. Back out and the icon for iTunes Store on the home page should work just fine. Hope that helps.

  • I purchased a program on Mac App store and the program does not act as it should,  also was required to pay up front whereas had I went to the web site, ibank 4 I would have had 30 days free trial an would have found that the program does not work.?

    I purchased a program on Mac App store and the program does not act as it should,  also was required to pay up front whereas had I went to the web site, ibank 4 I would have had 30 days free trial an would have found that the program does not work.?

    Free trials are not available through the Mac App Store.
    Apple is not here. Apple does not answer questions here. This is a user to user support forum. There are only folks here who use Apple products.

  • Accidentally copied microsoft word icon  to desk top.   Now program will not work. Error message says cannot be opened because of problem. How do I re-install ?

    Accidentally copied microsoft word icon  to desk top.   Now program will not work. Error message says cannot be opened because of problem. How do I re-install ?

    Drag the Word icon back to where it belongs.
    Applications > Microsoft Office 2011 > Put Word there.
    I'm assuming you have Office 2011. If you have 2008 there should be a similar location to put Word.

  • Now a few of programs does not work with mountian lion. what to do?

    now a few of programs does not work with mountian lion. what to do?

    espons printer/scanner, toast titanum 5.2.1, intuos 4 wacom, appleworks, already updated ms office & order the upgrade for reunion which I hope it will work. 
    thank you mr michael allbritton for your help!

  • Elements 13 crashes - Windows message - this program is not working correctly - windows will close it.

    I bought Elements 13 4 days ago through Amazon - so far it has not run for more than 5 minutes before Windows closes it down with the message - this program is not working correctly, windows will close it. I know this is not unusual but has anyone got a solution - apart from returning  it
    with a very unfavourable review? I have tried all the suggested fixes on the Adobe help site with no result.  Elements 10 runs OK on the same machine.
    Alternatively, is there any possible way to get support from Adobe?

    juliana
    Do you have any version of Premiere Elements 13 or only Photoshop Elements 13 which comes with Elements Organizer 13?
    Let us look at the following for Elements Organizer 13....
    1. Deletion of disabling the Elements Organizer 13 setting file which is named psa.prf. In Windows 7, 8, o 8.1 64 bit, it is found in the
    path
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Elements Organizer
    13.0
    Organizer
    and in the Organizer Folder is the psa.prf file that you delete or disable by renaming it from psa.prf to psa.prfOLD.
    2. If the above gains you successful entry into the Elements Organizer 13, then you can
    a. create a new catalog
    and/or
    b. repair or optimize the current one
    See Elements Organizer 13/File Menu/Manage Catalogs/Catalog Manager.
    3. There are times that certain formats will bring the Elements Organizer down when you try to import those formats into
    it.  But, from what you wrote, your current problems do not sound media related.
    3. At your earliest opportunity, please update Elements Organizer 13 to 13.1 using its Help Menu/Updates.
    Please review and consider and then let us know the outcome.
    Thank you.
    ATR

  • My program does not work properly. I run the program but it is not capable of adding any of my ebooks and when I connect my ereader, it recognises the device but  it does not add any ebook either.  I uninstalled the program and reinstalled again but nothi

    my program does not work properly. I run the program but it is not capable of adding any of my ebooks and when I connect my ereader, it recognises the device but  it does not add any ebook either.
    I uninstalled the program and reinstalled again but nothing gone better-
    What should I do?
    Best regards

    Do you have Logitech gaming software installed on the PC? If so, perhaps try the suggestion from the following post:
    Re: Everytime I close Itunes it loads back up

  • Some of my programs are not working on Yosemite, how can I get mavericks back?

    Hello,
    I have upgraded to Yosemite, however some of my programs will not work. Is there any way that I can go back to the older Mac Os x?
    -J

    I would suggest you to post the query on Apple forums.
    You may also refer
    How can I uninstall OS X Yosemite and return to... | Apple Support Communities
    Is there any error message while you are trying to use Adobe products?

  • I have an iMac from 2009 updated all my OS programs even purchased Snow Leopard. Tried to import pictures from my iPad mini and found out my iPhoto program is not working.  Can I get a replacement

    I have a 24 inch 2.93GHz Intel Core 2 duo,purchased April 2009.  I tried to import my photos from my iPad mini and found out that my iPhoto program was not working correctly.
    Is there a way that I can get an updated version of iPhoto.
    Thanks
    <Email Edited by Host>

    What does "not working correctly" actually mean?
    What version of the OS do you have?
    v8.1.2 is the latest version of iPhoto 09. Upgrading beyond that requires a purchase.

  • The ADOBE conversion program is not working.

    The ADOBE conversion program is not working, and I purchased a new computer.  How do I transfer it?

    You do not neet to transfer anything to your new computer.
    Only thing you need to do is to download Adobe Reader XI from www.adobe.com if you use our service via Reader rather than web ui  at https://cloud.acrobat.com(login (log in with your Adobe ID and password).
    Please let me know if you cannot login to the above site.
    Thank you.
    Hisami

Maybe you are looking for

  • XI Message - Normalized to RFC-XML format

    In a follow up to this posting: Re: How can the payload of a XI message be normalized to the RFC-XMLuFF1F Can someone tell me what the proceedure is to install/use the rfcnormalizer.jar file? Thanks so much, John

  • FNDWRR hang for internet explorer 8

    Hi, My system is EBS 11.5.10.2 . Recently we have upgraded our clients to java 1.6.0.23 from jinitiator and internet explorer 8 from explorer 6. After these upgrades we have encountered a issue. By using explorer 8 we could not open huge text reports

  • I have the combo pack Photoshop and Premiere 10 with the multi DVD's and I have Windows 7 Ultimate 6

    I have the comb pack Photoshop 10 and Premiere 10 with multi DVD's labeled 1 of 5 throu 5 of 5 . I have Windows 7 Ultimate and I'm just confused do I start with 1 of 5 then go to 2 of 5 and the fallow it up with 4 of 5 and 5 of 5 ?????? I think I los

  • Tunnel mode: indexing with a case structure

    Hello, I have a code like the one  attached to this message. I have a case structure in a while loop, and I would like to transfere some data from my case structure to outside the while loop in indexing mode tunnel. This is to accumulate results (or

  • My dock is not smooth when it hides and unhides

    I noticed that when I have many icons in the dock, it's real chunky when I move the mouse over it. Is there any fix to that? When I first installed 10.4, the dock moved really smooth- now it's not- could this be because I have too many icons?