cancel
Showing results for 
Search instead for 
Did you mean: 

Add lines in Result_package

Former Member
0 Kudos

Hi guys,

I got a problem.

I would add manually some records in the result_package from the end_routine of a transformation between a datasource and a Ods.

(These records don't exist in the result_package and come from the ods-target).

I can with one record (this record takes field result_package-record = '0')

But It doesn't work with many records : all of these record take field result_package-record = '0', so there's an error at the update of the Ods.

When I try to give myself record to this field for the records that i add, i can't activate my transformation because an error : "DTP can't be modified or activated".

Can you help me?

Points will be assigned,

Best cheers,

Vince.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member655795
Discoverer
0 Kudos

There is a method to call from the transformation to add records to RESULT_PACKAGE.

From OSS Note 1223532 :

Data: result_fields_new type TYPE tys_tg_1.

...

  • Fill fields of result_fields_new of new record with your own code

...

CALL METHOD me->new_record__end_routine

EXPORTING

source_segid = 1

source_record = '----> see scenario description'

IMPORTING

record_new = result_fields_new-record.

APPEND result_fields_new TO result_package.

Former Member
0 Kudos

Sorry to high jack this thread, but in BW 3.5 (update rules), can we just insert lines directly into the DATA_PACKAGE and not use a special method call like for Transformations?

Former Member
0 Kudos

Hi Vince,

Try Defining an Internal table of type Result_package.Then use keyword

<b>Add lines of</b> your Internal table to Result_package.I think this will work.Try this.

Hope this helps

Regards

Karthik

Former Member
0 Kudos

I succeed in order to get lines into result_package (with append ... to result_package)

But after that, update of ods doesn't work...

Former Member
0 Kudos

I do transformation from the ods to the ods.

Points are assigned.

Best cheers,

Vince.