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

solve1

Former Member
0 Likes
423

hi guru's,

see the issu below.

Calculate the Customer wise Sales orders Totals for the given period and for the given materials and for the given sales area.

Use the tables KNA1,VBAK and VBAP and VBEP tables.

in aboue issue i put several control break statements for displaying totals as per customer wise ,meterial wise ans sales group wise .but it is showing only customer wise totals.plz.. solve and send urgent.

thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
368

HI,

i think the problem is in select statement. use joins or for all entries.

try like this

data: flag type c.

select avbeln avbelp ...........

from vbak as a join vbap as b on avbeln = bvbeln join

kna1 as c on ..........................

vbep as d on ..................... into table itab.

if sy-subrc eq 0.

sort itab by vbeln.

loop at itab.

at first.

write:/10 'vbeln'.

................

at new vbeln.

flag = 'X'.

if flag = 'X'.

write:/ itab-vbelp.

...........

at end of.

sum.

at last.

sum.

endloop.

if useful reward some points.

with rewards,

suresh.A

Read only

0 Likes
368

Hi suresh,

can u send me the report totally to me, so that i can understand properly.

with regards,

surendraa