‎2008 Feb 13 8:05 AM
i need to print the layout in this form
1 -23445-111111------8888888
-
222222
-
333333
code will be usefull
‎2008 Feb 13 9:33 AM
hi guys i need to print the classical layout in the form of
sl no. material item no
so for one material there may be many line items, so i need to print sl no 1 and material no as 23444 and item no as 5 nos so for other items nos there should be only 1 material and serial no, how to do it in classical reporting
‎2008 Feb 14 6:21 AM
SELECT vbeln posnr FROM vbap INTO TABLE i_itab
WHERE vbeln = '0000004974'.
IF sy-subrc = 0.
LOOP AT i_itab INTO wa_temp .
MOVE wa_temp-posnr TO wa_temp1-posnr1.
AT NEW vbeln.
index = index + 1.
WRITE:/2 index, 15 wa_temp-vbeln,25 wa_temp1-posnr1.
ENDAT.
ENDLOOP.
ENDIF.
i have written this logic for the serial no , material , items
but this is printing only one ling but other 3 items are not printing becaue at new is executing only once in side its block if it also need to display the other materials what i need to do.
‎2008 Feb 13 10:13 AM
Hi,
check with the following code.
data: begin of itab occurs 0,
bukrs type bsis-bukrs, "company code
hkont type bsis-hkont, "General Ledger Account
zuonr type bsis-zuonr, "Assignment number
end of itab.
data: index type i.
select bukrs hkont zuonr from bsis into table itab up to 100 rows.
loop at itab.
at new zuonr.
index = index + 1.
write:/2 index,15 itab-bukrs,25 itab-hkont,40 itab-zuonr.
endat.
write:/40 itab-zuonr.
endloop.