Problem placing an extraction hint

Hi,
I have a mapping that first uses a join between four tables, and then does nineteen lookups. This generates an SQL with an execution plan that is not optimal, and I need to place a hint at the top of the generated query. As far as I can tell Im not able to do that using OWB 9.2?
Consider a simple example using a join between two tables, and a single lookup. The generated sql is
select SOME_COLUMNS
from key_lookup_tab,
(select SOME_COLUMNS from table1) ingrp1,
(select SOME_COLUMNS from table2) ingrp2
where ingrp1.key = ingrp2.key
and ingrp1.another_key = key_lookup_tab.key (+)
What I want to do in this case is to insert a hint, eg
select /*+ NO_PUSH_PRED */ SOME_COLUMNS
from key_lookup_tab,
(select SOME_COLUMNS from table1) ingrp1,
(select SOME_COLUMNS from table2) ingrp2
where ingrp1.key = ingrp2.key
and ingrp1.another_key = key_lookup_tab.key (+)
How can I get this result? Configuring the mapping I can set extraction hints for table1 and table2, but that would only result in
select SOME_COLUMNS
from key_lookup_tab,
(select /*+ NO_PUSH_PRED */ SOME_VALUES from table1) ingrp1,
(select SOME_VALUES from table2) ingrp2
where ingrp1.key = ingrp2.key
and ingrp1.another_key = key_lookup_tab.key
Which does not work. And the Key_Lookup_tab does not allow the insertion of a hint in configure. Is there any way to get around this?
Regards,
Roald

Thanks for the quick response!
The workaround you suggest should work, but for the time being I think I'll just add the hint manually in the generated PLSQL code. (The mapping in question is only used for initial loading, and is fairly static)
Nice to see that this is getting fixed. We already have a few mappings containing joins with 20+ ingroups (from previous releases of OWB when key lookups were not available), and I don't think they are very easy to maintain. Large join conditions leave to much room for errors, which can be hard to spot.
Regards,
Roald

Similar Messages

  • CS4 Master Collection - Problem occurred while extracting...

    After spending $1,500 and two days of RL time downloading the CS4 Master Collection twice, I am just a tad frustrated.
    Each time I download the CS4 suite file and try to install it, I immediately get the error:
    "A problem occurred while extracting the archive. Please try downloading the Adobe CS4 Master Collection again."
    No. I refuse to spend another full day downloading this file yet again just to receive the same error.
    Anyone have some insight into this problem? (more so than "turn off your anti-virus program"
    Thanks in advance.

    I am having the same problem. I found a forum that suggested this. Apparently it worked for some people, but not for me. Let me know if it does:
    1. Start -> All Programs -> Accessories
    2. Right-click on Command Prompt and select "Run as..."
    3. Run as Administrator (even if you are logged in as Admin. You need to run in the Black Command Prompt, not the White one)
    4. Run: regsvr32 JScript.DLL
    5. Then run: regsvr32 vbscript.DLL
    (dont forget the spaces, or it won't work)
    6. Then try running the set up again
    As i said, it worked for some on the forum, but not others (like me). Try it and see if works for you

  • Error Message downloading CS5: A problem occurred while extracting the archive..

    After dowloading the CS5 Design Premium, I get an error messagin stating "A problem occurred while extracting the archive. Please try downloading the Adobe CS5 Design Premium again." I repeated this process multiple times to no avail. I am trying to download the CS5 design premium on my new laptop, but don't have the software cds to do this. Thus, I can only download the software but after i download the two files required, that error message appears. (I already have my serial number).

    Hi nickgtr,
    Please try disabling your Antivirus as sometimes it detects the files as virus and removes them while downloading. You can also try downloading after performing Selective Startup.
    Please let us know if it helps.
    Regards,
    Abhijit

  • Problem with PDF extract in a report

    Hi guys,
    We are facing a peculiar problem with PDF extract in a report. When we run a report and export PDF , all the records in the result set are populated in the PDF. however, if I navigate away from the report and return back to the same report, and click on export pdf (with the result set already populated) i get a blank PDF document without any records. If i run the report again and then export the PDF it works fine.
    Export excel works fine for all cases.
    I am assuming it has got something to do with the way the system handles the cache for PDF export.
    I also found that this occurs only when we have a value list filter with "none" set as default,and in this case, initially on opening  the report for the first time the query does not get executed automatically.
    Any help on this would be highly appreciated.
    Thanks and Regards,
    immanuel

    Hi Immanuel,
    Have you tried clearing the cache? My guess is, it is probably a defect.
    Regards,
    Vikram

  • Photoshop CS3 extended error on Installation("A Problem occurred while extracting some files....

    Hi guys. I dont know if youve experienced this but I get this error whenever I try to install Photoshop CS3 Extended. The error popup message goes like this:
    "A Problem occurred while extracting some files. Check available space on your computer and the write privileges on the destination folder."
    Any idea? :(
    thanks in advanced.
    Cheers!

    Welcome to the forum.
    where is the file to download it directly?
    With CS3, there might not be one any longer. CS4 has been out for some time. You might need to contact Adobe Customer Service for resolution. I know that they offer replacement media for a small fee, but do not know how far back they go with the versions.
    For me, I always purchase the full discs, and from Adobe, so I have little experience with downloaders and with the downloadable files. Maybe someone else can offer you more direct assistance.
    Good luck,
    Hunt

  • Problem placing buttons on top of a background image

    My knowledge of Java isn't the greatest and I am currently having problems placing buttons on top of a background image within a JApplet (this is also my first encounter with Applets).
    I'm using a Card Layout in order to display a series of different screens upon request.
    The first card is used as a Splash Screen which is displayed for 5 seconds before changing to the Main Menu card.
    When the Main Menu card is called the background image is not shown but the button is.
    While the Applet is running no errors are shown in the console.
    Full source code can be seen below;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
    // First extend JApplet
    public class WOT extends JApplet {
         //--------------- Variables are declared here -----------------
         private CardLayout contentCardLayout = new CardLayout();  // declare CardLayout
         private Container contentContain;     // declare content Container
         private JPanel contentCard, splashScreen, mainMenu, menuImage; // declare content Panels
         private JLabel splash, menu, map; // declare image labels
         private ImageIcon mapBtn; // declare ImageIcons
         private JButton mapOption; // declare option Buttons
         private Timer timer; // declare Timer
         private ActionListener actionListener, mapOptionListener; // declare ActionListener
    //--------------- Initialise Applet -----------------
      public void init() {
         //--------------- Set-up Card Layout -----------------
         contentCard = new JPanel(contentCardLayout); // assign card panels to CardLayout
         //--------------- Splash Screen -----------------
         splashScreen = new JPanel();
         splash = new JLabel(new ImageIcon(getClass().getResource("img/bg.gif")));
         splashScreen.add(splash);
         splashScreen.setSize(600,800);
         splashScreen.setLocation(0,0);
    //--------------- "View Map" Option Button -----------------
         mapBtn = new ImageIcon(getClass().getResource("img/map.gif"));
         mapOption = new JButton(mapBtn);
         mapOption.setBorder(null);
         mapOption.setContentAreaFilled(false);
         mapOption.setSize(150,66);
         mapOption.setLocation(150,450);
         mapOption.setOpaque(false);
         mapOption.setVisible(true);
    //--------------- Main Menu Screen -----------------
         //menuImage = new JPanel(null);
         //menuImage.add(mainMenu);
         //menuImage.setLocation(0,0);
         mainMenu = new JPanel(null);
         menu = new JLabel(new ImageIcon(getClass().getResource("img/menu.gif")));
         menu.setLocation(0,0);
         mainMenu.add(menu);
         //mainMenu.setBackground(Color.WHITE);
         mainMenu.setLocation(0,0);
         mainMenu.setOpaque(false);
         //mainMenu.setSize(150,66);
         mainMenu.add(mapOption);
         //--------------- Map Image Screen -----------------
         map = new JLabel(new ImageIcon(getClass().getResource("img/map.gif")));
         //--------------- Add Cards to CardLayout Panel -----------------
        contentCard.add(splashScreen, "Splash Screen");
         contentCard.add(mainMenu, "Main Menu");
         contentCard.add(map, "Map Image");
    //--------------- Set-up container -----------------
          contentContain = getContentPane(); // set container as content pane
          contentContain.setBackground(Color.WHITE); // set container background colour
           contentContain.setLocation(0,0);
           contentContain.setSize(600,800);
          contentContain.setLayout(new FlowLayout()); // set container layout
           contentContain.add(contentCard);  // cards added
           //--------------- Timer Action Listener -----------------
           actionListener = new ActionListener()
                    public void actionPerformed(ActionEvent actionEvent)
                             //--------------- Show Main Menu Card -----------------
                             contentCardLayout.show(contentCard, "Main Menu");
         //--------------- Map Option Button Action Listener -----------------
           mapOptionListener = new ActionListener()
                    public void actionPerformed(ActionEvent actionEvent)
                             //--------------- Show Main Menu Card -----------------
                             contentCardLayout.show(contentCard, "Map Image");
         //--------------- Timer -----------------               
         timer = new Timer(5000, actionListener);
         timer.start();
         timer.setRepeats(false);
    }Any help would be much appreciated!
    Edited by: bex1984 on May 18, 2008 6:31 AM

    1) When posting here, please use fewer comments. The comments that you have don't help folks who know Java read and understand your program and in fact hinder this ability, which makes it less likely that someone will in fact read your code and help you -- something you definitely don't want to have happen! Instead, strive to make your variable and method names as logical and self-commenting as possible, and use comments judiciously and a bit more sparingly.
    2) Try to use more methods and even classes to "divide and conquer".
    3) To create a panel with a background image that can hold buttons and such, you should create an object that overrides JPanel and has a paintComponent override method within it that draws your image using the graphics object's drawImage(...) method
    For instance:
    an image jpanel:
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.net.URISyntaxException;
    import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class BackgroundImage
        // **** this will have to be changed for your program:
        private static final String IMAGE_PATH = "../../m02/a/images/Forest.jpg";
        private BufferedImage myImage = null;
        private JPanel imagePanel = new JPanel()
            @Override
            protected void paintComponent(Graphics g)
            {   // *** here is where I draw my image
                super.paintComponent(g);  // **** don't forget this!
                if (myImage != null)
                    g.drawImage(myImage, 0, 0, this);
        public BackgroundImage()
            imagePanel.setPreferredSize(new Dimension(600, 450));
            imagePanel.add(new JButton("Foobars Rule!"));
            try
                myImage = createImage(IMAGE_PATH);
            catch (IOException e)
                e.printStackTrace();
            catch (URISyntaxException e)
                e.printStackTrace();
        private BufferedImage createImage(String path) throws IOException,
                URISyntaxException
            URL imageURL = getClass().getResource(path);
            if (imageURL != null)
                return ImageIO.read(new File(imageURL.toURI()));
            else
                return null;
        public JPanel getImagePanel()
            return imagePanel;
    }and an applet that uses it:
    import java.lang.reflect.InvocationTargetException;
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    public class BackgrndImageApplet extends JApplet
        @Override
        public void init()
            try
                SwingUtilities.invokeAndWait(new Runnable()
                    @Override
                    public void run()
                        getContentPane().add(new BackgroundImage().getImagePanel());
            catch (InterruptedException e)
                e.printStackTrace();
            catch (InvocationTargetException e)
                e.printStackTrace();
    }

  • Problem placing Jpeg images

    Hi Group,
    I'm having a problem placing Jpeg images in DW CS3. Some come
    in and display
    themselves just fine. Others come in as what appears to be
    the file name
    displayed as a link, blue text and underlined. Previewed in a
    browser, when
    I click the link the message is:
    The image
    "file:///C:/Users/Bob/Documents/CUT/CSL%20Web/My%20Assets/Sandy-Kirk_Web.jpg"
    cannot be displayed, because it contains errors.
    I've looked at the properties of these different images and
    dont have a clue
    what the problem is.
    Any ideas would be appreciated.
    Bob

    Look at the line you pasted into your reply and note that
    it's a link
    pointing to your hard drive. Of course that will never work
    on the web.
    Such broken links are often the result of an improperly
    defined local site.
    What happens if you remove that image and insert it again,
    then save the
    page? Is the link still broken?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mont54321" <[email protected]> wrote in
    message
    news:fneflb$5jh$[email protected]..
    > Hi Group,
    > I'm having a problem placing Jpeg images in DW CS3. Some
    come in and
    > display
    > themselves just fine. Others come in as what appears to
    be the file name
    > displayed as a link, blue text and underlined. Previewed
    in a browser,
    > when
    > I click the link the message is:
    > The image
    >
    "file:///C:/Users/Bob/Documents/CUT/CSL%20Web/My%20Assets/Sandy-Kirk_Web.jpg"
    > cannot be displayed, because it contains errors.
    > I've looked at the properties of these different images
    and dont have a
    > clue
    > what the problem is.
    > Any ideas would be appreciated.
    > Bob
    >
    >

  • CS5 "a problem occured while extracting some files...."

    I used both Firefox and IE to download the update for CS5. All seemed to successfully download to my desktop where I wanted them. When I double clicked on the .exe file, it began to extract and got to 99% (sometimes 100%) before giving me the error "A problem occured while extracting some files. Check availabile space on your computer and the write privilages on the destination folder."
    I am using Windows XP, I'm the admin so I'm not sure what privilages I need.
    I have 66 G of free space
    *I tried using 7zip to extract the files, did not work.
    *I tried to just get into the folder which was created during the extract and clicked on set-up.exe - it gave me the message "We've encountered the following issues: Installer failed to initialize. File not found. Please download Adobe Support Advisor to detect the problem." including a link to where I can do that. I did that and so far, it is stuck on "please wait while the application initializes." I'm thinking it's not going to happen so I've come here.
    Any ideas would be appreciated!

    First of all, let me correct an incongruency in your post, Mr. Cox: you say it works for "almost everyone" yet also state that it fails "only" for me. These can't both be correct, and of course we all know the latter is clearly incorrect because we can see from this thread that someone else has also had the problem.
    Also, I am not sure that the problem has been attributed with absolute certainty to a "bad download", although I tend to agree that it's the most likely explanation. Has it?
    Now consider this: I posted here for the exact reason that Adobe needs to know this is not a problem with only one computer and one user. I took some time out of my work day because I appreciate Adobe.
    They might want to know that I had the problem on a fresh install on my home computer, one that was only days ago running CS5 from ym first install, which went without a hitch. In solving this, I am happy to post any system information, error logs, checksums, or ANYTHING that Adobe would like to see that would result in the resolution of this problem. As you know I can solve the problem myself because I have the original uncorrupted files here at work. But, really, being as Adobe has decided to use a special download and installation package, which I know can be somewhat quirky from past experience, I think it is Adobe's responsibility to listen to download/installation problems. AND as their customer service has never been anything but exemplary in the past, Mr. Cox, this is exactly why I posted here. Because they do listen.
    What should they do? It seems to me, although I'm no programmer, that in this day and age there is no reason that a download should be completed and still not function. There are solutions aplenty that ensure data is transmitted without error, and I quite frankly do not understand why they have not already used such a solution (if bad download is in fact the problem here). For example, can they not make a downloader that runs a checksum for us, and tells us if we have a bad download, or runs packets through one to make sure that everything is coming in correctly as we download? Can corrupted packets be discarded and redownloaded automatically so that crappy connections still get their software in pristine condition, and nobody has to post or call in about stuff like this?
    That would seem to be a good idea.
    Cheers,
    o.0

  • Problem occured when extracting archive-- student edition

    Hi, I am trying to install the free student version of CS6 Photoshop on Windows 8. I downloaded both files, but when I try to run the executable one, I get the error message "Problem occurred when extracting archive, please redownload". I have downloaded the files twice, and get the same message. Thanks for helping!

    Moving this discussion to the Downloading, Installing, Setting Up forum.
    Noreenw95 where are you downloading Photoshop CS6 from?  Have you tried downloading from Download CS6 products?

  • Problems placing compiled jsp in the right directory

    I have problems placing compiled jsp in the right directory.
              - My document root is weblogic/myserver/public_html
              - My jsp's are placed in weblogic/myserver/public_html/ram/jsp.
              - My folder for placing compiled jsp is in weblogic/myserver/compiled_jsp.
              - When weblogic compiles my jsp it places them in
              weblogic/myserver/compiled_jsp/jsp_servlet/_ram/_jsp
              Now I want to compile ram1.jsp and place it in above directory. I tried the
              following but it does not place class correct.
              1: java weblogic.jspc -d C:\weblogic\myserver\compiled_jsp ram1.jsp
              **** Places the class in weblogic/myserver/compiled_jsp/jsp_servlet
              2: java weblogic.jspc -d
              C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp ram1.jsp
              C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp\jsp_servlet\_ram1.cl
              ass
              What am I doing wrong ?
              cheers Per
              

              I would try this...
              cd public_html
              java weblogic.jspc -prefix compiled_jsp ram/jsp/ram1.jsp
              I'm not sure if -prefix is the exact option - something like that - maybe package_prefix.
              As always, things work better/easier when you leave things at the default value
              (jsp_servlet).
              Mike
              "Per Lovdinger" <[email protected]> wrote:
              >I have problems placing compiled jsp in the right directory.
              >
              >- My document root is weblogic/myserver/public_html
              >- My jsp's are placed in weblogic/myserver/public_html/ram/jsp.
              >- My folder for placing compiled jsp is in weblogic/myserver/compiled_jsp.
              >
              >- When weblogic compiles my jsp it places them in
              >weblogic/myserver/compiled_jsp/jsp_servlet/_ram/_jsp
              >
              >Now I want to compile ram1.jsp and place it in above directory. I tried
              >the
              >following but it does not place class correct.
              >
              >1: java weblogic.jspc -d C:\weblogic\myserver\compiled_jsp ram1.jsp
              >**** Places the class in weblogic/myserver/compiled_jsp/jsp_servlet
              >
              >2: java weblogic.jspc -d
              >C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp ram1.jsp
              >****
              >C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp\jsp_servlet\_ram1.cl
              >ass
              >
              >What am I doing wrong ?
              >
              >cheers Per
              >
              >
              

  • Edge Animate's OAM file problem placed in Muse or other unknown problem??  Please help!

    Hi,
    I need help please.  Did anyone do a whole page animation in Edge Animate and place the OAM file into Muse, and somehow all the menu and social media icon buttons in Muse are blocked by the placed animation?  All my menu buttons, social media icon buttons and a link are not working (blocked by the transparent AN stage).   I can't go to any other pages because of this issue when previewed in browser.  My animation is a slide-open page from center of the page to both right and left side, also text moved up to the top.  All are moved out of the stage once animation finished to show the home page with contents, including menu and social media icon buttons.  Thanks for your help in advance!!
    Thanks,
    mykw123     

    That answers why the two G4's talk normally! I do
    have the TCP/IP settings set up manually.
    Well, if they are already set manually, maybe you should change them to Auto-negotiate. You shouldn't have to use the Manual setting at all. If you so, then someone, usually the people who wrote the driver for the network card, have screwed something up. It then becomes your job to fix it.
    The problems are just very slow document/file
    transfer from either new to old or old to new
    computer over network, which usually is great with
    the two G4's.
    That is probably the problem. You may want to go ahead and setup the new machine with manual settings to match the G4s. Otherwise, even the Internet will be noticeably slower.
    As for Target Disk Mode...so reboot the old G4
    holding the T key and the hard drive should show up
    on the desktop of the new computer?
    That will do it. It is the best and fastest option to transfer large amounts of data. But even target disk mode is kind of slow. A real, external firewire hard drive will be the fastest of all. It is an excellent idea for backups and this kind of thing.

  • Urgent: Problems in Generic Extraction by Function Module

    Hi BW Gurus,
    I am new to SDN and also new to generic extraction using function module. My requirement is to extract long text(142 char) from CRM to BW as the text is not stored in database table I used function module read_text with in another ZXXX function module copy of (RSAX_BIW_GET_DATA_SIMPLE). In my extract structure I used GUID(char,32), Langu, long text(142 char) and 2 placeholders. Text can be extracted by passing STXH table fields(Tdname, Tdid, Tdobject, Tdspars) to read_text as parameters and i also need to use CRMD_ORDERADM_H field GUID(32 char) to compare 1st 32 chars of tdname(70 char) with Guid to select Guids and loop thru this Guids and for each Guid i need to append lines of text to e_t_data but as i donot know ABAP i unable to write the code for this. Through my friends help i wrote code when i check in RSA3 it is displaying the text but when i replicate into BW and load into data target in monitor the status is red with records initially but afterwards it will be red status again with 0 from 0 records for initial load again.when i check on job logs the errors i have are:
    The background job has created a job log file of 2Gb size and it is currently on a infinite loop writing entries into the SAP System Log that it cannot write to the Job log file due to “Error 22 for write/read access to a file” this is because of the datasource i have created. Please find my Function module and if anyone would please correct FM and send me that will be really great.I appreciate it in advance.
    MY Function Module is:
    FUNCTION Z_CRMORDERH_STR_TXT.
    ""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  YCRM_TEXT_STR OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    ***"  EXCEPTIONS     NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
      Tables: CRMD_ORDERADM_H, STXH.
    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.
    data: i_crmtext type standard table of TLINE .
      types: begin of xsreph ,
              GUID type CRMD_ORDERADM_H-guid,
            end of xsreph.
       data: i_guid type standard table of xsreph.
      data: I_TEXT type STXH-TDNAME.
      data: xempl like  YCRM_TEXT_STR occurs 0 with header line.
      data: t_tab like dd03l-tabname.
    Select ranges
      ranges: l_r_guid for CRMD_ORDERADM_H-guid.
             l_r_connid  for sflight-connid.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      if i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        case i_dsource.
          when 'yCRM_TEXT'.  " for S_SREPH1
          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.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
       append lines of i_t_fields to s_s_if-t_fields.
    we will do our selection based on what is in the p table for the
    infoobject
      else.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        if s_counter_datapakid = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
        LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'GUID'.
            MOVE-CORRESPONDING L_S_SELECT TO L_R_GUID.
            APPEND L_R_GUID.
          ENDLOOP.
          case i_dsource.
            when 'YCRM_TEXT'.  " for S_SREPH1
              t_tab = 'CRMD_ORDERADM_H'.
          endcase.
          select GUID
          from (t_tab)
          into table i_guid where   PROCESS_TYPE = 'ZACI'  and ( OBJECT_ID < '0000000042').
         select tdname from stxh into i_text where tdobject = 'TEXT'.
         if sy-subrc ne 0.
           message e009(r3).
    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
                     'No master data found'.           "message variable 2
           raise error_passed_to_mess_handler.
         endif.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
         open cursor with hold s_cursor for
         select (s_s_if-t_fields) from CRMD_ORDERADM_H
                                  where GUID in L_R_GUID .
                                   ENDIF.
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
       fetch next cursor s_cursor
                  appending corresponding fields
                  of table e_t_data
                  package size s_s_if-maxsize.
        IF SY-SUBRC <> 0.
         CLOSE CURSOR S_CURSOR.
         RAISE NO_MORE_DATA.
       ENDIF.
    as we are doing this only once can use the select statement.
    ***data: crmtext like tline occurs 0 with header line.
    **data: i_crmtext type standard table of TLINE.
    **data: i_guid type standard table of xsreph.
    data: l_guid type THEAD-TDNAME.
    data: st_guid type xsreph.
    data: st_crmtext type TLINE.
    data: lan type THEAD-TDSPRAS.
    lan = 'E'.
    loop at i_guid into st_guid.
    l_guid = st_guid-guid.
    CALL FUNCTION 'READ_TEXT'
       EXPORTING
       CLIENT                        = SY-MANDT
         ID                            = 'A002'
         LANGUAGE                      = lan
         NAME                          = l_guid
         OBJECT                        = 'CRM_ORDERH'
       ARCHIVE_HANDLE                = 0
       LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        =
       TABLES
         LINES                         = i_crmtext.
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8
    e_t_data-guid = l_guid.
    loop at i_crmtext into st_crmtext.
    move lan to e_t_data-langu.
    move st_crmtext-tdline to e_t_data-description.
    append e_t_data.
    endif.
    endloop.
    clear: st_guid,l_guid.
    refresh: i_crmtext.
    endloop.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    endif.
    ENDFUNCTION.
    please Gurus as I donot know ABAP i appreciate if anyone would write a FM based on requirement and send me that will be really great this is my request. I gurantee of award points for good answers.
    Regards
    Kishore

    Hi,
    The statement <b>RAISE NO_MORE_DATA</b> should be active (uncommented) in your code. Otherwise, the infinte loop occurs.
    See also, the Siggi's blog:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    BTW, was it your thread here:
    Re: Urgent: problems in extracting Long Text
    Best regards,
    Eugene

  • Scenarion of Delta Load problem in COPA Extraction

    Please get me the solution for this particular scenario.
    Let us suppose that i created the datasource some 1 year back and running the deltas successfully since then.
    Let us number the requests from 1,2,3... and so on since 1st jan 2009. And let us suppose each request loads
    some 1000 records everyday from ECC to BI.
    Now on 10th august some change was made to ECC( such as change in the User Exit ) that caused the mismatch in number of data records ( loading only 950 records ) since the change was made on 10th August. But I identified the problem on 17th august with request number 160. Let us say those request numbers are 153(10th),154(11th),155(12th),156(13th),157(14th),158(15th),159(16th),160(17th). I fixed the program in ECC on 17th and further the requests from request number 160(17th) are fetching the correct number of data records. Now I need to delete the data in BI for request numbers 153 till 159 since they are not reconciling the data of ECC with BI. Now  we reload the deltas for such requests from ECC to BI. So how do I reload the deltas now in this scenario since ECC system keeps track of the last delta ie.. on 17th august(Req no 160). But how do I Load the deltas from req number 153 to 159 from ECC to BI.
    One proposed solution to this problem was setting the timestamp of COPA to 10th august. But it is not advised to set the timestamp for COPA datasources using the KEB5 transaction in a production system.
    Now in this scenario how do I load the request numbers 153 to 159 from ECC to Bi to fetch the correct data records for that period. Please propose a solution for this problem ASAP. U can also call me back whenever u need.
    Thanks in advance

    As stated in a previous post...
    How you choose to do this can be summed up by the question: Does the target for this data have cumulative or non-cumulative Key Figures?
    If you are doing an overwrite to the Key Figures, you could just execute a Full Repair InfoPackage that extracts the data for the days that you found inconsistencies instead of attempting to change the timestamp in KEB5 on the source ECC environment.
    However, if you're target has cumulative Key Figures you're left with very few options (a couple of them are time-consuming):
    1) Changing the timestamp in KEB5, if your plug-in is PI 2003.1 or older. Newer versions of the plug-in do not allow the changing of the timestamp as was pointed out by Ferruccio earlier.
    2) Deleting the keys in the target InfoProvider for those records that you extract in a Full Repair extract.
    3) Delete all data in BW for COPA and start from the beginning. This may be your best bet for cleaning up the issues in this scenario.

  • Problems placing ai and eps files into PhotoShop CS3 on a Mac

    When I place any ai or eps file into PhotoShop using File > Place, the images are pixelated. It does not matter if the PhotoShop file size is 72 dpi or 300 dpi, the end result is still the same.
    Placing images used to work a few days ago, and now all of a sudden it does not. Are there any settings that may have been changed?

    I can’t reproduce the problem, but as with all unexplainable Photoshop-problems You might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences You’ve changed) by pressing command-alt-shift on starting the program.

  • Problem with NOCOPY compiler hint in form library

    When compiling the following code in a package as part of a PL/SQL library attached to my version 6 form, I get the error below.
    The error does not occur if I remove the "NOCOPY" compiler hint. Anyone know what the problem is?
    TYPE duplicate_id_tab IS TABLE OF duplicate_id_rec;
    PROCEDURE find_duplicate_ids (pidm_dupes IN OUT NOCOPY duplicate_id_tab, LName_in IN VARCHAR2,FName_in IN VARCHAR2);
    Error 103 at line 13, column 59
    Encountered the symbol "DUPLICATE_ID_TAB" when expecting one of the following:
    :=,),@ % default character
    The symbol ":=" was substituted for "DUPLICATE_ID_TAB" to continue.

    I posted an answer to this but it seems to have failed, so I'll send it again.
    The NOCOPY reserved word appeared in PL/SQL 8.1.x. Forms 6i uses PL/SQL 8.0.6. Therefore, you can't use NOCOPY in Forms 6i.
    Oracle9i Forms uses a later version of PL/SQL, so it works. I already tested in Oracle9i Forms for you.
    We do not change the RSFs except in a major release. Therefore, no version of Forms 6i will support NOCOPY.
    Regards,
    Robin Zimmermann
    Forms Product Management.

Maybe you are looking for