Wednesday, April 29, 2015


1.   Different way to delete last blank page in smartforms.. when we are using command……

I tried from many forum solutions to delete blank page in smart forms when using command…… but it failed….
I achieved this in below way….. just I share this document … it may help at least one ABAPer….  

Steps :      
 Just create a program lines to get no of lines in the internal table if we are using loop of final internal table …..
1.Create a variable with data type I in Global Declarations

2. create program lines to get  total no of records in the internal table

3. Create Command in the loop of the table and provide next page is page1.

4.provide below condition as shownin conditions tab in command.

 
SFSY-FORMPAGES < LV_NO.


Blank page is  deleted based on this condition….