cancel
Showing results for 
Search instead for 
Did you mean: 

how to duplicate the result package in the endroutine

Former Member
0 Kudos

Hi experts,

I have the following scenario:

I get from a DSO some records with company code 1201. For my scenario I need to replace this company code once with 9975 and once with 9971.

It means everytime when company code 1201 is coming, I need to copy those data and replace only the company code 1201 with 9975. Then I have to do the same (copying the data) but this time replacing 1201 with 9971.

Can anyone tell me how it is possible?

I really appreciate any help.

Thank you all in advance.

Best regards,

Ali

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey Ali,

just define a new variable type result_package, append all lines of result_package to the new variable and replace the company code. Again append all lines of the result_package to the new variable and relplace the company code with the next value. Then replace the result_package from the new variable. Don't forget to fill the record number.

I guess you will be able to do the coding by yourself.

best regards

Siggi

Former Member
0 Kudos

Hey Siegfried,

your advice was exactly what I was looking for. It solved my issue.

Thank you so much for that.

Kind regards,

Ali

anshu_lilhori
Active Contributor
0 Kudos

Hi Ali,

Can you please close the thread by marking correct answer.

Regards,

AL

Former Member
0 Kudos

Hi AL,

I'd like to do it. I cannot find any possiblity to mark the thread as correct answer though. Could you please tell me how to do it?

I appreciate your help.

Best regards,

Ali

Former Member
0 Kudos

Hi AL,

I found it and set the status on answered.

Kind regards,

Ali

Answers (0)