ā2013 May 04 10:02 AM
i m trying to trigger next page using command in smartform but unable to get 2nd page.
ā2013 May 04 11:55 AM
You have to assign 1st Page's next page is 2nd Page and 2nd Page's next page is 2nd Page.
also create command node to call the second page hope it will solve the problem
Regards,
Bastin.G
ā2013 May 04 11:34 AM
Hi,
Check the following tutorial. I think will make things easy.
http://www.saptechnical.com/Tutorials/Smartforms/Command/Page2.htm
Cheers,
Arindam
ā2013 May 04 11:46 AM
Thx dude,
my scenario s tht i have creatd smartform for PO where i hav 1st page PO details & 2nd page annexure page, i hav created 2 page,but when i am trying to trigger 2nd page for annexure it is not comng.i used the command go to next page with condition set as only after end of main window.i hav inserted dis command in main window after table.
Umakant.
ā2013 May 04 1:33 PM
ā2013 May 04 11:53 AM
Hi,
Just to give you a heads up, The Command Node has to be a conditional trigger i.e. based on some flag that you set during processing of page 1 also the Command node in the General Attribute don't forget to check the Go to new page checkbox along with the page name.
Cheers,
Arindam
ā2013 May 04 12:03 PM
i hav done all the necessary setting i.e chekbox for command & in conditions clicked aftr main.
also mentioned 1st page next page as 2nd page.but no result.
--Umakant.
ā2013 May 04 2:26 PM
Hi,
In the conditions tab dont tick 'After Main' it means it will only trigger after main window processing which is not your case. Check how many entries can display in first page say for example you can display only 15 entries(depending on your layout and window size). Then after 15 entries are processed set a flag then put the condition as flag = 'X' just as shown in the example.
You can also try the following:
Insert a CODE node in the MAIN node of the table. IN that say you increment a integer value say L_COUNT to count the Loop pass. Before that Count the number of entries in table and store in Global Variable in the smartform L_NO_OF_LIN indicating number of lines in table . Increase L_COUNT by 1 before you print the line.
IF L_COUNT is GT L_NO_OF_LIN. That means last entry in the internal table in printed. SO set a flag = 'X'. Put this in the conditions tab of COMMAND node. This will trigger command after all entries are processed.
Should help you to achieve your design
Cheers,
Arindam
ā2013 May 04 11:55 AM
You have to assign 1st Page's next page is 2nd Page and 2nd Page's next page is 2nd Page.
also create command node to call the second page hope it will solve the problem
Regards,
Bastin.G
ā2013 May 10 6:33 AM
thanks guys for u r reply,
i resolved prblem where i triggered 3 different command node from main window of first page and it s working fine.
Thanks,
Umakant