cancel
Showing results for 
Search instead for 
Did you mean: 

Routine Question

Former Member
0 Kudos

Hello, Is it possible to send data that is in internal table to another DSO?

I have some data in internal table that I have manipulated and i don't want to write that data to my dso.  ok. in my end routine, can I use the INSERT command and send that data in another DSO?

Please let me know,

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member185132
Active Contributor
0 Kudos

It is possible but it is certainly a very bad idea to do so.

DSOs are not designed to be directly written into using the INSERT statement. The standard way to push data into a DSO is to write a transformation into it. Directly INSERTing into a DSO is not supported and nobody can guarantee consistency of data and deltas if you do that.

So for your requirement, create a transformation with the target as the other DSO. In that transformation, populate the source/result package based on what you want to send into the DSO.

Loed
Active Contributor
0 Kudos

Hi Sunil,

I agree with Suhas' suggestion..Better to write a routine in the transformation of DSO..

Regards,

Loed

Former Member
0 Kudos

Suhas, i agree with you. the issue here is that i am manipulating some data in an internal table. once I gather data in an internal table then I delete it (because i don't want to load that data). but i also want a report of those records. this is why i wanted to know if i can throw that data in another table and then build a report on top of it. and i thought may be i can insert the data from my transformation.

gabrielenosatti
Explorer
0 Kudos

Dear Sunil,

you can create a DSO for direct update and update its data manually, with the following functions: RSDRI_ODSO_INSERT

RSDRI_ODSO_MODIFY

RSDRI_ODSO_UPDATE

Regards,

Gabriele

Answers (3)

Answers (3)

former_member227168
Participant
0 Kudos

Hi

Its possible to load to internal table to DSO table.

But which table you want write data in DSO

In Standard DSO 3 types tables is there.

Thanks

Ramakrsihna

gabrielenosatti
Explorer
0 Kudos

You're not supposed to write in a standard DSO with ABAP. The loading is possible only via transformations, DTP and activation. You should use a DSO for direct update and then use the functions I wrote in a previous post.

Regards,

Gabriele

Former Member
0 Kudos

Dear Sunil,

Why you want to do that. If you want to do that then in End routine of 2nd DSO do the lookup on 1st DSO and get the desired data and manipulate accordingly.

Hope it will serve your purpose.

Best Regards,

KK

Former Member
0 Kudos

Using Read table statement Populated data from one target to another target