Insert or copying a Item with PL/SQL

When I insert a item in one page, I need copy off this Item in another page.
Someone can help me?

Programmatically you can use the wwsbr_api.add_item method
refer the api here.
</br>
Regards,
Krishna

Similar Messages

  • Populating item with pl/sql function body

    Hi,
    I want to populate a "Display as text (saves state)" item with the difference of 2 other items.
    The source of my item is:
    - Only when current...
    - PL/SQL Function body
    - Source expression:
    DECLARE
    v_diff NUMBER;
    BEGIN
    v_diff := :P1_AUFWAND_TOTAL - :P1_AUFWAND_BERECHNET;
    return v_diff;
    END;
    Now I get this error:
    ORA-06502: PL/SQL: numerischer oder Wertefehler: Fehler beim Konvertieren von Zeichen zu Zahl
         Error      ERR-1904 Unable to compute item default: type = Function Body...
    I tried to track down the problem with to_number conversion:
    v_diff := to_number(':P1_AUFWAND_BERECHNET'); or
    v_diff := to_number(':P1_AUFWAND_BERECHNET', '999G999D00');
    What's wrong here? It feels like I'm making a simple mistake...
    Thanks for any help,
    Roger

    Hi Denes,
    Thanks for your help. You were right, item :p1_aufwand_berechnet was not a number.
    I created the problem myself by setting the format to:
    return TO_CHAR(v_aufwand,'999G999G999G999G990D00');
    Now the dilemma is that I want to calculate the numbers, but at the end I want a nice format to display them. This obviously only works with TO_CHAR, see:
    Re: Number format mask of text item is not applied
    Maybe this is to be solved with a seperate process after the calculation, to set the format?
    Cheers,
    Roger

  • Problem when Copy PO item with customer fields

    Hi all,
    I've added few customer fields to PO item customer screen via enhancement MM06E005.
    All works well besides item copy functionality - the system creates new PO item and copies everything besides my 2 customer fields.
    Any idea why + how 2 solve ? Is it working via BADI ME_GUI_PO_CUST ?
    Thanks in advance,
    Sagit

    Hi,
    1)Check whether you have set the changes flag in function exit EXIT_SAPMM06E_018 with Z include ZXM06U40 as
          E_CI_EKPO-ZZBNO = WA_EKPO_CI-ZZBNO."Say your Z field
          E_CI_EKPO = 'X'.
    2)Check the following note [SAP Note 407975|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=407975]
    Thanks & Regards,
    Faheem
    Edited by: Md Faheem on Oct 27, 2010 11:28 AM

  • Cannot backup my files / copy my files and folders due to error message " The operation can't be completed because an item with the name ".DS_Store" already exists. "

    Hi Apple community!
    I have a [rather worrying] problem.
    When I try to copy all my files from my documents on my mac [or the entire documents folder] into an external drive, I get this error message
    " The operation can’t be completed because an item with the name “.DS_Store” already exists. "
    I am not given an option to skip this file or anything else.
    But I simply cannot complete the operation!
    I have tried deleting a few of the .ds_store files, [both in the original and in the destinations]
    but no success.
    The same thing keeps happening.
    At first, this was just happening when I was trying to backup to my dropbox folder [the one on my mac's harddrive, which gets synced to the cloud],
    but then I tried to back up my documents to my external hard drive, and I realized it is giving me the same error message.
    So effectively, it seems I cannot backup my files anywhere!
    Any help or advice would be greatly appreciated.
    Thank you.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot 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, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Problem with copying to external drives 10.8.3 "the operation can't be completed because an item with the name .ds_store exists"

    After upgrading from 10.7.5 to 10.8.3 I cannot copy certain folders to any external drive. the operation can't be completed because an item with the name .ds_store exists. I have seen this problem in discussions for many years with no real solution. Does anyone have a resolution? Please help. This is very frustrating as I work in two locations and copy folders back in forth all the time.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs. The next normal boot 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, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Trying to compare item with number in PL/SQL report

    Hi,
    I'm using for my report SQL Query (PL/SQL Function body returning SQL Query). And I found that I can't to write:
    if v('ITEM_NAME')=1 then ..., because it is 'missing expression' error.
    I can only
    if v('ITEM_NAME') IS NULL then ...
    or
    if v('ITEM_NAME') IS NOT NULL then ...
    Why I can't to compare item value, for example, with number?
    Thanks!
    Karina.

    Hi,
    I'm using my own htmldb installation. The reports' code is:
    DECLARE
    q varchar2(10000);
    v_lesst_str varchar(255);
    v_lesst_stmt_2 VARCHAR2(100):='select lesst_id from lesson_types';
    v_meas_str varchar(255);
    v_meas_stmt_2 VARCHAR2(100):='SELECT meas_id FROM project_measures';
    BEGIN
    if v('P16_LESSONS_TYPE') is null THEN v_lesst_str:=v_lesst_stmt_2;
    ELSE v_lesst_str:=v('P16_LESSONS_TYPE');
    END IF;
    if v('P16_PRO_MEASURE') is null THEN v_meas_str:=v_meas_stmt_2;
    ELSE v_meas_str:=v('P16_PRO_MEASURE');
    END IF;
    q:='SELECT distinct ul.title, ul.summary, ul.details, ul.less_id
    FROM user_lessons ul
    WHERE ul.lesst_lesst_id IN ('||v_lesst_str||')
    AND ul.meas_meas_id IN ('||v_meas_str||')';
    return q;
    END;
    The error is occurred when I'm trying to compare item with number, for example, v('P16_LESSONS_TYPE')=1 in if condition.
    And the errors' text is next:
    "#1 error has occurred
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00936: missing expression"
    Karina.

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

  • HT5767 My mail all of a sudden would not allow me to delete messages in my inbox saying, "couldn't be copied to "Messages" because an item with the same name already exists." Found it duplicates the message I wanted deleted in trash.

    Still  using the @mac.com   mail  address and up   to date on everything, but have not gone to Maverick.  All of a sudden Mail wouldn't let me delete.  Said that title of email was already in trash.  And sure enough it was.  Clicking on the help button on the message gets Nothing.
    The selected topic is currently unavailable.
    The topic you were trying to view could not be found.
    "couldn’t be copied to “Messages” because an item with the same name already exists."
    Any ideas.  My mail is not tied to gmail etc.. just all by it's lonesome.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot 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, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • How to insert sharepoint list item attachment to sql server db programatically

    Hi,
    I need to insert sharepoint list item attachments to sql server db programatically. Could some one suggest some approach and if any one work on it please provide the code. Thanks in advance

    hi,
    you can do it using powershell. Use the below script to loop through all the items attachments inside list.
    $web = $site.RootWeb<br />
    $Lists = $Web.Lists[$ListName]
    $Library = $web.Lists[$LibName]
    foreach($listItem in $Lists.Items)
    if($listItem.Attachments.Count -gt 0)
    Write-Host "**************************************************"
    Write-Host $listItem.Attachments.Count"Attachment(s) available in the ListItem:" $listItem.Title
    Write-Host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
    $i=0
    foreach($attachment in $listItem.Attachments)<br />
    $i++
    Write-Host $i".Attachment Name:" $listItem.Attachments.UrlPrefix$attachment
    $file = $web.GetFile($listItem.Attachments.UrlPrefix+$attachment)
    Write-Host "Adding Files to Library:"$Library.Title
    $bytes = $file.OpenBinary()
    Write-Host "Successfully Added"<br /> Write-Host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
    Write-Host "**************************************************"
    And use the below script to insert into SQL.
    #Connect to DB
    $DB = “server=MyInstanceName;integrated security=sspi;database=Bob”
    $conn = new-object System.Data.SqlClient.SqlConnection($DB)
    #Build the command and parameters
    $cmd = New-Object System.Data.SQLClient.SQLCommand
    $cmd.CommandType = [System.Data.CommandType]‘StoredProcedure‘
    $cmd.Parameters.Add(“@Col1″, [System.Data.SqlDbType]‘VarBinary‘)
    $cmd.Parameters[“@Col1″].Size = -1
    $cmd.Parameters[“@Col1″].Value = $bytes
    $sql = "INSERT INTO <table> (Col1) VALUES " + $cmd.Parameters[“@Col1″]
    #Execute the command
    $conn.Open()
    $cmd.ExecuteNonQuery()
    P.S. There may be some syntax error you have to make it work but the concept is right.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Help with what should be an easy workflow.. copy finder item

    Hello,
    I am writing a workflow to backup a folder to an external hard drive. The flow first copies the folder to the desktop, then re-names it with the date and then should be copying it to an external fire-wire hard drive.
    The problem is that the "copy finder item" does not work - only the last sub-folder in the folder actually gets copied. I can't figure out what the problem is. This seems to affect both the copy to the desktop and then the subsequent copy to the firewire drive. Puzzlingly, it sometimes seems to work and copy the whole folder!
    Any advice?
    Jonathan

    Well, I don't know what's causing your problem, but let me suggest an optimization. Unless you have a specific reason to want this, there's absolutely no reason to copy the folder twice. Right now, you're copying to the desktop, renaming the folder, then copying to the external drive. Presumably, you must at some point delete the copy on the desktop. Copying twice means the backup will be half as fast as it could be. It also introduces extra room for errors by increasing the complexity of the task.
    Instead, copy the folder to the destination on the external drive, then rename it once it's there. Perhaps, if you're lucky, in making this change, your problem will solve itself.

  • Copy/paste "Error list" Items with errors as plain text ?

    When I attempt to run a Labview project main.vi I get a long "Error list" window, listing many .vi files within the .lvproj as "Items with errors". I would like to get this listing as a plain text file for documentation purposes (another developer checked this code in, and it is supposed to be working).  However the small window cannot be resized very much and it is not a plain text field that I can copy and paste in the normal Windows way. Is there a way to export these errors as plain text?

    Thanks for the responses. I'm using Labview 2014 SP1 Version 14.0.1 (32 bit) on Windows 7.
    Certainly I do need to talk with the other guy but he won't be back for some weeks.  The errors I have cause a "broken arrow" condition so the program does not even start. Does an error handler at the end help me in that case?  Yes I can do a screen shot, but there are so many errors it would take about 5 screen shots to scroll through the (fairly small, non-resizeable) dialog box and capture them all.  
    I was hoping for an easy way to capture this,  but now my guess is that LabView was just not intended to work that way.  I'm more used to other programming environments, where errors were always available in plain text format.

  • Cannot delete read mail. Keep getting the following message "926540.emlx" couldn't be copied to "Messages" because an item with the same name already exists.

    I am trying to free up room on my hard drive but keep getting the following message. “926540.emlx” couldn’t be copied to “Messages” because an item with the same name already exists. 926540.emix is the number given to the email I want to delete. This message appears (with a different .emix number) when I try to delete any mail. I have junk mail from 2014 to 2009 that I want to delete

    Back up all data. Rebuild the mailbox. Try again to delete the message.

  • When deleting messages I get this message:"74608.emlx" couldn't be copied to "Messages" because an item with the same name already exists.  How can I fix this problem?

    When trying to delete messages in mail, I've been getting this message:“74608.emlx” couldn’t be copied to “Messages” because an item with the same name already exists."  The numbers at the beginning are always different but the ".emlx" and the rest of the statement is always the same.  How can I fix this problem?
    Thanks
    Candy777

    HT2500 Error when deleting email: Apple Support Communities

  • "91590.emlx" couldn't be copied to "Messages" because an item with the same name already exists. How do I fix this?

    The delete button in Mail gives me this message: “91590.emlx” couldn’t be copied to “Messages” because an item with the same name already exists. The only thin that has changed is an OS update last evening. (Mountain Lion)

    Thanks...it was spooky seeing the mail in my box suddenly disappear and blank after going to Mailbox and Rebuild.  But "poof" it was up again and was able to delete without the messages telling me it had a duplicate in trash (which it did).  Solved the problem.

  • Messages could not be moved to the mailbox "Trash - "122730.emlx" couldn't be copied to "Messages" because an item with the same name already exists.

    Cannot move messages from mail to trash.  Get the following message:    messages could not be moved to the mailbox “Trash — “122730.emlx” couldn’t be copied to “Messages” because an item with the same name already exists.

    I just started having the same problem but have found no solution.

Maybe you are looking for