cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Last Page With Condition (SMARTFORM)

Former Member
0 Kudos
157

Hello experts!

My requirement is that I need to show the last page of my smartform, but only if certain flags are set. I've already checked some of the threads in the forum, but I don't quite understand most of the instruction.

So far, what I did are the following:

1. Create page LAST with the Next Page set to "blank"

2. Set conditions in the windows in the LAST page so that they appear only if the flags are set

When I try running the form the last page does not appear, even if the flags are set.. Please, can anyone help me on this one?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Do you have something triggering this page? You need to create a command node with 'go to new page' LAST, set the conditions on this node to 'Only after end of main window'. This should then trigger your page, if your flags are set the page should appear.

Regards,

Nick

Former Member
0 Kudos

The triggers are 2 flags, which are passed as parameters into the form itself. My SAP version is 4.6c, so I'm not sure where the 'go to new page LAST' that you mentioned is. Actually this is the part where I am unsure.

Former Member
0 Kudos

Create a node of type Command. In the General attributes of this type of node check the box 'Go to new page', this will activate the dropdown box with the list of all of your pages. Select LAST from this.

Regards,

Nick

Former Member
0 Kudos

Thank you that solved my problem.

It was silliness, actually. I kept putting in PROGRAM LINES nodes, instead of COMMAND node.

Thanks again!

Answers (1)

Answers (1)

Former Member
0 Kudos

have u wriiten any code in that last page

u do one thing, check the follwing instruction

1. remove all condition for last page , hardcode some words in last page and run the smartform and see whether are u able to see last page.

2. if you are able see last page. check the condition which u have given right or wrong

Regards

D.prabhu

Former Member
0 Kudos

I also tried removing the conditions I set, but I am still unable to see the last page because it is not being called by any previous pages.