Error when updating back to ODS using tableview iterator.

I get this error when I try to execute my bsp page. The page collects a cell value that was edited on the previous page and updates it to the ods.
The error is "Function not possible in a captured session"
The termination type was: TH_RES_FREE
When I debug, every thing looks fine. ITab3 returns values it's supposed to. So I am not sure what's causing it to fail. Any ideas? Thanks.
Here is my code:
CLASS cl_htmlb_manager DEFINITION LOAD.
DATA: event TYPE REF TO cl_htmlb_event.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
if event->id = 'Update' and event->event_type = 'click'.
  DATA: tv TYPE REF TO cl_htmlb_tableview.
FIELD-SYMBOLS <i> LIKE LINE OF selectedrowindextable.
tv ?= cl_htmlb_manager=>get_data( request = runtime->server->request
                                 name = 'tableView'
                                 id = 'tv1' ).
IF tv IS NOT INITIAL.
DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
  tv_data = tv->data.
  refresh itab2.
  refresh itab3.
  call method tv_data->GET_ROWS_SELECTED
  receiving selected_rows = itab2.
  endif.
  data : ind type SELECTEDROW,
          row_s type row.
  if itab2 is not initial.
    data: rw LIKE LINE OF itab.
    loop at itab2 into ind.
    READ TABLE itab INDEX ind-index into
    rw.
    if rw is not initial.
    row_s = rw.
    append row_s to itab3.
    clear row_s.
    endif.
    endloop.
        MODIFY /bic/aNCN_O01300 FROM table itab3.
      ENDIF.
      endif.

hi Uday,
This is simple....
Use the function module
<b>1) For adding leading zero's or spaces...!</b>
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT   = lw_variable
IMPORTING
   OUTPUT   = lw_variable.
<b>2) and for removing leading zero's or spaces.....</b>
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
  EXPORTING
    INPUT   = lw_variable
IMPORTING
   OUTPUT   = lw_variable.
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.

Similar Messages

  • IPhoto had an error when updating and now says: "Use the Purchases page to try again."

         Before I went to school yesterday morning I started the iPhoto update so when I got back it would be done. So I looked to see if the update was finshed and it said: "An error haas occured" next to the update button. So I hit update again and it came up with what you see in the picture below.
    So I went to the purchase tab and tried again and the same thing happened again! What do I do? Thank you!

    Hi there!
    Did you get any explanation for that "8.8.8.8-solution"? Very strange but it seemed to work with me but only for some apps.
    My problem doesn't look the same though. I managed to download all big apps like iPhoto and Xcode but the small ones never get installed properly. I see they are being downloaded but after that I get "Installed" button and a message to use purchases tab again and the app is not installed on Applications folder.
    On ML 10.8.0 Mac App Store was downloading and re-downloading these small apps adn the only way I found to solve this was pause the download, add the 8.8.8.8 to DNS and resume. I worked for some apps.
    On ML 10.8.2 Mac App Store behavior is a little different, I only get "Installed" button shortly after having hit "Install" and cannot even pause. After reboot I see an error message in red "An error has ocurred".
    This is not happenning on Snow Leopard, what the heck have they done??
    I tried all suggestions, reset Mac App Store, delete cache folder, I don't have any anti-virus running,
    What's happenning? This is reallly annoying...
    L.

  • Invalid table name  error when updating object in collection using SQL

    Hi,
    I have pl/sql code where I am selecting a object from a collection using sql select query. I am processing this record and now I want to update the collection with the new object. ie. ensure that the object that was fetched be removed and this new one be added.
    considering my_ot is the object type and my_tt is the table type.
    DECLARE
    my_col my_tt;
    my_col1 my_tt
    my_var my_ot;
    my_var2 VARCHAR2(10);
    BEGIN
    // populating my_col1 with select query
    //populating my_col with select query
    FOR my_col1.FIRST .. my_col.LAST LOOP
    //populating my_var2
    BEGIN
    SELECT my_ot(c.field1, c.field2 ,c.field3) INTO my_var FROM TABLE(my_col) c WHERE c.field3 = my_var2
    //processing the field my_VAR
    UPDATE TABLE(my_col) c SET c.field1 = my_var.field1 , c.field2 = my_var.field2 , WHERE c.field3 = my_var.field3;
    EXCEPTION WHEN NO_DATA_FOUND
    my_col.EXTEND;
    my_col(my_col.LAST) := // new my_ot object
    END;
    END LOOP;
    Here, when compiling the update query is not being compiled. I am getting a error 'invalid table name'. Is there any way to modify an object in the collection without knowing its index?
    If not, is it possible to find the index of a object in the collection in select query?
    Thanks in advance
    Paddy

    Hi,
    Is there any way to find the index of a object in the collection? Then I will simply replace the object at that index, right!
    Thanks
    Paddy

  • Workflow status web part gives error when going back to previous stage (using GO TO) in Project Server 2013 workflow

    Hi,
    Workflow status web part gives error when going back to previous stage (using GO TO) transition activity  in Project Server 2013 workflow.
    Please guide how to create a workflow which restarts from a desired stage.

    Thanks for your prompt reply....
    It gives following error
    Workflow Status
    This Web Part was unable to load.
    Information that may be useful in solving this problem was written to the Unified Logging Service (ULS) log on the Project Web App with the following ID: e95a9c9c-1f68-90d7-0a3e-5951df70fec6
    For more information, contact your Project Web App administrator.
    what do you mean to restart the Project Server 2013 with different project name, please elaborate....

  • Error when updating ODS

    Hi,
      We got an error when updating ODS.
    The error message is "RSDRO_UPDATE_ODS".
    Its fetching all the records and its giving an error "when saving the aggregation information for ODS".
    We rectified the error.
    But how to fix it permenantly, what might be the reason for this error.
    Thanks in advance!!

    hI,
    I executed the program and there are no errors in the program and the program is active, but still we are often getting the error when updating the data in ODS.
    Please suggest me what might be the problem behind this....
    Thnaks in advance!!

  • Error when updating Playbook OS version via Blackberry Desktop Manager

    Greeting,
    I have a batch of old playbooks which having the stack charging issue, but I found that I can update the OS to the newest version (2.1.0.1917) via Blackberry Desktop Manager, then the charging algorithm will be changed to the updated one and go over this dead battery issue. I was able to do so successfully in the past week smoothly on several devices.
    But since this Monday, the Desktop Manager is saying "An updated Blackberry Desktop Software component must be installed before you can continue" when downloading the Desktop software and will appear "There was an error updating your software, an error has occurred while downloading the Blackberry Desktop Software.Please try again." and preventing the process. Seems there are some change on the server side starting this week which has caused this problem, but there's no error code to locate the exact issue.
    I tried on 2 different computers as well as completed uninstalling and re-installing the Desktop manager, also tried to disable the automatic update as been advised in some threads. So no clue how to deal with it for now. It will be highly appreciate if some one can share some idea.
    I've attached the step by step screenshots for reference, where you can find here:
    http://forums.crackberry.com/blackberry-playbook-f222/error-when-updating-playbook-os-version-via-bl...
    Thanks,

    BLock wrote:
    Sorry I can not help you with your problem but perhaps you can help me.  
    Can you advise where I can find info on "disable the automatic update"?
    just ignore the update if you dont want it on the playbook
    for reloading the OS
    First I would like you to do a Back Up of your PlayBook using your computer and BlackBerry Desktop Software.
    This can be downloaded for free from http://us.blackberry.com/apps-software/desktop/
    After the Back Up is complete I need you to unplug your PlayBook and then push and hold down the Power Button until the unit Force Powers Off.
    Now, while Desktop Software is still open on your computer and the PlayBook Powered Off, Connect the PlayBook to your computer.
    You should see and error screen from Desktop Software pop up that has the options to Retry, Update, or Cancel.
    QUICKLY choose the Update option.
    This will erase all the information off of your PlayBook and Re-Write the Software back onto it. Once it's complete your PlayBook will need to go back through the setup wizard, and you can then perform a restore using Desktop Software to return your information. The only thing that won't come back after the restore are the apps that you downloaded from App World but they can be easily Re-Installed using the My World feature in App World.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Avoiding concurrency errors when updating a database through AJAX

    What are some strategies for avoiding concurrency errors when updating a database through AJAX. That is, in cases where a given user could attempt to modify the same row in the database with simultaneous requests (say, that he updates one column with information with an AJAX call, then immediately submits a form that updates the same row), what are some good ways yo prevent the two updates from colliding? On the JavaScript side one might make the AJAX call synchronous, but I question whether that is the best way to do it. Has anyone else confronted this?

    Well, since no one seems to have any ideas so far, I'll throw in my two cents worth.
    I'm not too familiar with AJAX so my advice may be limited.
    I suggest you do a google search on Optimistic concurrency database to get some ideas on how to handle it.
    If your update/insert/delete query is thread safe, then even if the same user double clicks the button fast enough to immediately have another update to the same record, then the first update will complete before the second one is carried out. Therefore no harm is done since he is just updating the same record. Since a typical update/insert/delete takes only a few milliseconds (querying may take a lot more time), its not likely he can click the button that fast. (I assume your using connection pooling for speed).
    The trouble comes up when two people call up data from the same record in different browsers. The first one updates/inserts/deletes the record. Now the other user is looking at old data. When he updates/inserts/deletes, there is a problem. One way to handle this is to keep a copy of all the fields from that record in each user's session scope when they first fetch it from the database (example: oldName). Then when you go to update some time later, to this:
    sql= update person set name=newValue where personID=3344 and name=oldName
    Note oldName is from session scope.
    If name in the database has changed, the update will not occur and will return 0 records updated. If it didn't change, it will update.
    Note your update function should not throw an exception if it cant update, it should return false. Return true if it worked.
    Example: public boolean updateName(String name)
    Similiarly, your insert should not throw an exception if the record already exists, it should return false meaning it cant insert.
    Exaple: public bolean insertName(String name). Same thing with delete function.
    If a record cant be updated due to someone else updating the record while the user was looking at data, return a message that it wasn't updated due to that problem. Then show the user the new value in the database ask him if he wants to overwrite the new change.
    Note even if you show 100 records on the JSP, only update the ones that have changed and not all 100. This way, its not likely he has updated the same records someone else has altered. Less likely a colision compared to updating all 100.
    If your updating/inserting/deleting more than 1 record (say, 3), then you should look into setting up a transaction in addition to all the above and rolling back all of them if one fails.
    Reading the section on databases from http://www.javapractices.com/home/HomeAction.do may also help.

  • Error Loading Hierarchy Error when updating Idocs in Source System

    Hello  Friends,
         I am loading  hierarchy data  using Info pac into  0FUNDS_CTR . I have selected  a hierarchy under hierarchy selections tab  in the Info pac .
    All Partner profiles in WE20 seems OK .   But When I loaded data , throwing errrr message  as below
    Error when updating Idocs in Source System
    Diagnosis
    Errors have been reported in Source System during IDoc update:
    System Response
    Some IDocs have error status.
    Procedure
    Check the IDocs in Source System . You do this using the extraction monitor.
    Error handling:
    How you resolve the errors depends on the error message you get.
    When I checked in TC WE05 says that  IDoc: 0000000000355113 Status: Error during syntax check of IDoc (outbound) with status 26 .
    Please advice .
    Many thanks

    Hi  Krishna4bi,
    Actually we will monitor idoc status in BD87 in SAP BI As well ECC , while extracting the data from source sytem  if any idoc struck we will manually process in BD87 , But you are telling that while loading the datasource the error occurred , so please check once in ECC side . Otherwise see how many packets are still process, make it red that infopackage and do manually update.
    Hope it helps,
    By,
    Praveen Yagnamurthy,
    SAP BI Consultant,
    Blue Marlin Systems-INDIA.
    http://bluemarlinsys.com/bi.

  • Error when updating Idocs in Source System

    Hi All,
    We did a recent copy from QAS to DEV,after which am unable to run my process chains ,the load status still showin yellow signal,whereas job is getting finished but am unable to load datas to the targets. Am getting the following error message when i see the display message in process chain.
    System Response
    Some IDocs have error status.
    Procedure
    Check the IDocs in Source System . You do this using the extraction monitor.
    Error handling:
    How you resolve the errors depends on the error message you get.
    Error when updating Idocs in Source System     
    Could anyone please let me know what can be done ?
    Thanks
    con

    Hello All,
    I have same problem but its RESOLVED by the following process.
    Step - 1
    execute  the Function module "SCP_LANGUAGES_IN_INSTANCE".  It may or maynot give some output. Just note if it give the output
    Step - 2
    in Transaction SE38 execute the program "RSCPINST".
    Just Click on the Activate button (dont select anything).
    Step - 3
    Again do the same thing specified in Step - 1.  Now it will give the output saying that Language is DE.
    So by the above procedure my issue is been resolved.
    Regards
    Sankar

  • Error when updating! Help please!!

    I've been having a problem with the artwork updating on my 5th iPod. I kept getting an error when updating in iTunes whenever I added artwork to songs. So I was told to go into iTunes and go under iPod options and UNCHECK the box to display the artwork on my iPod. Then click okay. Then, go back into it and CHECK the box TO display the artwork and I get an error; "..Unknown Error occurred (-50)". Same error. And yes I have pressed the center button on my iPod to scroll through the different things. And I have restarted the program and computer. Tried disconnecting hte iPod, closing the program, restarting computer, restarting iTunes and reconnecting iPod and every combination of the steps (I've done many searches on this subject here) and same result. I've tried other different things but it all ends up to this error. Can some one please help me
      Windows XP Pro  

    Hi Melophage,
    I managed to do a OS X Recovery Reboot by restarting my computer and holding down Command and 'R'. I reinstalled OS X, and now my computer is working again.
    However I'm going to take my computer into the Genius bar for review.
    I have a Macbook Pro from 2012 (with a 2.6 GHz Intel Core i7 Processor) and was attempting to update OS X (I think Version 10.8.5).
    Many thanks for your message.

  • Recd following error when attempt to open ebook using ADE 4.0  : "Unable to Download. Error getting License. License Server Communication Problem: E_LIC_LICENSE_SIGN_ERROR" iMac 10.8.5  Chrome Version 37.0.2062.124

    recd following error when attempt to open ebook using ADE 4.0  : "Unable to Download. Error getting License. License Server Communication Problem: E_LIC_LICENSE_SIGN_ERROR" iMac 10.8.5  Chrome Version 37.0.2062.124
    chat with customer service at book company i purchased file:
    "Me: I installed the proper adobe software, adobe digital editions 3.0 (now have updated to 4.0) on my mac running os 10.85 however I am getting the following error code when i try to open the file:
    "Error getting License. License Server Communication Problem:
    E_LIC_LICENSE_SIGN_ERROR"
    Charles P.: Okay, what you need to do unfortunately, is contact Adobe at  http://www.adobe.com and they will need to get your license issue resolved.
    Charles P.: Is there anything else I can assist you with today?
    Me: title of error is    Unable to Download
    Me: i dont see how that would be an adobe problem?
    Charles P.: I understand, but it appears that the reason for the download issue is because of the license error the license is related to the Adobe Digital editions software. I understand how this could be confusing but it's due to the authorization of the ADE software. Adobe would need to correct your account issue with the license
    Me: ok but i thought this was a free license from adobe??!!  this is just a digital editions reader, right??
    Charles P.: That is correct it is a free license but your account has to be associated with one license and yes the Digital edition is a ebook reader that our ebooks use for you to view

    Well, just for the halibut I tried opening the book again today and , GLORY BE!,  it worked.
    Guess it may have taken overnight for Adobe to OK my license to their free ADE software. Also works now using Bluefire app as the reader on my android phone, although it was a pain
    to get the book file in the right file folder for bluefire to see it.
    I hope that time also heels the issue with all other Error Getting License users.
    panman

  • Error when updating software (OS6) for BB9300

    Hi,
    Please help me, when I try updating the the OS of my BB9300 it says : there's an error when updating your software.
    I  want to update my OS to OS6. 
    PS, I use BB Desktop Software Manager.
    Many Thanks! and Godbless!

    Multiple posts of the same message:
    http://supportforums.blackberry.com/t5/BlackBerry-Curve/can-upgrade-my-OS/m-p/3012574#nobanner
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • After deleting i tunes because of an error when updating, i cannot install 10.6 on my win vista laptop. when i select download, it loads for 3 secs then displays... thankyou for downloading but nothing has happened

    after deleting i tunes because of an error when updating, i cannot install 10.6 on my win vista laptop. when i select download, it loads for 3 secs then displays... thankyou for downloading but nothing has happened

    Try downloading it with another browser.
    If that doesn't work, try following along with this Apple article -> iTunes: Downloading iTunes for Windows using Internet Explorer

  • Error when updating HANA Live Authorization Assistant

    Hi Guys,
    I'm trying to use the HANA Live AAA component for the creation of HANA Roles and it works fine when trying to generate the roles but it throwing me an error when updating them. The error happens at the beginning when the plugin attempts to load the Users from ECC. The message is:
    SAP DBTech JDBC: [1300]: fetch returns more than requested number of rows: [1300] "_SYS_BIC"."sap.hba.tools.auth.db/GetUsers": line 20 col 1 (at pos 1770): [1300] (range 3) fetch returns more than requested number of rows exception
    Anyone has gone through this error before??
    Thanks!
    Cheers.

    Ok Guys. No answer to this just yet.
    We decided not to use the tool and build our security with HANA security functionalities. It takes a bit longer but It's more robust in the long run in terms of maintenance.
    Cheers.
    Christian.

  • Got error when updating to ios 5.1

    got an error when updating to 5.1 and now phone will not reset. stuck on black screenwith apple on it. i have tried replugging phone into comp but it will not come up in Itunes. I am using a PC by the way.

    Possible, but not 100% sealproof. -1 can happen in a variety of situations, not always jailbroken. It's a baseband error and while the risk of getting that error is higher on a non-factory unlocked device, it can still happen.
    Even if OP was jailbroken and removed the jailbreak, it's quite difficult, if not impossible to tell the device has been jailbroken before if restored as brand new.
    Take the device to an Apple Store for evaluation.

Maybe you are looking for