Showing results for 
Search instead for 
Did you mean: 

Passing variables between tasks using save_data and get_data function in HCI-DS or CPI-DS

Former Member
0 Kudos


I wanted to pass the record count value of particular table from one task to another task. Hence I used save_data function first task. I couldn't choose any variable so I saved it using job_name() function.

save_data(job_name(), RECORD_COUNT)

This was the mapping done in one of the temp column in the transform.

When I tried to fetch the value in second task. It is not working and returning NULL value.

I thought save_data would create a persistent variable.

Please help. Also let me know if there are options from for above requirement.



Accepted Solutions (0)

Answers (1)

Answers (1)

Active Participant
0 Kudos

Hello Anil,

Not sure, if you can use "save_data" in Flow 1 and use "get_data" in Flow 2.

Save data and Get Data can be used to save & retrieve data from previous run of the same job.

are you following any SAP Document ? does it use save data between 2 Task or 2 runs of same task.

with regards,