Application Development 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: 

regarding smartforms

Former Member
0 Kudos
129

i have on issue...my requirement is i hav to add the quantity field if all the material nos are same.....if it is not same i have to left it....if one quantity value also different leave it...please uided me in this onee

1 ACCEPTED SOLUTION

Former Member
0 Kudos
106

Hi,

Use control break statements.

at end of .

endat.

Ravi

5 REPLIES 5

Former Member
0 Kudos
107

Hi,

Use control break statements.

at end of .

endat.

Ravi

Former Member
0 Kudos
106

Hi,

Can you give your issue more clear? It's a little confusing.

I tried to understand you:

first: if the material no is the same, do sum for quantity.

second: if the material no is not, leave it,

third: what is the meaning for : if the quantity is not same, then also leave it?

Regards,

Chris Gu

0 Kudos
106

hi,

no consideration for quantity...only based on material...i hav to add...if the materials nos r same i have to add the qty and if it s not no need to add...

former_member598013
Active Contributor
0 Kudos
106

Hi Sai,

You need to declare a variable globally and then you need to assign the material to the value at the initial time when qty is being printed.

Now for everytime when the qty is comes you need to cross chcek the previous material. if the previus material is same then leave it. You can use this condition in the condition tab when you print the qty field.

Thanks,

Chidanand

Former Member
0 Kudos
106

hi,

sort ur internal table by material.

then loop that internal table.

like loop at itab.

at end matnr.

sum. // this sum adds all the amount , quantity fields and place

that added value in the same field

for example wrbtr is for amount then in itab-wrbtr u can find total value..

endat.

endloop.

Rgds.,

subash