on 10-03-2007 6:01 AM
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
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'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.