Skip to Content

Display report output in classical output format .

Dear All,

I have a requirement that I want to print the classical report output in the below format .

(Display output same ebeln vertically and different ebeln horizontally in a classical output report .)

My internal table is having all the data but unable to organize the data in below format.Please guide how to print the data in the attached format .

Internal table is having the following data .

S.NO EBELN EBELP LIFNR ZTERM TXZ01 MATNR EMATN NETPR BRWTR MWSKZ KTMNG MEINS NAME1 DISCOUNT DISC_VAL TEMP_DIS TEMP_DIS_1 FREIGHT RANK1 RANK2 GV 1 6000000000 1 200000 dska SUGARCANE SUGARCANE 0 0 1 KG Geneva Local Vendor 2 6000000001 1 200000 TEST TEXT 121 121 0 0 1000 NO Geneva Local Vendor 3 6000000002 1 100010 Z001 TEST TEXT 121 121 588 600000 N0 1000 NO Domestic Test Vendor 4 6000000002 2 100010 Z001 dska SUGARCANE SUGARCANE 8820 45000000 N3 5000 KG Domestic Test Vendor

capture.jpg

My code logic below :-

i = 50.
SY-LINNO = 6 .
LOOP AT IT_FINAL INTO WA_FINAL.

TABIX = SY-TABIX.


WRITE : /i(50) WA_FINAL-EBELN,SY-VLINE,

/i(50) WA_FINAL-LIFNR,SY-VLINE,
/i(50) WA_FINAL-NAME1,SY-VLINE.


WRITE : /i(50) WA_FINAL-BRTWR,SY-VLINE,
/i(50) WA_FINAL-NETPR,SY-VLINE,
/i(50) WA_FINAL-TEMP_DIS,SY-VLINE,
/i(50) WA_FINAL-FREIGHT,SY-VLINE,
/i(50) WA_FINAL-RANK2,SY-VLINE,
/i(50) WA_FINAL-ZTERM,SY-VLINE.

i = i + 70 .


* SY-LINNO = SY-LINNO + 10.

ENDLOOP.

Please suggest some ideas to print in the desired format .

Regards

Deep

capture.jpg (46.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 09, 2016 at 02:36 PM

    I think this is not good idea of report output. List is not constructed for this type of outputs and also it is kind of obsolete.

    Can you consider ALV Grid output with simple structure like following example?

    Quotation Bidder  Value
    60001     101     1
    60001     200     53
    60002     101     1
    
    Add comment
    10|10000 characters needed characters exceeded