Skip to Content
author's profile photo Former Member
Former Member

Transformation Routine to convert single record into multiple


I need your help with ABAP Syntax. My requirement is to take a single record and convert it to multiple records into a DSO with a condition to not create a record if a KF value is 0.

R/3 Data Record:

Employee | Date | Char1 | KF1 | Char2 | KF2 | Char3 | KF3 | Char4 | KF4

Conversion Result into DSO:

Employee | Date | Char1 | KF1

Employee | Date | Char2 | KF2

Employee | Date | Char3 | KF3

Employee | Date | Char4 | KF4 (This record will not be written if no value is in KF4)

I have read about the result table in update rules, however within BI 7.0 Transformations I am unfamiliar as to where the RESULT_TABLE function applies. Has this been replaced by the Expert Routine?

Could any ABAP expert provide sample code as to how I would perform this conversion in a Transformation Routine?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 02:24 PM

    it seems you can perform it in start routine. use operator APPEND


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Alex for your response.

      I did find a solution to this as it turns out to be fairly simple, however I executed the routine as an Expert Routine instead of a Start Routine. I was advised to do the transformation here.

      The basic concept is defined below:

      Loop at source_package assigning -kf2.

      Append result_fields to result_package.


      -- Kf3u2026 and so on


      Basically the APPEND statement is used to create the additional records.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.