Application Development 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: 

internal table processing

Former Member
0 Kudos

hi experts,

my requirement is that i have 10 values in my internal table first set of valuse should be displayed in one end of the page and next should be parrallel to it and next should be below it and next should be parrallel to it.and goes on ........?? how to do it????

example :

1 fisrt set of vales 2 second set of values

3 third set of values 4 forth set of values

.............goes on..

pls help

7 REPLIES 7

Former Member
0 Kudos

Please give a clear idea

Bhupal

Former Member
0 Kudos

Hi

You can sort your internal table on one field and then you can use control break statement to trigger new-page.

Loop at itab.

At end of VBELN.

*Trigger new page.

Endat.

Endloop.

Regards

Neha

Former Member
0 Kudos

loop at itab into wa.

write: / wa-1, wa -2 , / , wa-3, wa-4

endloop

Former Member
0 Kudos

hi experts,

i think i have explained enough. but i ll explain it again.while processing my internal table i need to place first vale on left sid and second value on the right side parallel to first record. did u get it???

0 Kudos

Hi janani,

loop at itab.

write :/5 itab-f1, 20 itab-f2.

write :/5 itab-f3 , 20 itab-f3.

endloop.

hope this will work for you.

Regards

Ramchander Rao.K

Former Member
0 Kudos

no it didnt work for me...........

i tired this way........

i moved my value to an work area and thentired doing it..........

here is my code.........

 TABLES: LFA1,T005U.
DATA : BEGIN OF IT_LFA1 OCCURS 0,
       LIFNR TYPE LFA1-KUNNR,
       NAME1 TYPE LFA1-NAME1,
       NAME2 TYPE LFA1-NAME2,
       STRAS TYPE LFA1-STRAS,
       ORT01 TYPE LFA1-ORT01,
       PSTLZ TYPE LFA1-PSTLZ,
       REGIO TYPE LFA1-REGIO,
       LAND1 TYPE LFA1-LAND1,
      END OF IT_LFA1,
      WA_LFA1 LIKE IT_LFA1.


SELECT-OPTIONS : S_VENDOR FOR LFA1-LIFNR.

START-OF-SELECTION.
  SELECT * FROM LFA1 INTO CORRESPONDING FIELDS OF TABLE IT_LFA1 WHERE LIFNR IN S_VENDOR.

  PERFORM DISPLAY.
*&---------------------------------------------------------------------*
*&      Form  DISPLAY
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM DISPLAY .

  DATA : TXT(35) TYPE C,
          TXT1(35) TYPE C,
         TEMP(2) TYPE C,
         CNT(40) TYPE C,
         CNT1(40) TYPE C.

  LOOP AT IT_LFA1.
    IF WA_LFA1 IS INITIAL.
      MOVE-CORRESPONDING IT_LFA1 TO WA_LFA1.
      MOVE SY-TABIX TO TEMP.
      CLEAR : T005U,TXT.

      SELECT SINGLE * FROM T005U WHERE SPRAS = SY-LANGU AND LAND1 = IT_LFA1-LAND1
                                   AND BLAND = IT_LFA1-REGIO.

      CONCATENATE  'PIN' '-' IT_LFA1-PSTLZ ',' T005U-BEZEI INTO TXT SEPARATED BY SPACE.
      CONCATENATE  'VENDOR CODE' '-' IT_LFA1-LIFNR INTO CNT SEPARATED BY SPACE.
    ELSE.

      SELECT SINGLE * FROM T005U WHERE SPRAS = SY-LANGU AND LAND1 = IT_LFA1-LAND1
                                   AND BLAND = IT_LFA1-REGIO.


      CONCATENATE  'PIN' '-' IT_LFA1-PSTLZ ',' T005U-BEZEI INTO TXT1 SEPARATED BY SPACE.
      CONCATENATE  'VENDOR CODE' '-' IT_LFA1-LIFNR INTO CNT1 SEPARATED BY SPACE.

      WRITE : /,/,/3 WA_LFA1-NAME1 ,  41 IT_LFA1-NAME1,
              /3 WA_LFA1-NAME2 ,41 IT_LFA1-NAME2,
               /3 WA_LFA1-STRAS ,41 IT_LFA1-STRAS ,
               /3 WA_LFA1-ORT01,41 IT_LFA1-ORT01 ,
               /3 TXT , 41 TXT1,
*               /3 T005U-BEZEI,
               /,/,/3 CNT, 41 CNT1.
      CLEAR : WA_LFA1 ,TEMP.
*    SKIP 2.
    ENDIF.
  ENDLOOP.

ENDFORM.                    " DISPLAY

Former Member
0 Kudos

thanku very much experts