URGENT!!! Extraction by FM is  not working after entering No_MORE_DATA

Hi Experts,
We are trying to extract data from a custom table and look up cdhdr and cdpos table for change log for recrods in that custom table. I created a generic datasource with an abaper who defined a self defined FM below which is a copy of the RSAX_BIW_GET_DATA_SIMPLE and added code to it as necessary to meet the requirements above. It was extracting data fine but the job in ECC was hanging forever and bringing down the server. Then we added the code for  RAISE NO_MORE_DATA. Now it is not extracting any data at all. Please help as this is really urgent. Following is the code. pleae tell me what i am doing wrong.
Thanks in advance.
FUNCTION zrsax_get_cd_data .
""Local Interface:
*"  IMPORTING
*"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
*"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*"  TABLES
*"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*"      E_T_DATA STRUCTURE  ZDIRUPDTE OPTIONAL
*"  EXCEPTIONS
*"      NO_MORE_DATA
*"      ERROR_PASSED_TO_MESS_HANDLER
DataSource tables
  TABLES: zdirupdte.
Auxiliary Selection criteria structure
  DATA: l_s_select TYPE srsc_s_select.
Maximum number of lines for DB table
  STATICS: s_s_if TYPE srsc_s_if_simple,
counter
          s_counter_datapakid LIKE sy-tabix,
cursor
          s_cursor TYPE cursor.
  IF i_initflag = sbiwa_c_flag_on.
Initialization: check input parameters
                buffer input parameters
                prepare data selection
Check DataSource validity
    CASE i_dsource.
      WHEN 'Z_DE2110_DIRUPDATE'.
      WHEN OTHERS.
        IF 1 = 2. MESSAGE e009(r3). ENDIF.
this is a typical log call. Please write every error message like this
        log_write 'E'                  "message type
                  'R3'                 "message class
                  '009'                "message number
                  i_dsource   "message variable 1
                  ' '.                 "message variable 2
        RAISE error_passed_to_mess_handler.
    ENDCASE.
    APPEND LINES OF i_t_select TO s_s_if-t_select.
Fill parameter buffer for data extraction calls
    s_s_if-requnr    = i_requnr.
    s_s_if-dsource = i_dsource.
    s_s_if-maxsize   = i_maxsize.
    APPEND LINES OF i_t_fields TO s_s_if-t_fields.
  ELSE.                 "Initialization mode or data extraction ?
Select: Retrieve all rcords from Custom table, then get CD data.
      IF sy-subrc = 0.
        LOOP AT payrl_itab.  " 1st loop to populate e_t_data with updatd values from custom table.
Add reoord from cusom table. Update with CD header info.
          s_counter = s_counter + 1.
          MOVE s_counter TO e_t_data-unq_rec_id. "Make record unique
          MOVE-CORRESPONDING payrl_itab TO e_t_data.
          PERFORM concatenate_key. " key for cdpos_UID
          PERFORM select_cd_data.  " select CDHDR/CDPOS data
          PERFORM get_header_data.
          MOVE-CORRESPONDING hdr_itab TO e_t_data.
          APPEND e_t_data.
Add same record to datapacket but with old actv/civ type value from CD table.
          s_counter = s_counter + 1.
          MOVE s_counter TO e_t_data-unq_rec_id.
          MOVE-CORRESPONDING payrl_itab TO e_t_data.
          MOVE-CORRESPONDING hdr_itab TO e_t_data.
          LOOP AT cdpos_itab.
            CASE cdpos_itab-fname.
              WHEN 'ACTV_TYP'.
                MOVE cdpos_itab-value_old TO e_t_data-actv_typ.
              WHEN 'CIV_TYP'.
                MOVE cdpos_itab-value_old TO e_t_data-civ_typ.
              WHEN OTHERS. " Only need ACTV & CIV Types for 1.2.
            ENDCASE.
          ENDLOOP.
          APPEND e_t_data.
          CLEAR: hdr_itab[], cdpos_itab[], cdhdr_itab[].
        ENDLOOP.
      ELSE.
        MESSAGE e185.
      ENDIF.                             "First data package
    ENDIF.
    s_counter_datapakid = s_counter_datapakid + 1.
    RAISE NO_MORE_DATA.
  ENDIF.              "Initialization mode or data extraction ?
ENDFUNCTION.

Hi,
Where is the first select statement - that is select statement on the custom table ?
You should open cursor on this table and subsequently fetch package by package.
After each fetch you will check whether any data is retrieved and raise the exception no more data
something like
      OPEN CURSOR WITH HOLD s_cursor_doc FOR
      SELECT docnr FROM xxxxxx
      WHERE racct BETWEEN '0000200000' AND '0000200999'
      AND   cpudt IN xxxxxx.
    ENDIF.                             "First data package ?
**fetching required PCA documents into ranges table
    FETCH NEXT CURSOR s_cursor_doc
                INTO TABLE itab_docnr
                PACKAGE SIZE s_s_if-maxsize.
    IF sy-subrc NE 0.
      CLOSE CURSOR s_cursor_doc.
      RAISE no_more_data.
    ENDIF.

Similar Messages

  • I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear and the setup menu says there is an error. Any idea of what is happening?

    I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear from the menu and the setup menu says there is an error. I tried using the wireless connection, and also the cable, but none worked. Any idea of what could be happening?

    What are you setting it up as.. join wireless network .. the very worst setup, it will disappear.. reboot the whole network in order modem. router TC.. clients and it will likely reappear.
    Tell us what network setup you are using..
    If you setup with cable to a computer completely isolated from the network with TC also isolated.. finish the setup of everything you want. .before update.. then plug it into the network. .then restart everything in correct order.. it will work most of the time.

  • Internet not working after installing "StarTech Thunderbolt Docking Station" driver

    My Internet is not working after installing "StarTech Thunderbolt Docking Station" driver although "Ethernet" and "wireless" say they're connected, still there is no internet.
    I have bought a "StarTech Thunderbolt Docking Station" as I need to use 2 thunderbolt based pieces of equipment on my "MacBook Pro"; which are a 2nd monitor as well as a Thunderbolt driven Audio Interface.
    When I first plugged all my equipment to the "StarTech Thunderbolt Docking Station" everything was working fine, all pieces of equipment worked as well as Ethernet from both the computer and the docking station were working perfectly.
    However, when I inserted the "StarTech Thunderbolt Docking Station driver CD" and installed the drivers, the internet on my computer has stopped working. Although the Ethernet says it is "connected" (same goes for "Thunderbolt Ethernet" when cable is connected to it) still the internet does not work. Even my wireless internet is not working anymore. Furthermore, also after installing the Docking Station drivers, my iTunes is crashing whenever started.
    Please help, this is really urgent.
    I've been looking for answers all around but can't seem to find any.
    I'm using OSX Mavericks 10.9.2
    I've tried fixing stuff with Network preferences, like changing IP address, renewing DHCP leace.
    I also tried typing IP address, Subnet Mask, Router and DNS Sever manually... Nothing seems to be working.
    Note: I know someone could suggest to "uninstall" the Thunderbolt Station driver, however, I can't find an "uninstallation file", even the CD that came with the docking station does not have it.

    I had exactly the same problem today, and I was lucky enough to solve it.
    Here's what helped me:
    First, I found a hint to Suspicious Package in this thread.
    With Suspicious Package installed, I was able to identify the script in StarTech's installer pkg. It' called "postflight".
    Amongst other things, postflight runs this command:
    sudo mv usr/share/sandbox/mDNSResponder.sb usr/share/sandbox/_mDNSResponder.sb
    A quick check in Apple's knowledge base revealed, that the mDNSResponder is essential to use DNS (i.e. to resolve server names like www.apple.com) and bonjour.
    I moved th mDNSResponder back to where it belongs:
    sudo mv usr/share/sandbox/_mDNSResponder.sb usr/share/sandbox/mDNSResponder.sb
    After a reboot, everything worked fine again.
    I have no idea, why StarTeck disables an essential tool. Let's assume it's an error ...
    But after this experience, I didn't want the StarTech ethernet driver on my machine (I had installed it just for curiosity, anyway - yes, I know, I shouldn't have ...), so I removed the kext the installer had copied to my system:
    sudo mv /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleIntel8 2580.kext /Users/myusername
    (You see I didn't delete the kext directly, I just moved it away and tried another reboot. Now everything works fine, so I'm going to delete the kext entirely and paint a big red cross on StarTech's installer disk.
    Hope this helps.

  • Autocomplete does not work after adding controller to LOV

    Hi experts ,
    Autocomplete does not work after adding controller to LOV Region, i have checked the fnd_compatialbe mode it is fine.validation proprty is also false, stilll it is not working.
    can anyone help me its very urgent
    regards
    vamsi

    Hi Tapash,
    This resolved the problem. Many thanks for your help with this it has been driving me mad for the last few days.
    I could not understand why the standard Apps LOV regions had controller's attached to them and the autocomplete would function but with my pages it would not.
    I actually raised a TAR about this and got nothing back so have updated it with the resolution.
    Thanks again.
    Regards,
    David

  • Tecra M7: Tablet does not work after lid closing

    Has anyone had problems with the tablet not working after closing the lid on a Tecra M7? Bios is 3.20
    Doesn't seem to happen on hibernate or sleep.
    I have the lid set to do nothing on close.

    Hi
    What do you mean with tablet not working after closing the lid?
    Does the notebook freezes or what?? What happens exactly???
    The close the lid settings can be set to hibernation mode or standby mode or no action.
    These settings can be set in the power saver setup actions.
    If you have some problems with some installed Toshiba applications I would recommend reinstalling the TOSHIBA Common Modules and the program which doesnt run correctly!
    Best regards

  • My new iPad sound is not working after updating to ios 6.1

    My new iPad sound not working after updating to ios 6.1. Headphones are working fine. I tried all the troubleshoot. can anyone know the answer, plz share with me

    Hi,
    I have exactly the same issue as everyone above. I only get sound through the slider on the ringtone in settings and through my headphones. I do not get any sound anywhere else at all.
    I Have tried:
    - Updating to iOS 6.1.3
    -re starting the device
    -checking that the device is not muted. My slider switch is set to mute rather than lock and is unmuted.
    -going into general settings and reset all settings
    -the device reset several times (waiting until I saw the all important apple logo)
    -removing the last few apps I installed.
    Nothing at all has worked, please help!
    New iPadiPad

  • IPhone 5s not working after voice over turned on

    iPhone 5s not working after voice over turned on

    Hello ss1997,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue where your iPhone will not boot past the Apple logo please follow the steps in the article below.
    iOS: Not responding or does not turn on
    Take care,
    Alex H.

  • Iphone 4 personal Hotspot not working after update to IOS 7.1 India BSNL cellular

    Iphone 4 personal Hotspot not working after update to IOS 7.1 India BSNL cellular

    BSNL is not a supported carrier. Personal Hotspot requires carrier support and provisioning of the account to enable it. iOS 7.1 disabled the ability to manually configure Personal Hotspot on unsupported carriers.

  • Iphone 4 Home button not working after upgrade to OS 4.3.5

    Iphone 4 Home button not working after upgrade to OS 4.3.5.Please help!!!!!!!!

    It seems that settings of mail accounts have something to do with it. I've delete my gmail account and am now using Microsoft Exchange. It seems better, yet not perfect. The issue is definitely due to OS 4.3.1
    Apple answer is - no answer. It is a shame that the quality of their products, in terms of design and concept, is not match by a care for customers. It is not normal that I, as a customer, have to spend hours reading Apple Discussions forum to try to understand what the problem is. A little more respect for a customer that spend big $$$ buying their products wouldn't hurt.

  • IPhone 4s Voice mail notification not working after switching from Verizon to PagePlus.

    iPhone 4s Voice mail notification not working after switching from Verizon to PagePlus.  How can I get the notifications working?

    Contact your carrier - voicemail, and visual voicemail, is a carrier feature.

  • Iphone 5 back camara not working after ios update

    My Iphone 5 back camara is not working after ios 8.1 update this morning
    Only getting some fuzzy image.
    Camara was working before the update.
    Resting the phone to factory setting restoring phone nothing seems to work
    I think this will be my last Iphone as apple never respondse in any case

    If you're expecting Apple to respond on this forum, you will have a long wait. This is a user-to-user technical support forum that is only hosted by Apple. This was made clear when you signed up. In any case, try the steps in this article to troubleshoot hardware issues (there is a camera section):
    iPhone: Hardware troubleshooting

  • Iphone 6 plus facetime camera not working after 8.1 upgrade

    iphone 6 plus facetime camera not working after ios 8.1 upgrade, also while making calls the voice on the other side sounds distant. Any pointers.

    It seems the facetime camera does not work for whatsapp only it works normally.

  • Caller Id not working after update

    My caller id pictures are not working after the update.

    Still having the same problem.  It appears to be a problem with City ID.  Local Verizon office told me it could be uninstalled.  I can't seem to find out how to uninstall an application that has the uninstall button "greyed out".  After forcing stop the application, it turns itself back on after every call.  When that happens I lose the city the call is coming from, but I still get the number showing.  Other times I don't receive anything.  I NEVER know who's calling me and it's getting annoying. Hell, with AT&T, I knew who was calling me....just couldn't stay connected.  Now if I miss a call..I don't have any clue as to  who to call back.
    Get this City ID crap app off my phone....that's all I want...it's not too much to ask....please...!

  • Caller id not working after syncing my iphone to my pc?

    caller id not working after syncing my iphone to my pc?

    Syncing with iTunes has nothing to do with this, especially when not syncing contacts with a supported address book app on your computer which very few Windows users seem to be inclined to do.
    Caller ID is not working in which way?

  • ODI Procedures not working after upgrading from 10G to 11G

    Hello Gurus,
    We have run into a scenario where the procedures in ODI are not working after we upgraded it from 10G to 11G (11.1.1.6). However we can make it to run if we create the procedure from scratch.
    Also we are having issues related to packages where in the packages were running before we applied the patch 11.1.1.6.3. And after applying the patches they are not running.
    Any help will be appreciated.
    Thanks

    If you want someone to help you, please be elaborate in the exact errors you are getting.
    A general statement would do nothing but guess work.
    What is the error that you get while executing the procedure.
    What are the exact issues that you get while executing packages ?

Maybe you are looking for

  • Intel 9965 Device cannot start (Code 10) fix

    I just wanted to report my experience upgrading from Vista Basic to XP Pro on my new T61. The laptop came with Vista, I upgraded to XP Professional Service Pack 3.  Everything worked with the Lenovo downloadable drivers except the sound card, which w

  • Hyperlink in Pages

    How can I insert a hyperlink in new Pages? Thanks a lot!

  • Is E52 a good phone?

    Hi I see a good price in the nokia E52 and I wish guys to tell me is it a good phone to use and is there any kind of factory defect in software and Bluetooth and wlan please tell me every thing about this phone even if the problem is small tell me pl

  • Why does Firefox require a Plug In for Windows Media 11 and it doesn't exist for Windows 7 Ultimate 64 Bit

    I wanted to listen to an Internet Radio Station and every time I clicked the listen now button on that site, Firefox tells me a Plug In is required for Window Media Player 11 so I follow the link to be told it is a manual download. When I get to the

  • Why will Elements 10 not write Catlog larger than 1 DVD?

    Small Catalogues were OK but once exceeds one DVD size fails on second DVD asking fro update to DVD driver - there isn't one, and of course the DVD works perfectly well with all other programs. W7 64 bit 16Gb RAM i5 All thoughts appreciated.