09-18-2015 5:08 AM
Dear Abapers,
I have a requirement in a Purchase Order Smartform like in me23n in header area texts tab MM consultant configured a standard text.. which i displayed in first page (which i created for my organization purpose) which i used same main window which is in all the remaining pages(gross price main window). After standard text i used command object to go to next page which is the orginal purchase order (which contains header and items and vendor adress etc...)
what the requirement i need to do is if the text enterd in me23n header texts area(standard text) then only first page must be displayed other wise the first page must be restricted to print preview and not be printed. Remaining page flow is normal.
Kindly help me in achieving this....
Thnaks.
09-18-2015 5:33 AM
use FM ssf_open
pass the value either SSFSPOUTOP-TDPAGESLCT or TDPAGESLCT component to which page you want to restricted.
09-18-2015 7:29 AM
09-19-2015 11:14 AM
10-06-2015 6:58 AM
Abap Gurus,
pls reply to my query.. can we restrict a page to print preview and print remaining pages.. pls help me in doing this.
Thanks & Regards.
10-06-2015 7:02 AM
Hi Chaitanya
Go the window where you added the standard text.
Go to condition tab.
Add the condition as a flag to check the existence of standard text.
You can define this flag in Form initialization routine.
Regards,
Venkat
10-06-2015 7:17 AM
the above is the standard text. can u pls be more detail sir.. what is the condition i need to take to stop first page from printing.but to display in print preview
10-06-2015 7:37 AM
Dear Chaitanya
In this window, you can see a last tab - conditions.
There you can give a condition true/false - based on that it will print.
you can write a code before that text, to find whether the standard text exists or not. based on that set a flag say Ok_print = 'y' else ok_print = 'N'.
in the condition tab you can say ok_print = 'Y'.
Regards,
Venkat