on 11-27-2007 4:07 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.