cancel
Showing results for 
Search instead for 
Did you mean: 

Page break at new Storage type in smartform output

Former Member
0 Kudos

Hi ABAPers,

Need help,

I need to trigger a explicit page break at new storage type in my smartform output.

Example:

storage type desc

1 abc

1 bbc

1 mcc

2 mbv

2 nhb

2 mnh

3 mbq

4 mnp

4 mko.

Output:

Page 1 :

storage type desc

1 abc

1 bbc

1 mcc

Page 2:

2 mbv

2 nhb

Page 3:

3 mbq

Page 4:

4 mnp

4 mko.

I am using table in main window.

I have set event on sort begin for table giving the storage type and within event i havegiven command and new page as current page.

But I am getting balnk output in preview.

Regards,

Dep

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear All,

I am sorry the code is working, BUT there is a small problem..

The grand total and addiotnal info is getting printed on new page. But I want it to be printed page where the last line item is printed.

Regards,

Dep

Shwetha58shetty
Explorer
0 Kudos

Display grand total and additional info in the footer of your table. For footer node in output options select only the condtion "At end of table".

Regards,

Shwetha

Former Member
0 Kudos

Thank you Shwetha for your reply,

I've used below code(program lines ) in main area to resolve my issue:

DESCRIBE TABLE IT_ITEM LINES nols. " 'nols' total no.of lines in the internal table 
lines = lines + 1.

Event as : " Event on sort End".

go to new page : same page. " if page1 go new page page1

And in condition node gave condition as:

line NE nols.

Regards,

Dep