Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Swapping Rows and Columns

Former Member
0 Likes
1,191

Hi Gurus,

   First let me apologize if this is a silly question, I am very new to programming and ABAP. I am having difficulty with a program for my company and could use some hand holding ,  I basically need to swap my output rows and columns. I need  my inormation (Totals) to go vertical not horizontal. I need my columns horizontal. at least be displayed this way.   I am not sure if I would do this in the program or just in the output using (ALV I think ). I need a little hand holding here


My output is the first sample normal output is the second Could REALLY  use some help. THAN YOU

Moderator message - "Hand holding", "Spoon feeding" are not allowed in the forums. Please read the rules of engagement before posting your question.

Message was edited by: Suhas Saha

3 REPLIES 3
Read only

rajkumarnarasimman
Active Contributor
0 Likes
822

Hi Sara,

  Since we don't know about the number of columns to be generated, You can use the dynamic internal table concept to swap the Rows and columns. Please find the link below.  Use RTTS method for conversion.

Regards

Rajkumar Narasimman

Read only

rosenberg_eitan
Active Contributor
0 Likes
822

Hi,

What is the maximum number of location expected ?

If it is LE 100

{

See the attached program Y_R_EITAN_TEST_06_03

}

else

{

create dynamic table using RTTC .

Do a GOOGLE using search operators:

site:scn.sap.com RTTS

site:scn.sap.com RTTC

site:wiki.scn.sap.com RTTC RTTS

Here is one....

}

regards. 

Read only

Former Member
0 Likes
822

Thank You SOOO much!!! I will go through these replies and see if I have any further questions and I will definitely award the points. This site is AWESOME!!!