Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg: display output

Hi Abapers,

i have one problem.

I am developing a report (ALV) with 105 coulumns.

FORM merge_data .

SORT it_qasr BY probenr prueflos vorglfnr.

LOOP AT it_qasr INTO wa_qasr.

w_mittelwert = wa_qasr-mittelwert.

READ TABLE it_qapp INTO wa_qapp WITH KEY prueflos = wa_qasr-prueflos

  • vorglfnr = wa_qasr-vorglfnr

probenr = wa_qasr-probenr.

wa_final-userd1 = wa_qapp-userd1.

wa_final-usert1 = wa_qapp-usert1.

wa_final-userc1 = wa_qapp-userc1.

SHIFT wa_final-userc1 LEFT DELETING LEADING '0'.

wa_final-userc2 = wa_qapp-userc2.

READ TABLE it_plmk INTO wa_plmk WITH KEY merknr = wa_qasr-merknr

plnnr = wa_mapl-plnnr.

  • plnkn = wa_qasr-vorglfnr " changed by DEVK909452

READ TABLE it_qpmt INTO wa_qpmt WITH KEY mkmnr = wa_plmk-verwmerkm.

READ TABLE it_qpct INTO wa_qpct WITH KEY codegruppe = wa_qasr-gruppe1

code = wa_qasr-code1.

TRANSLATE wa_qpmt-mkmnr TO UPPER CASE.

IF wa_qpmt-mkmnr CS 'MBFR0016'.

wa_qpmt-mkmnr = ' MATERIAL '.

ENDIF.

IF wa_qpmt-mkmnr CS 'SHIFT'.

wa_qpmt-mkmnr = ' SHIFT '.

ENDIF.

.

.

.

.

.

105 conditions.

CASE wa_qpmt-mkmnr.

WHEN ' MATERIAL '.

wa_final-material = wa_qpct-kurztext.

WHEN ' SHIFT '.

wa_final-shift = wa_qpct-kurztext.

WHEN ' MOIS_Q '.

wa_final-mois_q = w_mittelwert.

.

.

.

105 case statements

APPEND wa_final TO it_final.

CLEAR wa_final.

ENDLOOP.

Now, Actual problem is, in output, the one record is displayed in 105 rows.

EX: for one date, we have a record with 10 MIC names (wa_qpmt-mkmnr), now it will display 10 rows with 10 columns. But, i want only one row with 10 columns.

Please understand my problem and give me the solution...

thanks in advance..

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question