Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10665

Re: Smartform dynamic

$
0
0

HI Brujo,

 

As am i understood from your question is that you want to print the one order in one page.

 

So when you have the internal table in all the Orders instead of making it more complex.


Do simple thing Inside your program line define one variable.

 

data flag type Char.

data gl_idx type sy-tabix,

 

 

Loop at it_itab into wa_itab. " Example loop in the main window.

  gl_idx = sy-tabix + 1.                    " Increase the index of the loop.

 

read table it_itab into ls_itab index gl_idx " Read the next index. " Code inside your program line.

 

if wa_itab-aufnr  = ls_itab-aufnr. " if the next order is same of the current order number.

 

Set

flag = 'X'.

else.

flag = ' '.

endif.

 

 

At last of the Main area use the command if the flag value is space.

endloop.

 

 

Let me know if you have other issue.

 

Regards.

Nishant Bansal.


Viewing all articles
Browse latest Browse all 10665

Trending Articles