on 02-14-2007 10:47 AM
Hi,
i had an ordinary samrtform that displayed: item material qty
e.g.
10 MAT1 100
20 MAT2 100
30 MAT1 200
40 MAT2 300
Now i need that this smartform displays: material gty
That is, if i have several items with the same material i need to do a sort of COLLECT and just display the results by material.
e.g.(for the above data)
MAT1 300
MAT2 400
How can i do this?
Best regards.
Hello,
Either by performing the "COLLECT" in the program that generates the data for the smarform, or by creating a new internal table in the smartform which only holds material and quantity (global definitions -> Initialization) and looping over this new table.
Regards,
John.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i´ve done as suggested and when i verify i get the message:
"ITAB" has already been declared
.Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i´ve created an internal table in
Global Definitions -> Initialization
tab thus:Types
tab:Global
data tab:MAIN
inData
i´ve got:LOOP ITAB INTO WA_ITAB.
But i don´t get anything when doing the output.
Have i missed something?
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One suggestion would be declare one more internal table ITAB1 similar to the internal table ITAB.
Insert Program lines before MAIN window, specify ITAB as the input parameters, and ITAB1 as the output parameters.
Now in the code lines,
sort itab by material.
loop at itab.
collect itab into itab1.
endloop.
In the main window's loop..endloop node, give
loop ITAB1 into WA_ITAB.
Refer to ITAB1 fields in all the text elements.
Regards
Subramanian
hi
right click the window which contains text element displaying data.
create...>flow logic...>program lines
and add ur code dere just as u'd do in editor.
dont forget 2 giv appropriate input output parameters
rgds
plz reward points if it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.