cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip very first page in SMARTFORM. Is it possible??? Is so, How??

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (8)

Answers (8)

Former Member
0 Kudos

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.

Former Member
0 Kudos

insert a command node in the first page such that it is the first executing element(before any table node or template) direct the command node to second page, and put a condition on this command node such that when u need ur first page this command node must not execute.

кu03B1ятu03B9к

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Nageswara

In the global defintion --> initialization tab -->

if w_page = 1.
control_parameters-startpage = '%PAGE1'.
else.
control_parameters-startpage = '%PAGE2'.
ENDIF.

Regards,

Sravanthi

Former Member
0 Kudos

Hi Karthik,

Mine is Z program.

To all....

This issue relates to SMARTFORM, but not script.

Thanks in advance.

Nagesh.

Former Member
0 Kudos

Hello,

Ya i saw ppl are sending Start_form and open_forms there are related to scripts

just check that link which i send it may help u.

Thank,

santhosh

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

I realise there's a lot of noise in this post, but have you read my earlier reply?

Regards,

Nick

Former Member
0 Kudos

Hi Nick,

I have read your reply and followed your instructions but couldnn't work out. Eventhough the content of PAGE1 coming as it is..Can u pls advise what to do next?

Thanks in advance,

Nagesh.

Former Member
0 Kudos

have u tried the command node method that i have specified earlier?

the answer given by nick and sravanthi should work or else u cud try what i suggested earlier.

кu03B1ятu03B9к

Former Member
0 Kudos

Hi Nagesh,

I've just tried Sravanthi's suggestion (which is a simpler approach than changing the calling program) and it worked fine. Can I suggest you check the logic in your condition is being met.

Regards,

Nick

Former Member
0 Kudos

Hi Sravanthi, Karthik & Nick,

Thanks for your immediate response.

About Sravanthis logic, I have a question how can we get w_page1 value during run time.

Can u explain bit clear about your logic.

Thanks in advance.

Nagesh.

Former Member
0 Kudos

Hi,

I think that code is just an example, you need to replace the IF condition with whatever criteria you need to determine the correct start page.

Regards,

Nick

Former Member
0 Kudos

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.

Former Member
0 Kudos

is ur driver program standard or Z?

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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к

Former Member
0 Kudos

Hello

I think this link may helps u ...check it...

Thank u,

santhosh