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

multiple values in row in an alv grid

Hi experts,

I have to display data through alv grid control. The problem is I have multiple values in a row for one one field.

How should i display the data for this field in an ALV.

I need to display data like the fomatt:

field1 field2 field3 field4

1 2 5 6

3

4

7 8 12 13

9

10

11

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2011 at 06:12 PM

    Concatenate?

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      first ur getting data like for 1st field having one itab with common field (eg) belnr is common field 1st field is (BLART) and 2nd field contain another itab with common field like that 3rd upto 4.

      In that common loop itself you have to find which field having more records use the code like

      itab1[] = gv_itab[]."pass the 1 field itab to another itab.
      DELETE TABLE itab1 WITH TABLE KEY fieldname NE field value. " delete without common value.
      DESCRIBE TABLE itab LINES li."1 field internal table 
      

      like that you have to do 4 fields itab.

      Which is having more record loop the field itab table and use read statement for rest of field itab

      and use append statement for getting final itab.

      regards,

      Dhina..

      Edited by: Dhina DMD on Jun 16, 2011 1:17 PM

  • author's profile photo Former Member
    Former Member
    Posted on Jun 28, 2011 at 06:25 PM

    solved

    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.