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

How to separate the internal table columns into separate internal tables.

Hi Experts,

  • I have an internal table with 400 rows and 15 columns. I want to separate the 3 columns in one internal table and remains 12 columns in separate internal table .
  • I want to do the logic(convert the 12 columns into 12 rows) . But finally i want the table with both table values like 3 columns as itself and

follows the converted table.

  • I knows how to do the logic. but first of all, i want to know ,how to split and conjoin it ????

Help me to work out this.

Thanks in Advance !!!!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 17, 2012 at 08:56 PM

    Hi Yogesh,

    You can declare two internal tables, one with 12 columns and other with remaining 3 columns.

    Loop the main internal table, move corresponding values into newly declared table's workarea and append the recoreds.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Shravan Kumar Narendruni
      • I created three structure, one for full table, another for first 3 columns and next for remain 12 columns.
      • Then, i create fields and dynamic structure using LVC_S_FCAT sap global structure.
      • By calling Method CL_ALV_TABLE_CREATE, I give the input as created fields and get the dynamic table.
      • Then its simple, i append first 3 columns into <f> and perform conversion using sy-tabix+3 for remaining columns and modify into the <f>.😊
  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2012 at 12:56 PM

    Thanks All..

    Thread is closed !

    Add a comment
    10|10000 characters needed characters exceeded

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.