How to implement multiple Value Helps within the same Application ??

Dear Experts,
I want to implement multiple value helps in the same view.For that I have declared exporting parameters of type 'wdy_key_value_table.' within the component controller for each of the value helps.While I do activate and test the application I get the following error :
The following error text was processed in the system HE6 : A row with the same key already exists.
The error occurred on the application server hsdnt24s11_HE6_00 and in the work process 4 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: VALUESET_BSART of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
Method: IF_PO_VIEW1~VALUESET_BSART of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
Method: WDDOINIT of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
Method: INIT of program CL_WDR_CONTROLLER=============CP
Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
I dont know how to implement multiple value helps.Need your help on this.
Regards,
Mamai.

Hi
Hint is : A row with the same key already exists it means , It is assigning the same value/Key to row and you are calling it at WDDOINIT  so it giving error at the time of initialization .
Better way to do the coding at some event in view OR if not possible than just execute the first value help in wddoinit later clear all the value before gettig the other Value help. Code it at WdDoModify View to get its run time behaviour.
BR
Satish Kumar

Similar Messages

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • How to permit multiple workspaces to access the same schema?

    Hello,
    When creating a new workspace (version 3.2), I am getting the following warnings:
    "Warning: The requested schema already exists. Warning: The requested schema is already assigned to one or more workspaces. Please ensure that giving multiple workspaces access to the same schema is permitted by the security policies at your site before approving this request."
    How do I "ensure that giving multiple workspaces access to the same schema is permitted"?
    What are the advantages/disadvantages of doing so?
    Thanks,
    Gabor

    The correct answer to it would have been: I use manual provisioning.I didn't ask a detailed enough question. What I am wondering is how you are set up to to workspace provisioning at your site. In apex_admin, if you navigate to Home>Manage Service>Instance Settings there is a radio group like:
    Provisioning Status:      
    0 Manual - An administrator manually creates each workspace
    0 Request - Link displayed on login page enabling users to request workspaces
    0 Email Verification - Workspace created after email address is verified by the user
    The help text for this is:
    Provisioning Status:      
    Determines how the process of provisioning (or creating) a workspace works for your development instance. Options include:
        * Manual - An Application Express administrator manually creates new workspaces and notifies the Workspace administrator of the login information.
        * Request - Users request workspaces directly in a self-service fashion. Selecting this option displays a link on the Login page enabling users to request a workspace. When a user requests a workspace, each request is submitted to a queue for approval.
        * Email Verification - Works similar to Request except each user receives an initial email containing a link. Clicking this link validates the user's email address before the request is processed.
    Note: To enable users to request a workspace using a link on the Login page, you must choose Request or Email Verification. If you select Manual, no link appears on the login page.How is yours set up?
    As to the first original question (How do I "ensure that giving multiple workspaces access to the same schema is permitted"?), I still do not know.Whether it is permitted or not is a decision made by the apex site administrator who approves/declines workspace requests. Whether it ought to be permitted is a different question and is really same as your second question which involves issues you said you are now starting to understand better. So I think we've covered your original questions. If not, please elaborate.
    As to the last subject (How did the hidden workspace get created and how do I get rid of id? What happens if I don't?), this happened at work, so I can only tell you more on Monday (luckily...). Until then, here is what I remember. The work space was created, which is proven by the fact that when I want to create a new workspace with the same name, I am getting an error, which says that a workspace with that name already exists. However, I cannot delete the workspace, since it show up nowhere.No hidden workspace got created. I'm pretty sure the request is just in the queue waiting to be approved/declined. In the meantime a workspace with the same name cannot be requested.
    By the way, how do you quote some text here? I just put a '>' in the first character position before the text to quote. You can also use the " rich text icon above the text pane.
    Scott

  • How to load multiple HTML5 canvas on the same page (the proper method)

    Hi,
    I've been struggling to load multiple canvas animations on the same page. At the beggining I thought that exporting the movies with different namespaces and reloading the libraries in a sequential flow might work, but it doesn't. It always loads just the last animation loaded. More info here: Coding challenge: what am I doing wrong?
    Here is a sample of what I'm doing:
    1st: Publish two flash movies with custom namespaces for "lib" set in the "publish settings": "libFirst" and "libSecond".
    2nd: Edit the canvas tags in the HTML page. One called "firstCanvas" and the other one called "secondCanvas"
    3rd: Edit the javascript like this:
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsFirst = createjsFirst||{};
                var createjs = createjsFirst;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/first.js"></script>
            <script>
                function initFirstAnimation() {
                    var canvas, stage, exportRoot;
                    canvas = document.getElementById("firstCanvas");
                    exportRoot = new libFirst.first();
                    stage = new createjsFirst.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
                    createjsFirst.Ticker.setFPS(libFirst.properties.fps);
                    createjsFirst.Ticker.addEventListener("tick", stage);
            </script>
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsSecond = createjsSecond||{};
                var createjs = createjsSecond;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/second.js"></script>
            <script>
                function initSecondAnimation() {
                    var canvas, stage, exportRoot;
                    canvas = document.getElementById("secondCanvas");
                    exportRoot = new libSecond.second();
                    stage = new createjsSecond.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
                    createjsSecond.Ticker.setFPS(libSecond.properties.fps);
                    createjsSecond.Ticker.addEventListener("tick", stage);
            </script>
    <body onload="initFirstAnimation(); initSecondAnimation();">
    Could someone please reply with the best practice on how to do this? If possible, without the need to reload all the libraries...
    If I only need to show one flash movie at a time, would it be more efficient to cut & paste the canvas tag using jQuery in the DOM and reloading a different lib on it?
    Many thanks!
    #flash #reborn

    I was able to fix it. At the end, it was easier than I thought. Just have to publish using a different "lib" namespace for each movie, load all the scripts at the end of the <body> and then add the following to the onload or ready events:
    $(document).ready(function () {
            var canvas, stage, exportRoot;
            // First movie
            canvas = document.getElementById("firstCanvas");
            exportRoot = new libFirst.first();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libFirst.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
            // Second movie
            canvas = document.getElementById("secondCanvas");
            exportRoot = new libSecond.second();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libSecond.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
            // Third movie
            canvas = dument.getElementById("thirdCanvas");
            exportRoot = new libThird.third();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libThird.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);

  • How to open multiple hotmail accounts at the same time ?

    Hi,
    Seems maybe normal for some people but I coming from internet explorer and with this explorer I was able to open multiple hotmail accounts at the same time, by default firefox can't do that, is there some setup to modify to open these at the same time ?
    Thanks in advance for any help.
    (Version updated 3.6.8)
    Regards,
    Chris

    You can look at one of these if you want to sign on with different identities at the same time:
    * CookiePie: http://www.nektra.com/oss/firefox/extensions/cookiepie/
    * CookieSwap: https://addons.mozilla.org/firefox/addon/3255
    * Multifox: http://br.mozdev.org/multifox/ - Different logins at the same time

  • How to differentiate multiple aRFC calls into the same session.

    Hi experts,
    I have following problem:
    I start multiple aRFC calls in the same remote session by using the same task ID for each call and use
    KEEPING TASK when receiving the results.
    The calls are all of the same RFM (e.g get_status of obj), just calling parameters changes ( in the generic example, the parameter: obj).
    In the receive method, I differentiate to which obj the result is related by exporting the obj_id on success of the RFM.
    My problem is when the status call fails. I just get an error message explaining what the problem is. But I don't get the exporting parameters.
    Do you have any idea how to solve this problem?
    kind regards,
           Sahla

    This is actually the workaround I made to go on.
    Actually the underlying logic in the RFM for getting the status is based on a synchronous call, as to say when you get the exception you know of which request it comes from.
    Therefore the exception messages and their parameters are well defined and according to the error situation filled with necessary data explaining the exception situation.
    Unfortunately the excpetion class used is based on the message T100 interface and has the limitations of just four message parameters and each of 50 charcter length.
    I overwrite the last message parameter with the needed obj parameter, taking the risk to overwrite valuable system responses explaining the situation.
    I thought there could be a more elegant solution from the framework itself.
    kind regards,
         Sahla

  • Multiple developers working on the same application/project

    Hi All,
    We have multiple developers working differnt components of the same application/project. As most of them are working on their local systems within their local projects which later has to be integrated as one application project I am afraid the integration would be a big challenge.
    Can someone suggest a way this can achieved without much additional effort and code/ functionality loss.
    Best regards,
    Divya Rao

    Hi Divya,
    I this can be accomplished by using JDI.This helps in easy integration ,version and change management.
    For more details refer to:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/03/f6bc3d42f46c33e10000000a11405a/frameset.htm">SAP Help</a>

  • How to switch between 2 windows of the same application using Cmd+Tab

    Hi,
    I am using my mac now since about 10 months. I was used to work with Linux and Windows XP.
    Something I am badly missing on mac os x is the possibility to switch between 2 windows of the same application using cmd + tab just like it simply works for Linux and Windows (and maybe many other OS out there!).
    Very often I have 2 text files open in 2 editor windows (e.g. TextEdit) and need to copy and paste text from one window to the other. I was used to simply use ALT+TAB. But here I have to get my right hand away from the keyboard and use the mouse to change the focus from one window to the other and then use the mouse again to get the focus back to the previous TextEdit windows.
    THIS REALLY *****!!!! It makes me crazy. I cannot believe that such a "modern" OP does not support this action. I must be doing something completely wrong or did not understand the mac correctly. Right?
    Does anyone have an idea how I can get mac to do something all other operating systems so easily do?
    Thanks
    Quartz84

    Hi Kappy,
    well what you are saying is obvious to me. This is not the point for me and not what I wanted to know. But I think you answered my question anyway: OS X is unable to switch between windows of the same application as I mentioned in my example.
    WHY NOT???
    Every other OS is able to differentiate between windows and not just applications.
    Another example: The Mail application and an Email editor window. When you are writing an Email and you want to switch to the main window of the Mail application to read something you must again use the mouse!
    I mean Apple seems to be "somehow" using FreeBSD in the background and even in FreeBSD's window manager it is possible to switch between windows of the same application.
    Well, in the Apple world it is always the pour user who is not intelligent enough to understand Apple's philosophy ;-(
    To me this is not modern, it is simply a weakness of the OS.
    Cheers
    Quartz84

  • How can I stop two instances of the same application?

    I have just installed Yosemite about a week ago on my MacBook Pro mid '10 and it's working great except for one little glitch.
    Whenever I double-click on a file in my Finder, not only does it open in the assigned dock Application, but a second instance of the same Application pops up on the dock out of nowhere. To be more clear, I have my PDFs set to Preview. I click on a PDF in my Finder and Preview starts jumping. Out of nowhere, another copy of Preview springs up on the dock and starts jumping as well. This opens that same PDF twice on my screen.
    I noticed this also happens when I'm installing a .dmg file. Two installers open at the same time when I double-click the icon.
    It doesn't happen if I right-click > Open or right-click > Open With.
    Any thoughts?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • How can I make different windows of the same application I have open remain on their respective desktops/spaces after reboot?

    Hi all,
    I use the same applications for work, entertainment and other personal activities, so it's impossible to simply assign different apps to different desktops/spaces. Thus, I have open windows of the same programs (Pages, TextEdit, Preview) arranged on several desktops. If I reboot my laptop, the windows are just crammed on Desktop 1. Can something be done about it?

    Barney,
    many thanks for your efforts and your time (preparing and posting the screenshot, answering to this question,...).
    Unfortunately, moving the focus to the next window only works with windows on the same desktop.
    btw, using a german keyboard layout and german language settings the shortcut is "cmd+<".
    I can switch with this shortcut between different windows of my Safari which reside on the same desktop, but I cannot swith between different safari windows distributed over several desktops.
    Thanks,
    equi    

  • Ajax - Multiple Values - Help with the code

    Hi all,
    My code is probably wrong, though, I don't know where the problem is. I'm not that good with programming and copied the example from oracle.com and modified it... I hope you guys can help me. Here is what I have:
    A select list: P4_DOBJ1_NR (The user selects something from DOBJ_NR from the table dataobject)
    A display as text item: P4_NAMSP1
    Another display as text item: P4_DOBJ_NAME1
    Here my code:
    HTML Header Setting for my select list-attribut:
    onchange="javascript:getDOBJ1Info(this);"
    The HTML header from my page:
    <script type="text/javascript">
    function getDOBJ1Info(filter)
    var xml = null;
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=GETDOBJ1Info',0);
    get.add('GOBJ1NO', filter.value);
    ret = get.get('XML');
    if(ret)
    var oneItems = ret.getElementsByTagName("NAMSP");
    if (oneItems)
    var onedisplay = document.getElementById("P4_NAMSP1");
    onedisplay.innerHTML = oneItems[0].getAttribute("VALUE");
    var twoItems = ret.getElementsByTagName("DOBJ_NAME");
    if (twoItems)
    var twodisplay = document.getElementById("P4_DOBJ_NAME1");
    twodisplay.innerHTML = twoItems[0].getAttribute("VALUE");
    get = null;
    </script>
    An application item, called: GOBJ1NO
    And the Application Process:
    DECLARE
    vONE VARCHAR2(100);
    vTWO VARCHAR2(100);
    BEGIN
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<DATA>');
    SELECT NAMSP, DOBJ_NAME INTO vONE, vTWO FROM DATAOBJECT WHERE DOBJ_NR = :GOBJ1NO;
    htp.prn('<ONE VALUE="' || vONE || '"></ONE>');
    htp.prn('<TWO VALUE="' || vTWO || '"></TWO>');
    htp.prn('</DATA>');
    EXCEPTION WHEN OTHERS THEN
    htp.prn('<ONE VALUE="Error"></ONE>');
    htp.prn('<TWO VALUE="Error"></TWO>');
    END;

    Your process returns a XML document with structure
    <DATA>
       <ONE> value one </ONE>
       <TWO> value two </TWO>
    </DATA>but you are trying to retrieve element named "NAMSP"
    so try to chang it to :
    var oneItems = ret.getElementsByTagName("ONE");You will find fantastic examples on Denes Kubicek web site:
    Try this url:
    http://apex.oracle.com/pls/otn/f?p=31517:106:1074750275898234::NO
    HTH
    Thomas

  • How to handle Multiple date formats for the same date field in SQL*Loader

    Dear All,
    I got a requirement where I need to get data from a text file and insert the same into oracle table.
    I am using SQL*Loader to populate the data from the text file into my table.
    The file has one field where I am expecting date date data in multiple formats, like dd/mon/yyyy, yyyy/dd/mon, yyyy/mon/dd, ,mm/dd/yyyy, mon/dd/yyyy.
    While using SQL*Loader, I can see Loading is failing for records where we have formats like yyyy/dd/mon, yyyy/mon/dd, mon/dd/yyyy.
    Is there any way in SQL*Loader where we can mention all these date formats so that this date data should go smoothly into the underlying date column in the table.
    Appreciate your response on this.
    Thanks,
    Madhu K.

    The point being made was, are you sure that you can uniquely identify a date format from the value you receieve? Are you sure that the data stored is only of a particular limited set of formats?
    e.g. if you had a value of '07/08/03' how do you know what format that is?
    It could be...
    7th August 2003 (thus assuming it's DD/MM/RR format)
    or
    8th July 2003 (thus assuming it's MM/DD/RR format)
    or
    3rd August 2007 (thus assuming it's RR/MM/DD format)
    or
    8th March 2007 (thus assuming it's RR/DD/MM format)
    or even more obscurely...
    3rd July 2008 (MM/RR/DD)
    or
    7th March 2008 (DD/RR/MM)
    Do you have any information to tell you what formats are valid that would allow you to be specific and know what date format is meant?
    This is a classic example of why dates should be stored on the database using DATE datatype and not VARCHAR2. It can lead to corruption of data, especially if the date can be entered in any format a user wishes.

  • How to make fields grow dynamically within the same page and in column wise

    Hi,
    Like the newspaper format: Where contents of news are shown columns wise.
    We need to make the fields in a page grow column wise within that same page.
    For example, in a page:
    Column 1 Column 2
    ASDASDASDGKASHDGKAA | ASDFASGFHSJFAJKSD
    ASDFASDFASDJFASGJKDFHA | ASDFASDASDFASDFASD
    AFSDFASDFASDHGFKASDFASD | ASDFASDFASDFASDFASDFA
    ASDFSDGFJASHDGFJKASHDGKFAS |
    ASDFAGASDHFKASHDGFHASDJKFHASJKHF |
    ASDFHASGDKFASDJGHFASDFJKSDGFJKAGSDJ |
    If the Column 1 is full with the fields in the page it should start filling the column 2 which is also in the same page.
    If the Column 2 is also full then only it should move to the next page and should continue the same scenario.
    Please suggest a better way to do this in the Adobe Output Designer.
    Thanks and regards,
    Gurunath V.
    E-Mail: [email protected]
    P.S: Please also mail to my e-mail ID.

    Hi Gurunath, if you steel need a solution on this problem, I think this could help:
    1- place two fields on the form (JF01, JF02), one under each other.
    2- Make two subform with them (Sline1, Sline2)
    3- Make the field JF02 expand on same subform.
    4- Modify the preamble in this way:
    ^define group:D_line1 \field$POSITION\reserve"0.333",in\subformSline1.\positionsave,"first_line"
    ^define group:JF01!OnOverflow \groupG_Sline2.\fieldJF02.
    ^define group:G_Sline2!OnBOF \positionrestore,"first_line"\positionright,"3.65",in
    In the data file put all the text in JF01.
    -The first line say:
    When JF01 is called, save it's y position (\positionsave,"first_line")
    -The second line means:
    when the text overflow JF01 put it in JF02.
    (cause JF02 overflow on itself all the remaining data is overflowed in JF02)
    -The third line means:
    if JF02 arrives at the end of the page (OnBOF), restore the saved position ( \positionrestore,"first_line") and move to the right of "3,65" inches (\positionright,"3.65",in).
    In other words, when JF02 arrive at the and of the age, the next field JF02 is positioned at the same height of JF01 and is shifted on the right
    Take care that in this way JF02 cannot anymore go o a new page.
    Hope this help.
    Andrea

  • How to create multiple Purchase Order  using the same document number?

    HI Friends,
    I m in a product which extracts data from SAP and stored in Access database.
    For that,while i extracting Purchase Order from the Demo Database (SBODemo_US)for OEC Computers,the same DocNum is used for several Purchase Order using Index Line numbers.
    eg:
    DocNum for Purchase Order1 -->3000   0 (Index)
      DocNum for Purchase Order2 -->3000   1 (Index)
        But i can't create multiple Purchase Order using same DocNum manually in SAP B1,Could anybody please help me <b>to create a Purchase Order using same DocumentNumber?</b>
    Thanks in Advance
    SooriyaKala.P

    Hi,
    The problem statement is not quite clear to me.
    As far as I understand your statement, I think you want to club multiple orders into one purchase order using the index incrementally.
    For this I think once you have created the first purchase order, open the purchase order in edit mode the second time and append the new line items.
    If I am getting you wrong please explain the problem statement in more detail.
    Regards,
    Rara.

  • How to upload multiple .CSV files in the same time.

    Hi Legends,
    Can anyone please help me to resolve my issue?
    This is very urgent and critical.
    Description:
    We have two users.1)edw_user_dump
    2)prd_udm.
    We need to upload the xx.csv file at the same time for these two users in oracle forms.
    we have differentiated .csv file name based on the user names.
    the main problem is in the sql loader command the xx.csv file name is created but the data is not captured in the server (kentucky) .
    Below is my code for the upload.
    -- To delete the Part_Mast.log file from the client
    DECLARE
    pid WEBUTIL_HOST.PROCESS_ID;
    v_result PLS_INTEGER;
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    BEGIN
    v_result := WEBUTIL_HOST.Get_return_Code(pid ) ;
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    END;
    DECLARE
    l_success boolean:=FALSE;
    l_bare_filename varchar2(100):=NULL;
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    BEGIN
    -- Delete the content of the log and bad file
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    --host('cat /dev/null > /tmp/Part_Mast.bad');
    -- Upload the data file to Application Server
    l_bare_filename := v_username||'_'||substr(:FIC_SOURCE,instr(:FIC_SOURCE,'\',-1)+1);
    l_success := webutil_file_transfer.Client_To_AS_with_progress
    (clientFile => :FIC_SOURCE
    ,serverFile => '/tmp/'||l_bare_filename
    ,progressTitle => 'Upload to Application Server in progress'
    ,progressSubTitle => 'Please wait'
    ,asynchronous => false
    ,callbackTrigger => null
    IF l_success THEN
    NULL;
    ELSE
    null;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    host('cat /dev/null > /tmp/EDW_CF_IO_UPLOAD.bad');
    end;
    BEGIN
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    v_password varchar2(30) := GET_APPLICATION_PROPERTY(PASSWORD);
    v_connect_string varchar2(30) := GET_APPLICATION_PROPERTY(CONNECT_STRING);
    a_host varchar2(500);
    BEGIN
    a_host :='/tmp/'||v_username||'_'||'"CF615 IO Upload.csv"';
    host('sqlldr '||v_username||'/'||v_password||'@'||v_connect_string||' '|| 'control=/home/edw_bis/ctl/GLB_CF_IO_UPLOAD.CTL'||' '|| 'DATA=a_host'||' '|| 'LOG=/tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log SKIP=1 errors=200000 DIRECT=FALSE');
    dbms_output.put_line(a_host);
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    EXCEPTION
    WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    end;
    DECLARE
    al_id3 ALERT;
    al_button Number;
    BEGIN
    edw_user_dump.SANM_PRC_MERGE_CF_IO_UPLOAD(:global.v_plsql_res,:global.v_ins_rec,:global.v_upd_rec);
    IF NVL(:global.v_plsql_res,0) = 0 and (:global.v_ins_rec !=0 OR :global.v_upd_rec != 0 ) then
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Completed Successfully!'||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
    al_button := SHOW_ALERT( al_id3 );
    ELSIF (:global.v_plsql_res IN(-1,0) or :global.v_plsql_res > 0) and (:global.v_ins_rec =0 and :global.v_upd_rec = 0 and :global.v_del_rec =0 ) then
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Failed. Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
    al_button := SHOW_ALERT( al_id3 );
    ELSE
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,'Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec );
    al_button := SHOW_ALERT( al_id3 );
    END IF;
    EXCEPTION WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    host('rm -rf /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    end;
    Thanks in advance!
    Thanks,
    Madhusudhanan

    Madhusudhanan,
    A couple of observations. First; always list your exact Forms version (eg; 10.1.2.0.2 not 10g R2). In most cases, the solution is different depending on the Forms version. Second; why must you use Forms to kick off a SQL Loader process? This is a server-side process and should be initiated by a server side process. If you absolutely must use Forms to kick off the process, again we need your Forms version in order to offer any solutions. Based on your code sample, I can asusme you are at least using Forms 9i becuase you are using WebUtil.
    Is your Database and Application Server the same physical computer? If they are not, this would explain why your HOST command isn't working because HOST runs against the Application Server not the Database server.
    Third; have you considered using and External Table (if your RDBMS version supports them) for each of the files you are attempting to upload? In this instance, it would be helpful to know your RDBMS version as well. External Tables can be a little frustrating to set up the first time, but as with any new construct you use - it gets easier the more you use it.
    Fourth; are you getting any errors in your log file(s)? If so, what are the errors? Please list the full error message if you have one.
    Finally, with respects to your statement:
    Posted: Mar 18, 2011 2:30 PM - Madhu This is very urgent and critical.>
    You have to understand that forum contributers are all volunteers - this is not our full-time job. If your issue is truely urgent I suggest you open a Service Request (SR) with Oracle Support! ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Problem using SET_TAB_COLORS with LAF

    I noticed that the unselected tab color is not getting picked up. I tried using the test_blaf_ebay form. I modified .GUIPropertiesEbay so that the unselected tabs would be light blue: tab-colors:r255g255b120,r162g179b201 ...but the color does not cha

  • Hello Everyone

    hello everyone, i am a student from singapore doing my project on jsp, can't seem to find the java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement. This is my code <%@ page import = "java.sql.*" %> <%

  • No compilation error but have problems when running.

    Hello all, After implementing the examples given from the TextComponentJavaDemo in Java Tutorials I tried to get the fonts to change text in the JEditorPane but to no avail. The problem I am having now is some java.lang.Null.PointerException . The er

  • Sporadic outgoing .mac mail

    Several times a week my outgoing mail via .mac or .me (doesn't seem to make a difference which I use) fails to send. I get a message that it failed for one reason or another, and usually I just switch to another address with my local ISP or comcast.n

  • Internal or External Style Sheet labels.

    This may be a stupid question, but how can I determine which styles are attached to an internal or external style sheet? I have modified text and messed up my whole site not realizing it was attached to an external sheet that was site wide. I can't s