Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORMS - blank page at the end for single line item

bastinvinoth
Contributor
0 Kudos

There are 3 pages in smartforms.

First page - > Main Window

Second Page - >  Secondary Window(terms & conditions page)

Third Page - > Main Window

Now the problem is for multiple line items its coming properly without blank page.

for single line item it gives the blank page after displaying terms and conditions page.

i want to eliminate that blank page.

how to do it ? i have googled lot but didn't find any exact reason for that blank page?

14 REPLIES 14

JonathanM
Contributor
0 Kudos

Hi,

Why do you have a third page if this is the same layout as the first one?

If page 1 and 3 are the same, then set page1 as the next page of the second page.

Best regards,

Jonathan

0 Kudos

Hi Jonathan,

Page 1 and Page 3 is not the same format.

i removed header title part in Page 3.

so only items and values are flowing in Page 3.

i hope now u get clear idea about my query.

Abhijit74
Active Contributor
0 Kudos

Hello,

Make your Next Page like below.

For the First Page--> (Next Page will be) Third Page

           Third Page--> (Next page will be) Third Page

            Second Page--> (Next Page will be) Second Page.

Thanks,

Abhijit

0 Kudos

Hi Abhijit,

i have tried your method,

its working ,but now the problem is for multiple line item terms and conditions are not displaying

actually i need to display those terms and conditions and second page is mandatory.

after that if items are exceeded means it ll display through third page .

your method is working for single line item only.

Abhijit74
Active Contributor
0 Kudos

Hello Bastin,

Have you created any command after the line items. Please create one Command step and Give your terms and condition page. in the 'Go to new Page' section.

Thanks,

Abhijit

Abhijit74
Active Contributor
0 Kudos

Hello Bastin,

Have you created any command after the line items. Please create one Command step and Give your terms and condition page. in the 'Go to new Page' section.

Thanks,

Abhijit

0 Kudos

i tried that also,

but thats also not working abhijit

0 Kudos

Hi Bastin ,

Lets say you are creating smartforms for Sale Orders.

So VBELN is the primary key.

And lets consider IT_FINAL is the internal table which you are looping in Main Window.

Now ,

Use

DESCRIBE TABLE IT_FINAL LINES LN statement to get the index of last record .

Now Read table IT_FINAL for that index which will give you the last VBELN.

eg.

READ TABLE IT_FINAL INTO WA2 INDEX LN.

Now in the last page keep this condition ,

WA-VBELN NE WA2-VBELN

Try this , it may help you out.

Former Member
0 Kudos

Hi Bastin,

First page - > Main Window

Second Page - >  Secondary Window(terms & conditions page)

Third Page - > Main Window

Include the secnd page i.e. Terms & conditions page in the main window instead of using a secondary window.

Hope this helps.

Thanks,

Tooshar Bendale

0 Kudos

Hi Tooshar,

As per your words, i put second page as main window .

but , now in output i didn't get terms and conditions page.

am getting line item pages only,it ignores terms and conditions page

Hi Sijin Sij ,

I have tried your method before itself but its triggering blank page as usual

Still my issue is not resolved

Regards,

Bastin.G

0 Kudos

Have you put any conditions / validations for the terms and conditions page ? Can you upload the smartform here in this thread ?

Thanks,

Tooshar Bendale

0 Kudos

Hi Tooshar,

I have furnished Smartform XML for your reference.

kindly see it in my attachment.

Regards,

Bastin.G

0 Kudos

Hi Bastin,

I checked the smartform, In the command in the main window why you have given the condition of SFSY-FORMPAGES = '1'?  Also remove the event Only on First page, this is why the terms and conditions page is not triggered.

Thanks,

Tooshar Bendale

0 Kudos

Hi Tooshar,

I have done as per your words,Page is triggered but its blank page ,

it does not have any values,its an EMPTY page again.

for example i gave PO number in me23n, after that giving print option .

for single line item - 2 pages (first page having values + Second Page is Blank(terms n conditions are not appearing after removed that condition which you mentioned previously)/

for multiple line item - 3 pages (first and second page having values + last page is blank (terms and conditions is missing again).

another thing is terms and conditions page is only should appear on second page for each line item.

Regards,

Bastin.G