Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

To keep internal table data

Former Member
0 Likes
429

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

3 REPLIES 3
Read only

Former Member
0 Likes
411

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..

Read only

Former Member
0 Likes
411

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

Read only

Former Member
0 Likes
411

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.