Skip to Content
avatar image
Former Member

how to delete the page through the smartforms

Hello,

In the smartform i had created like this:- page->Window->loop->template and Command.

In the command i had just check the checkbox GO To New Page and i had not enter any page name.

Then in the driver program i am passing 2 record from driver program to the smartform then when i execute the driver program only two page should be displayed but in the output 3 pages had displayed. In the first page, first record get display, in the second page-second record get display but the third page is display and it is empty.

Can anyone Please Help me to what to do so that this third page will not display on the output.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 17, 2007 at 12:22 PM

    go to conditions tab in the all windows of the third page and put the following condition in it..

    'X' = 'Y'

    this condition is always false so the third page will not be displayed...

    reward points please....

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Enter the condition as SY-TABIX lt VAR. Even if that doesnt work, declare a counter in the form and increment that in every loop. In the command node, enter the condition as COUNTER lt VAR.

      Please mark points if the solution was useful.

      Regards,

      Manoj

  • avatar image
    Former Member
    Aug 17, 2007 at 12:47 PM

    Hi,

    1. Create a flag say COUNTER.

    2. Now set COUNTER to total no of records you r passing from driver.

    4. On command put condition Counter greater than 1.

    5. And inside the loop decrement counter before command.

    Hope this solve the issue.

    Enjoy SAP.

    Pankaj Singh.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      In the node LOOP, under CONDISTIONS tab , u need to check whether variable/work area ( u r looping into ) should not be space.

      loop ITAB into w_itab -->say ur statment in LOOP node.

      Loop--> CONDITIONS tab --> w_itab <> SPACE.

      so wen u mention this a blank page willl not be displayed.

      Revert back if any issues,

      Reward with poinst if helpful..

      Regards,

      Naveen