‎2012 May 04 8:09 AM
Hi Gurus,
I'm in a situation wher in When i click "SAVE" button , the data entered in the Table control screen gets cleared (though it will be saved in Database Table).
i need it to be remain in the Sceen itself, How can i do it.
Suggestions please.
‎2012 May 21 1:33 PM
Hi Rohan,
May be you are not putting Modify statement in proper place inside PAI event.
You just have to Update the contents of work area (selection screen) into internal table which is used to
display final output by Transporting Field names which you are passing on screen using proper INDEX.
Also see to it that , the contents of final internal table are not modified by previous values because of incorrect sequence of code.
Regards Sachin.
‎2012 May 04 8:19 AM
‎2012 May 04 8:35 AM
Hi Kesavadas,
no no you got me wrong,
the thing is Behind SAVE Button i have written code for change(update) ,
i.e., i have two buttons in my application SAVE and SUBMIT.
SAVE updates the table temporarily, if we make changes it should update.
where as SUBMIT saves the data into table permanently.
for this reason i need the data in table control to be reatined there it self.
regards.
‎2012 May 04 9:46 AM
Check your PBO flowlogic.In the PBO you have to loop the internal table and pass the values to the structure defined in the table control .
In your case after save the temp internal table should be used to pass the values to your table control structure
LOOP AT t_test INTO s_test WITH CONTROL tc CURSOR
tc-current_line.
ENDLOOP.
With regards,
‎2012 May 21 1:20 PM
Hi Naveen,
i did the same as you said,
coding what i did in my program is same but once you click SAVE button the values get dissapeared from the screen.
‎2012 May 04 10:01 AM
‎2012 May 21 1:33 PM
Hi Rohan,
May be you are not putting Modify statement in proper place inside PAI event.
You just have to Update the contents of work area (selection screen) into internal table which is used to
display final output by Transporting Field names which you are passing on screen using proper INDEX.
Also see to it that , the contents of final internal table are not modified by previous values because of incorrect sequence of code.
Regards Sachin.
‎2012 May 21 1:50 PM
Hi Sachin,
let me explain my scenario,
When i click 'SAVE' Button, i call a class method say "create". in create method i have written code for data to go and store in table.
so i didn't add any extra internal table, the only internal table i used is one which bring sits in Export parameter.
what can i do as a best practice. i didn't use modify statement , instead i used insert statement.
Thanks & Regards.
‎2012 May 21 2:19 PM
Hi Rohan,
As per my assumption , after pressing the SAVE button some other activity ( triggering of select querry which in turn updating Internal table ) is getting crried out , which is updating the internal table and thus the contents of the inernal table (values on selction screen which you have passed) are getting overlapped with the blank values and you are getting nothing on selection screen.
In order to overcome this issue, I suggest you to debug after pressing SAVE button
Regards Sachin.