cancel
Showing results for 
Search instead for 
Did you mean: 

Printing break levels in a Smartform

Former Member
0 Kudos

Hi;

I have a smartform that works ok, but now i need to show the data separated, i need to make a break every time the field 'table-condition' change, something like this:

detail of the smartform:

type : controled (condition field) header of the condition

material description amount ... (data showed for this condition)

material description amount

material description amount

....

type : no controled (condition field change)

material description amount ... (data showed for this condition)

material description amount

material description amount

....

type : free distribution (condition field change)

material description amount ... (data showed for this condition)

material description amount

material description amount

....

Rigth now i have this information but is displayed with no breaks condition.

Thanks on advance.

David Fúnez
Tegucigalpa, Honduras
Corp. Mandofer

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

the internal table that you want to chek create one more field of type char .

sort the table by the field you want to chek .

use at new < field name> to set the newly created field of char type to 'X' .

after comming out of loop .

clear newly created char type field for sy-tabix = 1 .

now pass the internal table to smartform where you can track the change in that field by cheking value for 'x' .

In smartform now you can use command node to do the page break by cheking a page break condition .

Answers (3)

Answers (3)

Former Member
0 Kudos

hi david,

in loop try to use the COMMAND NODE.....so base on ur condition u can get a break every time...

hope this may help...

please reward,

regards,

prashant

Former Member
0 Kudos

Hi David,

You can try by giving space in your text after the condition,

it will work.

I also faced same kind of problem.

Rewards the point, if it is helpful.

Regards,

Shivshankar.

Former Member
0 Kudos

Hi david,

Then inside the loop U need to select 'sort on begin' or 'sort on end' option.

automatically, one Event will be generated.

In that Event, It'll ask which action is to be carried out automatically.

using this u can set the events automatically.

reward me if useful..