LF code In RichEdit2.0 is replaced as CR by CFDSTextCtrl::GetSelText function

In RichEdit2.0 TEXT,
<LF>
(or <CR><LF>)
is replaced as <CR> by GetSelText function.
How can I get the original <LF>((or <CR><LF>)) without replacement?

Hi,
I suggest asking your question in the
Windows Developer forums instead. This forum is about the code visualization and architecture tools in Visual Studio.
Esther Fan | Visual Studio | If a post answers your question, please mark it as the answer. Thanks!

Similar Messages

  • Batch code for running a find/replace all on multiple files within a source floder/directory

    What I need is a Batch source code that will open all files in a folder/directory and run a find and replace_all query within them and then save all the files.  The files were created in Illustrator and saved using the Scene7 FXG format extension.    These files will be uploaded into Scene7 as a group after the find and replace macro/query is run on the code.  The same find and replace query will be the same for all the files.  Basically this function or batch process  will save time in setting the same parameters all at one time instead of having to set the parameters individually in scene7.
    a source code sample of the find/replace module macro might be              searchString:  s7:colorvalue="#FFFFFFFF" 
                                                                                                                          replaceString: s7:colorValue="#&txtclr;"
                                                                                                                          searchWhat   "FXG document"    
                                                                                                                             searchSource:  true,
                                                                                                                        useRegularExpressions:   true
    I have no problems creating batch files within Ai and PhotoShop but I have limited programming skills in how to create source code for manuipulating documents outside of those apps or in a OS invironment.
    I could probably come up witha simple program to do what i want for one document but i get lost when dealing with multiple documents in a source folder (prolbem is,  I will be dealing with thousands of documents not 100 or less)
    If anything which Adope cloud app would work best:  Dreamweaver or Edge code   (or just use my notepad)

    What I need is a Batch source code that will open all files in a folder/directory and run a find and replace_all query within them and then save all the files.  The files were created in Illustrator and saved using the Scene7 FXG format extension.    These files will be uploaded into Scene7 as a group after the find and replace macro/query is run on the code.  The same find and replace query will be the same for all the files.  Basically this function or batch process  will save time in setting the same parameters all at one time instead of having to set the parameters individually in scene7.
    a source code sample of the find/replace module macro might be              searchString:  s7:colorvalue="#FFFFFFFF" 
                                                                                                                          replaceString: s7:colorValue="#&txtclr;"
                                                                                                                          searchWhat   "FXG document"    
                                                                                                                             searchSource:  true,
                                                                                                                        useRegularExpressions:   true
    I have no problems creating batch files within Ai and PhotoShop but I have limited programming skills in how to create source code for manuipulating documents outside of those apps or in a OS invironment.
    I could probably come up witha simple program to do what i want for one document but i get lost when dealing with multiple documents in a source folder (prolbem is,  I will be dealing with thousands of documents not 100 or less)
    If anything which Adope cloud app would work best:  Dreamweaver or Edge code   (or just use my notepad)

  • EREC: Replace Resume parsing demo by a functional XI proxy

    Hello,
    I'm trying to set the standard SAP solution Resume Parsing. I have reviwed the notes 1122135 (EHP3), 1276543 and 1516634 (EHP4). And I don't have clear how to replace the demo proxy by a functional proxy. Where this customization has to be done?
    The only information I have is the service interfaz name.
    Entity Type                                                                                Service interface
    Technical Name in Enterprise Service Repository (ESR)          ResumeParseQueryResponse_Out
    TNamespace in ESR                                                                  http://sap.com/xi/ERECRUIT/Global
    Software Component Version in ESR                                        ERECRUIT 603
    Category                                                                                Outbound
    Mode                                                                                Synchronous
    Related Service                                                                         Resume Parsing
    should I publish this post in XI section?
    Thanks.

    Hello Javier,
    Please have a look at:
    http://help.sap.com/saphelp_nw70/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards
    Nicole

  • Jquery or code for Image loading on Sp Gridview Pager(Next ,Prev) click functionality on sharepoint 2010

    Jquery or dynamic code for Image loading on Sp Gridview Pager(Next ,Prev) click functionality on sharepoint 2010.
    i have a dynamic SP gridview contains Previous and next
    buttons for paging.
    page doesn't contain Update panel.
    grdXRPSUsers.PagerSettings.Mode = PagerButtons.NextPrevious;
    grdXRPSUsers.PagerSettings.PreviousPageText = "< Previous Page";
    grdXRPSUsers.PagerSettings.NextPageText = "Next Page >";
    grdXRPSUsers.PagerSettings.FirstPageText = "First Page";
    grdXRPSUsers.PagerSettings.LastPageText = "Last Page";
    When i click on Next or Previous page in the gridview it will take more time and showing progress bar in th below.
    As per my client request, i need to change the
    progress bar to Loading image (Wheel at middle of the grid at fething time).
    How its possible either through jquery or Programming(code behind).
    Please help

    Hi,
    According to your description, my understanding is that  you want to add loading image when click the paging button to load the data.
    I suggest you can use Jquery BlockUI Plugin to show a block image when loding data in paging click event.
    Here is a similiar thread for your reference:
    How to display a loading image until a gridview is fully loaded
    More information:
    Jquery BlockUI Plugin
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • I need a new activation code after having my motherboard replaced

    It is telling me that I've exceeded the number of computers that my registration is active on.
    I'm also pissed because I've spent the last fifteen minutes hunting around for Adobe's phone number with no avail, only to start a blog post!  I hope this work. 

    Activation for what?  Adobe Reader does not require any activation.

  • What can i replace this bind variable with in function?

    Hello
    I am creating a report showing training attended by employees. I have written a function to do the following:
    Parameters 1 - 4 is hard coded for a reason. So we dont worry about them.
    5th parameter: :START_DATE represents the date training started
    6th parameter: :END_DATE represents the date training ended.
    These date parameters are correctly used inside the select statement that the function is built upon. So don't worry that my date parameters are correct/incorrect.
    The focus should be on how you use bind variables inside Discoverer Admin. The select at the bottom runs perfectly in Toad and it allows you to use the date parameters as bind variables. But it does not allow it in Discoverer Admin
    The problem is with Parameter 5 and 6. I dont want to hard code the dates as i want the user to be able to enter his own date parameters.
    Discoverer Admin gives an error is i want to use :START_DATE and :END_DATE as parameters
    Does anyone have a solution for my problem.
    This is what the code looks like.
    SELECT apps.xxhr_fsc_training_info.xxhr_fsc_training ('A', '02','M', 'N',:START_DATE, :END_DATE)category_A_training
    , apps.xxhr_fsc_training_info.xxhr_fsc_training ('B', '02','M', 'N',:START_DATE, :END_DATE)category_B_training
    , apps.xxhr_fsc_training_info.xxhr_fsc_training ('C', '02','M', 'N',:START_DATE, :END_DATE)category_C_training
    , apps.xxhr_fsc_training_info.xxhr_fsc_training ('D', '02','M', 'N',:START_DATE, :END_DATE)category_D_training
    , apps.xxhr_fsc_training_info.xxhr_fsc_training ('E', '02','M', 'N',:START_DATE, :END_DATE)category_E_training
    , apps.xxhr_fsc_training_info.xxhr_fsc_training ('F', '02','M', 'N',:START_DATE, :END_DATE)category_F_training
    , apps.xxhr_fsc_training_info.xxhr_fsc_training ('G', '02','M', 'N',:START_DATE, :END_DATE)category_G_training
    from dual
    Edited by: iandekoker on Jun 8, 2009 9:34 PM

    Rod
    I have a request. The request is based on various emails written about passing parameters in Discoverer Admin/Desktop. Now if you are experienced and work with set copntext on regular basis then it should be a walk in the park. However if you are new to it like me, then it seems a daunting task. So my request is: Can't you provide us with an example of how to complete the whole process from begin to end using an actual example? I will kick off the process and maybe you can add where i left something out?
    Example:
    SELECT ENAME, HIRE_DATE
    FROM EMP
    WHERE HIRE_DATE = :IDATE;
    We want to run this select statement in Discoverer Admin, but Admin does not like the :IDATE bind variable. So now we are gonna use SET CONTEXT to find a solution to our problem.
    Step1:
    First we have to create a context namespace in the database for the Discoverer contexts. Here is the code to create the context. It is okay to also named your function EUL_DISCO as this name would work perfectly for almost everyone. Best is to do all of this in the Apps schema. Copy and paste this code in Toad and F9 it. It should compile successfully
    CREATE OR REPLACE CONTEXT eul_disco
    USING apps.eul_disco;
    Step 2:
    Now you need to create a package to enable you to set and retrieve contexts from in Discoverer. Here is the code to create the package and package body. Just copy and paste the code into Toad and F9 (execute) it to create the package.
    --Package Spec
    CREATE OR REPLACE PACKAGE eul_disco AS
    FUNCTION set_context(p_name VARCHAR2, p_value VARCHAR2) RETURN VARCHAR2;
    FUNCTION show_context(p_name VARCHAR2) RETURN VARCHAR2;
    END eul_disco;
    --Package Body
    CREATE OR REPLACE PACKAGE BODY eul_disco IS
    FUNCTION set_context(p_name VARCHAR2, p_value VARCHAR2)
    RETURN VARCHAR2 AS
    BEGIN
    dbms_session.set_context('EUL_DISCO', p_name, p_value);
    RETURN p_value;
    END set_context;
    FUNCTION show_context(p_name VARCHAR2)
    RETURN VARCHAR2 IS
    BEGIN
    RETURN SYS_CONTEXT('EUL_DISCO', p_name);
    END show_context;
    END eul_disco;
    Step3:
    Once you have created this package successfully you need to log into Discoverer Admin. Then use the menu to navigate to Tools > Register PL/SQL Function. A window called 'PL/SQL Functions' will appear. Select the 'Import...' button. A new window called 'Import PL/SQL functions' will appear. Scroll down until you see set_context function. Once you found it click OK to import it to End User Layer. Do the same to import show_context function. Remember there are two functions and you need to import them both. When you are done, click 'Apply' button. Then click 'OK' button. You can double check to make sure your functions have been imported. Just nagivate to Tools > Register PL/SQL function again. When the window 'PL/SQL Functions' appears your function(s) should be in the list on the left hand site. Scroll down untill you find them.
    Step4:
    Now it is time to set your session parameters in a separate worksheet inside Discovere Desktop from your main reports. The following steps show you how to create a worksheet to define an effective date parameter. The parameter worksheet should be based on a folder that always returns exactly one row.
    Log into Discoverer Admin. Open the Business Area you want to use. Then create "New Custom Folder..."
    Copy and paste this code (select sydate from dual) inside the New Custom Folder and validate the code. Also rename your folder to 'Set Context Folder'
    Step 5
    Next log into Discoverer Desktop and choose 'Create New Workbook'. Then choose table layout option. In the available list choose 'Set Context Folder'. When you have highlighted 'Set Context Folder' click on '>' button. Then click then 'Finish' button. Once the workbook is created you will see 1 column called Sysdate and a row with today's date in it. Save this workbook and name this workbook XYZ. You might even rename the sheet to QWE.
    Step 6:
    Still in Desktop working on XYZ workbook on QWE sheet, click on Tools > Parameters > New. In the 'Name' field enter START_DATE. Next leave 'Create condition with operator' box unticked. Next in 'Prompt' field enter START_DATE. In 'Description' field enter START_DATE. In 'Default' field enter NULL. Click OK button when you are done.
    Step 7:
    Still in Desktop working on XYZ workbook on QWE sheet, click on Tools > Calculation > New. Click on 'Functions' radio button. Then click on 'Database' folder to expand it. Scroll down till you see 'Set Context' function in the list. Select it and click 'paste >>' button. It will now show: SET_CONTEXT(P_NAME, P_VALUE). Now you need to replace the two parameters (P_NAME, P_VALUE) of the function. Replace P_NAME with 'START_DATE'. When you are done click on Items radio button. Then click on the Parameters folder and select Start_Date.
    When you are done it should look like this: SET_CONTEXT('START_DATE',TO_CHAR(:START_DATE))
    You might want to rename this calculation to START_DATE
    Ps. If you need to create two date parameters START_DATE and END_DATE then you repeat step 7 cause you need one more calculation.
    Just replace START_DATE with END_DATE. You also might want to call this second calculation END_DATE. Thus when you are done you will have 2 calculations:
    SET_CONTEXT('START_DATE',TO_CHAR(:START_DATE))
    SET_CONTEXT('END_DATE',TO_CHAR(:END_DATE))
    This is useful when you want date parameters similar to: 'where date between :Start_date and :End_date'
    Step 8:
    When you now run the XYZ workbook (QWE sheet) it will prompt you for an START_DATE. Enter 10-Jun-2009 (make sure the format you enter the date is similar to the format you have set up in discoverer). Now your XYZ workbook have 2 columns. First column is still called Sysdate with today's date. The second column is called START_DATE with 10-JUN-2009 in it.
    Step 9:
    Now you want to remove the 'SELECT SYSDATE FROM DUAL' data stored in 'SET CONTEXT FOLDER' from your XYZ workbook (QWE sheet) as you no longer need that. Still working with Desktop inside XYZ workbook on QWE sheet > click on Sheet menu option > then Edit Sheet option. On the Select Items tab click on 'Set Context Folder' and click < button to remove the folder from workbook XYZ. Click OK when done and run the workbook XYZ (sheet QWE) again. Now the workbook XYZ (sheet QWE) should only have one column called START_DATE and 10-Jun-2009 as the only row.
    Step 10:
    Rob you might want to come in here. It is also useful to create another calculation retrieving the value of the parameter, so that the value entered for the parameter can be seen when the workbook is run. Please give step by step instruction to complete this process
    Step 11:
    Still remember your initial problem where we wanted to use :IDATE in Discoverer Admin folder, but Discoverer Admin did not like the :IDATE syntax?
    SELECT ENAME, HIRE_DATE
    FROM EMP
    WHERE HIRE_DATE = :IDATE;
    Solution:
    Well now you just replace :IDATE with TO_DATE(SYS_CONTEXT('EUL_DISCO','START_DATE'))
    Log into Discoverer Admin. Open your Business Area. Then create 'New Custom Folder..'.
    Copy the code below and paste it into the new custom folder.
    Then validate the code.
    Rename the new custom folder to 'Solution'
    --copy and paste this code into folder 'Solution'
    SELECT ENAME, HIRE_DATE
    FROM EMP
    WHERE HIRE_DATE = TO_DATE(SYS_CONTEXT('EUL_DISCO','START_DATE'))
    note: 'EUL_DISCO' is the name of the context and package you created in step1
    : 'START_DATE' is the name of the calculation you did in step7
    Then log onto Discoverer Desktop > open your workbook XYZ > open sheet QWE.
    Click on Menu item called Sheet > New Sheet > choose Table layout > click next > scroll down available folders till you find SQL folder with then name 'Solution'. Select 'Solution' folder and click > then click Finish.
    The folder named 'Solution' will be used to populate the newly created sheet with data. You might want to rename the newly created sheet to 'Finally'.
    At this point workbook XYZ should have 2 sheets (QWE and Finally).
    Sheet 'QWE' contains the parameter and nothing else.
    Sheet 'Finally' displays the code found in folder 'Solution'
    First you run sheet QWE to set parameter. When prompt for a date enter '10-JUN-2009'. Click OK button.
    Then click on sheet 'Finally' to allow the parameter to take effect and do its job. You will see that only data true of 10-JUN-2009 are displayed
    Notes:
    This is a very simple example. But if you work thru this example, then you will get the concept behind the idea and would you be able to satisfy your own need.

  • Replace trivial computation with PL/SQL Function?

    I have several queries that are computing integral day differences based on an Oracle date field -- for example, something along the line of:
    select
    Customer
    , trunc(current_date) - trunc(payment_date)
    from
    ( select 'Fred' Customer, to_date('2009-06-01 07:05:00', 'yyyy-mm-dd hh24:mi:ss') as payment_date from dual union all
    select 'Barney', to_date('2009-07-01 15:15:15', 'yyyy-mm-dd hh24:mi:ss') from dual
    -- Customer Account_Age
    -- Fred 49
    -- Barney 19
    I have a developer that is now advising that we use a PL/SQL user defined function rather than the difference of these TRUNC functions. That goes against the grain for me. In the MS SQL Server Transact SQL forums I would almost never recommend replacing a trivial expression with a user defined function because the UDF gets called for each row returned by the query and adds overhead to the query.
    Does the same kind of logic apply to Oracle UDFs? Is it a good idea to replace trivial calculations such as this with UDFs?
    Kent Waldrop

    Kent Waldrop wrote:
    Would you use the function instead of the inline calculation if it were not a large data warehouse but the target number of rows was in the millions?That would depend...
    - What are the odds that the business will change the definition of this calculation? The more likely it is to change, the bigger the benefit to centralizing it.
    - How many places is the calculation repeated today? Is that likely to increase over time? The more it is repeated, the bigger the benefit to having one standard place for it.
    - Is this going to be a calculation that gets reimplemented in a variety of reporting tools, in SQL, in applications, etc? Again, this goes to the size of the benefit.
    - What are you doing with the results of the SELECT statement? If you're using it in an INSERT ... SELECT, you're more likely to notice the performance overhead than if you've got a FOR loop that is doing row-by-row processing.
    - How critical is performance of this query? If you're processing millions of rows but that is happening in the dead of night, perhaps adding a few minutes to the run is well worth the improved maintainability.
    Different people, working on different systems, will weight these factors differently and come to different conclusions. Either solution is defensible under the right circumstances and there's a large middle ground where both are reasonable to most people. Steven Feuerstein, one of the most well respected PL/SQL gurus, would push strongly for a function in almost all cases. Most of the commentators here would tend to lean toward the performance benefits of putting the calculation in SQL.
    Justin

  • What is the replacement to the Drawing and Database functions in Appleworks?

    I rely on the Appleworks suite of software, especially the Word Processing, Spreadsheet, Drawing, and Database programs. I cannot upgrade my operating system without losing the ability to use Appleworks. I would switch to iWorks, but it does not seem to have either a Drawing or a Database program. Is there some other program that is out there?

    Word Processing documents can be opened directly in Pages (AppleWorks 6 only), though Panergy Software'sdocXConverter v3.2 ($19.95) can convert Appleworks 5 and 6 Word Processing documents to RTF (though it has been reported that it can only handle documents which contain only text, not those which include images or frames); and the latest version of the free LibreOffice has announced that it can open AppleWorks 6 Word Processing documents: it does appear to be able to handle at least some embedded images.
    Draw Documents can be opened directly only in EazyDraw (the more expensive version from their website, not the cheaper one from the Mac App Store, and you will need v4.0 'Retro' not the most recent version) or Intaglio (though this appears not to be able to handle very complex drawings).
    Spreadsheets can be opened directly only in Numbers.
    Presentations can be opened directly only in Keynote.
    To use other programs, or open Painting or Database documents at all, you must export from AppleWorks first: nothing will open these types of documents.
    There are better paint programs around than AW's rather primitive paint module. As to Databases, the only real replacement is Filemaker Pro which is quite expensive. You can only move your databases to it by exporting as ASCII text and importing into FMPro - you will have to recreate all your formatting and calculations.
    This article looks in detail at 'Abandoning Appleworks':
    http://rfwilmut.net/aw

  • Best replacement for Adobe Forms Central survey functionality

    I am disappointed that you are discontinuing Adobe Forms Central... Please advise of what other applications do you have that provide the abilitity to create quick surveys that I can email out and then view all of the feedback and create reports.  Thank you.

    Hi BrainTrainer,
    We've included a list of FormsCentral alternatives in this document: End of support | Adobe FormsCentral.
    Many customers have posted in the FormsCentral forum after doing research on those alternatives. I'll move your post to that forum, so those customers can chime in about what they feel are the best options.
    Best,
    Sara

  • Mapping with dynamic sql

    Ok boys, another homework problem gone awry...
    I'm trying to create a mapping function to sort by NAME...here's the code:
    ----------CREATE MEMBER-----------------
    CREATE OR REPLACE TYPE BODY item_ot
    AS
      MEMBER FUNCTION mapping
       RETURN VARCHAR2
    IS
      lv_sorting VARCHAR2(100);
    BEGIN
    IF ITEM IS NOT NULL THEN
       lv_sorting:=ID||', '||NAME||', '||DESCRIPTION;
    ELSE
       lv_sorting:='No item exists.';
    END IF;
    RETURN lv_sorting;
    END;
    MAP MEMBER FUNCTION mapping RETURN VARCHAR2
    IS
    BEGIN
      RETURN name;
    END;
    END;
    /Here's the errors:
    3/19     PLS-00539: subprogram 'MAPPING' is declared in an object type
             body and must be defined in the object type specification
    6/26     PLS-00538: subprogram or cursor 'MAPPING' is declared in an
             object type specification and must be defined in the object type
             body
    8/2      PL/SQL: Statement ignored
    8/5      PLS-00201: identifier 'ITEM' must be declared
    15/12    PL/SQL: Item ignored
    15/12    PLS-00305: previous use of 'MAPPING' (at line 3) conflicts with
             this use
    15/21    PLS-00539: subprogram 'MAPPING' is declared in an object type
             body and must be defined in the object type specification----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    For good measure, here's the objects leading up to this point:
    ------------CREATE OBJECT TYPE-----------
    CREATE OR REPLACE TYPE item_ot AS OBJECT
      (ID  NUMBER(2),
       NAME   VARCHAR2(25),
       DESCRIPTION   VARCHAR2(100));
    -----------CREATE TABLE------------------
    CREATE TABLE bb_coffee
    (PRICE    NUMBER(6,2),
      TYPE     CHAR(1),
      ITEM     item_ot);
    ----------INSERT ROWS TO TABLE-----------
    INSERT INTO bb_coffee
    VALUES ( 38.00, 'E', item_ot(12, 'Cafe Press', 'Steel French Coffee Press'));
    INSERT INTO bb_coffee
    VALUES (10.00, 'c', item_ot(76, 'Espresso','Roasted Italian Style'));
    INSERT INTO bb_coffee
    VALUES (24.50, 'E', item_ot(44, 'Coffee Carafe', 'Thermal Insulated Carafe'));
    -----------ADD METHOD FOR SORTING-------
    ALTER TYPE item_ot
    ADD MAP MEMBER FUNCTION mapping RETURN VARCHAR2 CASCADE;

    Here's an example from Chapter 14 of Oracle Database 11g PL/SQL Programming that might help:
    CREATE OR REPLACE TYPE map_comp IS OBJECT
    ( who VARCHAR2(20)
    , CONSTRUCTOR FUNCTION map_comp (who VARCHAR2) RETURN SELF AS RESULT
    , MAP MEMBER FUNCTION equals RETURN VARCHAR2 )
    INSTANTIABLE NOT FINAL;
    CREATE OR REPLACE TYPE BODY map_comp IS
    CONSTRUCTOR FUNCTION map_comp (who VARCHAR2) RETURN SELF AS RESULT IS
    BEGIN
    self.who := who;
    RETURN;
    END map_comp;
    MAP MEMBER FUNCTION equals RETURN VARCHAR2 IS
    BEGIN
    RETURN self.who;
    END equals;
    END;
    DECLARE
    -- Declare a collection of an object type.
    TYPE object_list IS TABLE OF MAP_COMP;
    -- Initialize four objects in mixed alphabetical order.
    object1 MAP_COMP := map_comp('Ron Weasley');
    object2 MAP_COMP := map_comp('Harry Potter');
    object3 MAP_COMP := map_comp('Luna Lovegood');
    object4 MAP_COMP := map_comp('Hermione Granger');
    -- Define a collection of the object type.
    objects OBJECT_LIST := object_list(object1, object2, object3, object4);
    -- Swaps A and B.
    PROCEDURE swap (a IN OUT MAP_COMP, b IN OUT MAP_COMP) IS
    c MAP_COMP;
    BEGIN
    c := b;
    b := a;
    a := c;
    END swap;
    BEGIN
    -- A bubble sort.
    FOR i IN 1..objects.COUNT LOOP
    FOR j IN 1..objects.COUNT LOOP
    IF objects(i).equals = LEAST(objects(i).equals,objects(j).equals) THEN
    swap(objects(i),objects(j));
    END IF;
    END LOOP;
    END LOOP;
    -- Print reorderd objects.
    FOR i IN 1..objects.COUNT LOOP
    dbms_output.put_line(objects(i).equals);
    END LOOP;
    END;
    DROP TABLE persistent_object;
    CREATE TABLE persistent_object
    ( persistent_object_id NUMBER
    , mapping_object MAP_COMP );
    CREATE SEQUENCE persistent_object_s1;
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Bilbo Baggins'));
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Frodo Baggins'));
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Peregrin Took'));
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Meriweather Took'));
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Sam "Wise" Gamgee'));
    SELECT map_comp().map
    FROM persistent_object
    ORDER BY 1;

  • Using gl_import_hook_pkg, R12

    Hi,
    I am trying to use the subject package example of which I found in this forum.
    I have this piece of code which fails with table or view doesn't exist exception at lines
    l_ddl_sql:='create table xx_test_hook_temp as select * from '||i.interface_table_name;
    EXECUTE IMMEDIATE l_ddl_sql;
    Appreciate if somebody can share an idea on what is wrong?
    Thank you
    Anatoliy
    The code is below:
    CREATE OR REPLACE PACKAGE BODY BOLINF.xx_test_hook_pkg
    AS
    FUNCTION update_gl_interface (
    run_id IN NUMBER,
    errbuf IN OUT NOCOPY VARCHAR2
    RETURN BOOLEAN
    IS
    l_run_id NUMBER;
    l_sob_id NUMBER;
    l_update_sql VARCHAR2 (4000);
    l_current_date varchar2(100) :='-HELLOWORLD'||'-'||to_char(sysdate,'DD-MON-YYYY HH:MM:SS');
    l_xla_table varchar2(100);
    l_insert_stmt varchar2(4000);
    v_msg varchar2(200);
    l_ddl_sql VARCHAR2 (4000);
    CURSOR int_control (p_run_id IN NUMBER)
    IS
    SELECT GROUP_ID, interface_table_name
    FROM gl_interface_control
    WHERE interface_run_id = p_run_id;
    BEGIN
    fnd_client_info.set_org_context (121);
    l_run_id := run_id;
    FOR i IN int_control (l_run_id)
    LOOP
    BEGIN
    l_ddl_sql:='create table xx_test_hook_temp as select * from '||i.interface_table_name;
    EXECUTE IMMEDIATE l_ddl_sql;
    EXCEPTION when others then
    v_msg := substr(sqlerrm,1,200);
    errbuf :=
    'User Defined Exception with l_ddl_sql';
    INSERT INTO xx_test_hook
    VALUES (errbuf, l_run_id, NULL,
    v_msg);
    RETURN TRUE;
    END;
    INSERT INTO xx_test_hook
    VALUES (l_update_sql, l_run_id, i.GROUP_ID,
    i.interface_table_name);
    l_insert_stmt:='insert into xx_test_hook_temp select * from '|| i.interface_table_name;
    EXECUTE IMMEDIATE l_insert_stmt;
    l_update_sql:='update '||i.interface_table_name||
    ' set reference4=reference4||'||''''||l_current_date||''''||
    ' where group_id='||i.group_id;
    INSERT INTO xx_test_hook
    VALUES (l_update_sql, l_run_id, i.GROUP_ID,
    i.interface_table_name);
    l_insert_stmt:='insert into test_hook_int select * from '|| i.interface_table_name;
    EXECUTE IMMEDIATE l_insert_stmt;
    EXECUTE IMMEDIATE l_update_sql;
    END LOOP;
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN
    errbuf :=
    'User Defined Exception in test_je_import_hook.update_gl_interface';
    INSERT INTO xx_test_hook
    VALUES (errbuf, l_run_id, NULL,
    NULL);
    RETURN TRUE;
    END;
    END xx_test_hook_pkg;

    Hello Anatolly,
    Are you using any custom GL Interface table?
    If yes, then do you have proper grant to APPS on that table?
    If No, then you have to use a table name explicitly in the Dynamic SQL you wrote to create the xx_test_hook_temp table.
    Regards,
    Mriggs

  • Steps to replace match code objects with search helps in ECC6 upgrade

    Hi,
    Upgrade 4.7 to ECC6, match code objects need to be replaced with search hellps.
    SAP note provided by client but not understanding clearly. Can any one explain me the stelps to migrate the match code objects into search hepls.
    Thanks,
    Jwala Deepa

    Hi,
    Migration must be done by a developer who knows both matchcodes and search helps. It's not just like a procedure that you can follow without knowledge/without thinking.
    It's probably a little bit like forms (but far more simple), they often need to be "migrated from scratch"
    The first important point is where to find the matchcode object/IDs -> SE11 -> Utility -> Other DDic objects. Then you'll see that are the update type, base table, etc.
    There's a little scheme here to show the differences: http://help.sap.com/saphelp_46c/helpdata/en/3e/f3fc37eeb70143e10000009b38f8cf/frameset.htm (plus the general matchcode documentation : http://help.sap.com/saphelp_46c/helpdata/en/cf/21ef1f446011d189700000e8322d00/frameset.htm )
    If you need a procedure, let's wait, and see if someone has one, but it doesn't look promising as matchcodes are not used since a long time now.
    BR
    Sandra

  • Error while replacing IF statements with DECODE function in procedure

    Hi All,
    I have created a procedure which has nested IF statements. Now I want to replace the IF statements with DECODE functions to improve performance.
    Procedure:
    IF (var_int_sev = '0')
    THEN
    var_sev := '2';
    ELSE
    SELECT sev
    INTO var_int_sev
    FROM errorconfig
    WHERE errorcode = var_errorcode;
    var_sev := var_int_sev;
    END IF;
    I converted the above IF statement into DECODE function as mentioned below:
    var_Sev := DECODE(var_int_sev,0,2,SELECT severity FROM errorconfig WHERE errorcode=var_ErrorCode)
    But it throws below error at the select statement used inside DECODE.
    Error(58,51): PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + case mod new not null others <an identifier> <a double-quoted delimited-identifier> <a bind variable> avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string literal with character set specification> <a number> <a single-quoted SQL string> pipe <an alternatively-quoted string literal with character set specification> <an alternativ
    Can someone help me in converting the IF to DECODE in the above case. Also how can we use a select statement inside decode.

    instead of trying to rewrite all your code and hoping that the performance will be better, it's a better option to investigate and find out which part of your application is slow
    read this:
    When your query takes too long ...

  • Replaced value is not getting relected in IDOC segment field

    Hi,
    Need your help for the below issue.
    I am replacing the PO # with Delivery Doc # . But the replaced value is not getting reflected in the IDOC segment field(e1bp2017_gm_item_create-po_number.).
    Function Module  which I am using is IDOC_INPUT_MBGMCR as a copy.
    Here is my code given below:
    SELECT
                SINGLE vbeln
                  INTO lx_vbeln
                  FROM lips
                 WHERE vgbel EQ e1bp2017_gm_item_create-po_number.
    Move lx_vbeln TO e1bp2017_gm_item_create-po_number.
    MOVE-CORRESPONDING e1bp2017_gm_item_create
                   TO goodsmvt_item.
    Then this is passed as  TABLE in "BAPI_GOODSMVT_CREATE".
    Please do the needful.

    Hi Dheepa,
    Check it in debug whether the filed is empty or having po#, when ur code is executed for the replacement. if it is empty, po# is populated after ur code. in this case you need to write the code in suitable place.
    Reddy

  • Can not view the code for views, triggers or table definition

    Hello Gurus,
    I can not see the code for any of the triggers, views, tables etc. in sql developer. For instance a view code will be
    "create or replace" and then nothing, I could see the code in the past.
    When clicking on SQL tab for table I get following errors
    1. Ora-00904 Invalid Column name
    2. Ora-31600: invalid input value emit_schema for parameter name in function SET_TRANSFORM_PARAMORA-06512: at SYs.DBMS_SYS_ERROR............................
    please advice.
    Thanks

    Sqldev was only certified starting from 9.0.2, so it's possible that's the culprit. The latest update in the certification document even omits 9i entirely.
    Did it start happening after upgrading sqldev? What version are you on?
    K.

Maybe you are looking for