cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms

Former Member
0 Kudos

Hi everybody,

I have developed a smartform by modifying the SAP standard smartform. This form contains first-page, next-page(for PO data) then acknowledgement-page followed by 2 Terms & Conditions-pages.

The requirement is to stop acknowledgement-page from printing if PO acknowledgement due flag is not set. For this I created a global variable and populated an 'X', when acknowledgement is due, while looping through ekpo in Main-Window. And in the acknowledgement-page against every window activate a condition which says only print anything if the above flag is 'X'(Pl.note there is no condition tab against a page). However with this approach I could stop anything from printing in the acknowledgement-page but could not stop a blank page from printing. Since this output also gets emailed hence blank page is not acceptable.

Has anybody got any suggestion to stop this blank page also?

An early help will be highly appreciated.

cheers,

Ramesh Kodela, Melbourne

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

To prevent the acknowledgement page form printing u will have to use a Command node in your main window of next page. Go to Terms and Conditions.

OR

If you always have a fixed number of pages

in ur driver program u have the follwoing structure

ls_composer type SSFCOMPOP,

dont change the logic in the smartform. Let it be general for all

in ur driver program u can set which

ls_composer-tdpageslct = '1,2,4,5'.

Former Member
0 Kudos

Hi Nehal,

your first suggestion of using a command in Main window(of next page) to chose the next page may work.

Let me try it, it may take a few days as my next visit to that client is due in a week's time. I promise to give u the points after I try it.

Former Member
0 Kudos

Hi Ramesh,

I anticipate that you may have issues with that idea too.

Specially if you have windows that print below MAIN.

This is because once the command executes. All remaining windows in the same page will not be processed.

To work around that, make sure Your Main Window is processed last in line in the smartform.

And finally. If you are able to solve your issue with these suggestions, that in itself is a sufficient reward.

Former Member
0 Kudos

Hi Nehal,

Even I am also getting the same problem.In my smartform Main window is used before and there newpage command has been used for the next secondary window.because of that one blank page is coming at the end.Can you tell me the remedy.Because even if i m putting conditions for sfsy-page also.It is showing blank page at the end.

Reply awaited.

Regards

Sanjeev

Former Member
0 Kudos

Hi Sanjeev,

I think ur issue is different.

What have you set the Next page in your command node to ?

Are you calling the same page in ur command node?

Former Member
0 Kudos

See in my first page-> main mindow-> loop I m calling next page through command which doesn't have main window.Thus it prints a blank page in end.

I m not being able to remove it.Is that any idea to remove the last page.Please let me know.

Regards

Sanjeev

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Nehal,

I put in 2 commands, to go to different pages, depending upon the condition A or condition B and it works.

thanx for your help.

cheers,

Ramesh K Kodela

sharadendu_agrawal
Active Participant
0 Kudos

I think in the PO smartform the Terms page gets called through a command which further gets called when the Main window printing is finished. I think u should put the same flag condition for the command also that calls the terms conditions page.

Reward if helpful.

Cheers,

Sharadendu