Application Development and Automation 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: 
Read only

classical report layout

Former Member
0 Likes
477

i need to print the layout in this form

1 -23445-111111------8888888

-


222222

-


333333

code will be usefull

3 REPLIES 3
Read only

Former Member
0 Likes
455

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

Read only

0 Likes
455

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.

Read only

Former Member
0 Likes
455

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.