Application Development 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: 

Pass data via Memory into update task

former_member182295
Participant
0 Kudos

I have to pass data into an update task from my application. I tried export/import but the memory id cleared by the time I get to the update task. Here are what I believe to be the two best solutions with my problem with each - can anyone give some guidance on which is best:

1. Instantiate a class with set/get methods. My problem - In the update task, how can I reference the instance of my class that I created earlier? Is this possible, I don't know how to code this.

2. Create a shared memory enabled class and a shared memory area. Problem - (if I can figure this out) I'm pretty sure it will work, but it may be overkill for what I need and I've never done this before. Plus, I'm not positive how to make sure two separate transactions running at the same time don't cross over and read the memory of the other transaction.

3 REPLIES 3

Former Member
0 Kudos

Mike,

"pass data into an update task from my application"??

Is the data being passed into a custom program or a core program? If core, what is the prog/t-code in question?

0 Kudos

I need to get my data from the unload transaction (/scwm/unload) to a function module called from a PPF action in SCM.

0 Kudos

I've found this question in the history, and I have the same problem. Does anybody how to solve this question?

"I have to pass data into an update task from another program (see program names below). I tried export/import but the memory id cleared by the time I get to the update task. Here are what I believe to be the two best solutions with my problem with each - can anyone give some guidance on which is best:

1. Instantiate a class with set/get methods. My problem - In the update task, how can I reference the instance of my class that I created earlier? Is this possible, I don't know how to code this.

2. Create a shared memory enabled class and a shared memory area. Problem - (if I can figure this out) I'm pretty sure it will work, but it may be overkill for what I need and I've never done this before. Plus, I'm not positive how to make sure two separate transactions running at the same time don't cross over and read the memory of the other transaction."

PROGRAMS:

ZXMCVU06 - EXPORT TO MEMORY or SET PARAMETER?

LJ1BAF01 - IMPORT FROM MEMORY or GET PARAMETER?

Thanks in advance,

Janete