cancel
Showing results for 
Search instead for 
Did you mean: 

No need to display Item header if there are no items in sapscript

Former Member
0 Kudos

Hi all,

Now i am display items header and line items details in the first page .

And in the second page i don't hav any line items still it is displaying the item header . Now i don't want to display the Item header if i don't hav any line items.

can you please any body provide me the solution for this

Thanks in advance ,

Mani

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

In side the element that prints the item header,

check the sy-tabix of the internal table that prints the item lines.

If that is less or equal to total number of items, then only should yopu print the item header.

Use an IF condition inside the element in the script.

Former Member
0 Kudos

please give me the solution with coding ..

how can i count the no of items per page..

i am nt getting clear picture

could you please help it in this issue

Former Member
0 Kudos

hi,

find out how many item are displaying in the first page have the count of it, if the iternal table of item count increase more than the count of first page, if count exceed then only have second page else no need of second page.

Regards.

Praveen.

Former Member
0 Kudos

Hi,

Have you created a separate window for the item header .If yes please include this as well in your main window.

Thanks,

Dishant