Skip to Content

Issue with editable cell of a tableVIew...

Hi All,

I have a tableView with 4 fields, one of the fields QUANTITY is editable .

Now for ex. if there are 5 rows in the TV , if the user selects all 5 and then enters value for QUANTITY field and clicks on the SUBMIT button , the user is navigated to the next page and i can capture these values in my itab,

but if the user selects one row and enters value for QUANTITY field and then selects the second row , ROWSELECTION event is triggered and the page is refreshed ,

so when the page is displayed agan the value enterd in the QUANTITY field for previous row is gone and the fiels becomes blank.

how to show the value for this field , after the page is displayed again after refreshing????

Thanks,

Anubhav.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 14, 2008 at 06:06 AM

    you have to capture it in oninputprocessing and pass it to the abap variable to retain the value

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi ,

      As suggested by RAJA , i added the field QTY to the itab_materials ie being used to populate TV , and captured the value of QUANTITY field on ROWSELECTION event and updated the itab_materials.

      But each time the MYROWSELECTION event is triggered , the value of attribute PREVSELECTEDROWINDEX is 0.

      So i used PREVSELECTEDROWINDEXTABLE .

      I still need the reason of PREVSELCTEDROWINDEX being initial always....

      Thanks All,

      Anubhav.

      Edited by: Anubhav Jain on Jun 17, 2008 2:46 PM

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.