on 02-27-2009 10:33 AM
Hi Experts,
I am working on smartform. There are two pages say PAGE1 and PAGE2 respectively.
Based on one condition,
if its true report trigeers to smartform to print from PAGE2 onwards without printing content of PAGE1.
if false, starts printing from the PAGE1 onwards.
Now, my problem is how to trigger PAGE2 directly without processing PAGE1.
Please do let me know your suggestions, if possible.
Thanks & Regards,
Nagesh.
Hi,
You can specify when you call the smartform which page to start with by setting the parameter CONTROL_PARAMETERS-START_PAGE with the name of the page.
Put your condition in your calling program and set the parameter accordingly.
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
FYI.
Can we have a way to do resolve either of the following issue:
1. Is it possible by using command line at the very first page to skip the first page itself. I don't think so, its possible. -> Any solution for this. Awaiting for your valuable replies.
2. Can we resolve the above by passing any printer configurations settings dynamically to enable the printer to print/display from second page onwards. If so, how can we achieve??
Note: I have tried with all your logics(which were already suggested by our experts, but still the issue is open).
Please guide me in resolving the above issue.
Thanks in advance,
Nagesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks to all for your kind co-operation in resolving the given issue.
At last I have resolved the same myself.
FYI.
What I did was, in print dialog, for the field: Pages Selection, I am passing the value '2-' through the export parameter structure field (OUTPUT_OPTIONS-TDPAGESLCT) as shown below:
Sample Code:
IF p_part = 'X'.
prn_param-tdpageslct = '2-'.
ENDIF.
CALL FUNCTION fm_name
EXPORTING
control_parameters = cntrl_param
output_options = prn_param
Thanks a lot!, once again. Now, I am closing this thread.
Thanks & Regards,
Nagesh.
Hi Nageswara
In the global defintion --> initialization tab -->
if w_page = 1.
control_parameters-startpage = '%PAGE1'.
else.
control_parameters-startpage = '%PAGE2'.
ENDIF.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthik,
Mine is Z program.
To all....
This issue relates to SMARTFORM, but not script.
Thanks in advance.
Nagesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santhosh,
Thanks for the reply.
I have checked the content in link which u sent.
In that, that was completely different from what I am facing here.
My requirement is to not to print the content of first page and continue by printing content of all the remaining pages.
Hope, its clear to all...Still if u(all experts) r in confusion just let me know.
Thanks in advance,
Nagesh.
Hi all,
I have tried as per your (Sravanthi, Karthik, Nick) logic, but couldn't succeed. I have tried in all manner but even though content of first page is coming into picture.
If possible please provide with your sample code which exactly matches to my requirement.
Thanks to all for ur quick response. Have a nice week end.
Thanks & Regards,
Nagesh.
is ur driver program standard or Z?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use START_FORM function module within open and close forms.
In this function module u have one import parameter which is startpage....here u just mention what page u want at first display(for u 'PAGE2')...thats it!!
Reagards,
Dara.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rao,
If its your first page then you can validate it like &page& = 1 or &nextpage& = 2.
You can write your logic according to this.
If &page& = 1.
Do not write anything.
endif.
Much Regards,
Amuktha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
create a page which doesnot print anything and include two command node one which triggers first page and one that triggers second page. based on ur condition just trigger one of the command nodes.
кu03B1ятu03B9к
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.