Good morning experts , I have a report that calls a SmartForm , income production date ( 12/12/13 ) and orders ( 000111-000113 ) , and the SmartForm each order is placed on a page, but the detail appears in duplicate , I mean:
000111 The order should only display its details , however it shows detail of 000112 and 000113 orders .
This I have done in the SmartForm :
interface
t_head like structure
t_det like structure
Global definitions
st_head type structure
st_det type structure ( detail)
g_tab type sy- Tabix
g_count type sy- Tabix
g_lines type num
g_tab1 type sy- Tabix
it_det type structure ( detail)
I declare in the loop so to bring detail T_DET INTO ST_DET .
And in the line of the program i use this:
Input Parameters : it_det , g_tab , g_tab1 , g_lines , st_det
Output Parameters : g_Tab , g_tab1 , g_count
add 1 to g_tab .
REFRESH : it_det .
it_det [ ] = t_det [ ] .
DELETE WHERE it_det budat st_det - budat NE .
DESCRIBE TABLE it_det [ ] LINES g_lines .
I created the command and in the condition I put the following:
g_tab = g_lines
g_count < g_tab1
Please can you help me just to show details as corresponding to each order.
I welcome your comments .
Thanks for your valuable time.
000111 The order should only display its details , however it shows detail of 000112 and 000113 orders .
This I have done in the SmartForm :
interface
t_head like structure
t_det like structure
Global definitions
st_head type structure
st_det type structure ( detail)
g_tab type sy- Tabix
g_count type sy- Tabix
g_lines type num
g_tab1 type sy- Tabix
it_det type structure ( detail)
I declare in the loop so to bring detail T_DET INTO ST_DET .
And in the line of the program i use this:
Input Parameters : it_det , g_tab , g_tab1 , g_lines , st_det
Output Parameters : g_Tab , g_tab1 , g_count
add 1 to g_tab .
REFRESH : it_det .
it_det [ ] = t_det [ ] .
DELETE WHERE it_det budat st_det - budat NE .
DESCRIBE TABLE it_det [ ] LINES g_lines .
I created the command and in the condition I put the following:
g_tab = g_lines
g_count < g_tab1
Please can you help me just to show details as corresponding to each order.
I welcome your comments .
Thanks for your valuable time.