‎2008 Aug 28 7:01 AM
Hi,
My scenario is like that
I have zreport and from that at line-selection i am calling my z dilaog program.
there I am manipulating and filling the internal table and getting the output.
But after pressing 'BACK' button I am going to zreport again ang in this position when I am calling again z dilaog program from at line selection I want that previous Internal table value should be as it was. and after manipulating I can add another rows..
But here in my case after getting back the internal table value is going to be refresh...
I dont want to refresh...
Can anybody suggest me how to do..it with simple coding.
Thanks
kumar n
‎2008 Aug 28 7:08 AM
hi,
if you have already done in this way then there is a way to get tht internal table filled as its in the zmodule program...
and the way is export the internal in zmodule program.
and ipmort the table in your z report program...
that is the only way you can get the internal table filled in your scenario....
hope this will help u..
‎2008 Aug 28 7:10 AM
use memory id and get the internal table value again.
export <table> to MEMORY ID 'PHOTO'.
IMPORT <table> FROM MEMORY ID 'PHOTO'.
Regards
Anbu B
‎2008 Aug 28 7:24 AM
hi kumar ,
one of the solution for this problem could be that
you can use two table of the type you what to populate the Dialog
that you can append one table form the ane which u have used in Screen
by doin so u have a table same data in both table. So when u push 'back button' the first
will table be cleared , but u have data in another one so then again u can
populate the screen with this table
example :-
for goin back:-
LOOP AT temp_itemdetail.
MOVE-CORRESPONDING temp_itemdetail TO it_itemdetail.
APPEND it_itemdetail.
ENDLOOP.
REFRESH temp_itemdetail.
again to the same screen ;-
this will give u data at the screen
LOOP AT temp_itemdetail.
MOVE-CORRESPONDING temp_itemdetail TO it_itemdetail.
APPEND it_itemdetail.
ENDLOOP.
REFRESH temp_itemdetail.