Smart Forms: No next page when MAIN-Window is full
Hi you SmartForms-Experts,
i've got a SmartForm for Purchase Order. This SmartForm breaks with a error message when the MAIN-window on page "FIRST" is filled up and some more positions should appear in the MAIN-window on page "NEXT".
The following page for page "FIRST" is "NEXT" and the following page for page "NEXT" is "NEXT".
The printing program is a customer-copy of SAPFM06P, entry is "ENTRY_NEU".
There is another window that is to be processed at the end of MAIN-window. I first thaught, that this is the problem, but it doesn't matter if it is deleted oder processed "before end" of the MAIN-window oder "after end".
I debugged my smartform several times, but only saw the errors occur and did not recognize why.
MAIN-window has got the same width on page "FIRST" and on page "NEXT".
Hi Aidan,
thank you for your answer. I solved the problem yesterday in the late evenening. It was similiar to your answer.
There are some other windows in my smartform besides of "MAIN" that are copied from page "FIRST" to "NEXT". One of them was smaller (width) than the original on first page. And therefore it could not be processed.
I learned: Never change another programmers Smartform, even he left the company three years ago. Try to make your own Form.
Thanks
Franz
Similar Messages
-
Frame line not display in next page of main window
hi Xpert,
I am creating layout in SAP SCRIpt,it working fine only the main window of next page frame line is not display.
i m define next page as a FIRST page and writing main window of first page following coding
/: POSITION XORIGIN '0.50' CM YORIGIN '7.75' CM
/: SIZE HEIGHT '17' CM WIDTH '19.25' CM
/: BOX FRAME 10 TW
when i run the program first page are coming properly and only when i go in second page of output then main window lines not displaying.
please guide me how to solve this problem.
Regards,
pravinHi Praveen,
In that case why you have to make the main window in the first page and secondry window.
You can use it as manin window itself. Print the total amount in the main window itself in the first page. and copy that main window to the second page.
In the first page under the main window create a text. and there u print the total value and text.
Now copy the main window to the second page..only COPY DONT CREATE NEW.
In the second page now under the main window create the table to print the line items. What every u add in the second page main window it will come in the first age also in the smartforms. But it will nto get printed in the first page.After the text to print the totals call the COMMAND option and call next page in that.
Hope you got me..
Regards
Ansari -
Jumped to next page eventhough first page's main window not full
Dear All expert,
I meet a problem that my script form sheet jumped into next page even though the first page is not full.
I checked in script there is not any new-page command.
Do you have any suggestion?
appriciate your help.Hi,
There could be many reason for this.
Please check the followings.
1. Page protection command is not used.
2. size of main window
try to debug the script and find the exact reason.
Hope this will help you.
Regards,
Raj Gupta -
Smart forms--In different pages i require two different main windows
In one smartform, I am having two pages. and two pages are having different formats
First page will print repeatedly till the completion of main window1.
Now i want to add another main window(2) to second page, it will also should print repeatedly till the completeion of main window(2).
But in first page main window contains 5 coloumns with subtotal
in second page main window contains 3 columns without subtotal
Both main windows are using same internal table.
can anybody help me in this issue.
If i copy first page main window into second page as main window with diferrent name, then it is showing blank window with out any text why?
pls hepl me
Madhavi TTry to do it like this, separate the data in internal table to two different tables, since data should be printed on two different formats...
Design two page in your smartform according to the requirment. now goto first page and set the next page as FIRST
now goto second page that you have created and set the next page as SECOND.
loop the first internal table in first page and once all the entries are finished, try to goto second page for doing this place command and tick the check box in command, goto next page and select the page as Second...
I guess this will solve your issue.
close the thread once your question is answered.
Regards,
SaiRam -
How to display multiple records in smart forms in new page for each record
Hi,
How to display the data from a internal table in a smart form.
I want each record to be displayed in seperate page.
please tell me with example.
thank u,
SarathDo this ,
in the main window - open a loop on your internal table ,
within the loop open the text and give the output fields,
after this text use the Command node and in this set the next page as page1,
so when the loop gets executed its first record will be on the first page and the second record will be on the next page and so on ..
Reward to usefull answers. -
How to add totals for each page in main window
hi
i have problem in scripts
how to add total in first page ending and carry it to second page , at the end of second page again adding total and so on until last page.
very urgent
regards
ratnaHi,
Check these
http://help.sap.com/saphelp_40b/helpdata/en/d1/8035c3454211d189710000e8322d00/content.htm
http://membres.lycos.fr/jolyeric/SAP/Note_de_Cours_Ben/Sapscript/SAPscript_Control_Commands.doc
try to use the command 'summing' along with one text symbol .Keep the if condtion when page changes at that time u dispay the total as ur keeping the total in text symbol it can be dispayed in the next page
or this is round about way
loop at <table>.
call write_form.
endloop.
here u declare a variable 'c' and increment it by 1 in each loop. Then u chgeck if the program has started printing second page then u can print the number of records before printing the next page.
eg :
data : c type c value '0'.
loop at <table>.
c = c + 1.
call write_form.
endloop.
in form:
check when the next page is being printed, then u can print the number
of lines 'c'.
Feel free to revert back.
--Ragu -
Sapscript total pages in main window
Hi,
in <u>main window</u> of my sapscript i need to know total number of pages,
i'm using &sapscript-formpages& but it doesn't work;
also tried with &sapscript-jobpages& but with no result.
In debug it give me "0".
What's the way to know number of pages in MAIN?
Thanks.
Message was edited by:
Tony De VivoHi Vallamuthu,
Thanks for the reply... I am currently modifying the sapscript F110_PRENUM_CHCK. Here we need only the page "NEXT" for our purpose. For this purpose we deleted pages "FIRST" & "LAST" from my custom sapscript. Now i have only "NEXT" page in my sapscript. I put the code you mentioned even then i don't see overflow happening here. In debug, i saw page as "2".
regards
Ajay -
I am writing papers for school which have strict page limits so I can't afford to be losing lines at the bottom of a page because Pages thinks it looks better to have a new paragraph start on the next page. It does this automatically and I have to go back and manually format to get the first line of the paragraph to start on the last line of the previous page. This then creates problems down the line when I am editing so I would really like to be able to turn the feature off.
e.g. with Pages auto-formatting
-----page 1-----
Paragraph #1 blah blah
blah blah blah
Paragraph #2 blah blah
blah blah blah
-----page 2-----
Paragraph #3 blah blah
blah blah
e.g. after manual formatting
-----page 1-----
Paragraph #1 blah blah
blah blah blah
Paragraph #2 blah blah
blah blah blah
Paragraph #3 blah blah
-----page 2-----
blah blahChange the keep with next rules in:
Inspector > Text > More > Pagination & Break
Peter -
How can I have a PDF in Full Screnn Mode without it goinging to the next page when you click?
I'm trying to make, let's say, a mini website using a pdf that includes hyperlinks. I also want the PDF to open in FULL SCREEN Mode. For some reason, when in FULL SCREEN mode you can click on the links (works excellent), but when you click on an area of the page that is NOT a link, it forwards you to the next page in the PDF.
I ordered the full version of Acrobat X Pro, and thought that it would work saving it out of Powerpoint (original file), but I had to disable the add-in because it just kept on crashing.
I can't seem to find where i can control the "Do Not Forward to Next Page OnClick".
Help!
Thanks!If you just purchased Acrobat 10, you might be eligible for a free upgrade to Acrobat 11, which is suppposed to have much improved export to PPT.
-
Extra boxes when Main Window Overflows
Hi All,
I created a table in Main Window, after that i have long texts. If the long text overflows, then i am getting two boxes which are not even present in the form anywhere. I am wondering how to get rid of those two extra boxes. Please help me.
Thanks,
KumarHi Kumar,
Elobrate it a bit more.
I couldn't visualize what do you mean by extra box, where exactly they are...before the table/ after the table.
or extra boxes in one coulm of the table.
cheers,
Sai -
In smart form while printing page no.
in smartform iam printing the page no
current page / no. of pages : sfsy-page / sfsy-formpages
if the no. of pages are more than 9 it is printing as star ( * )
if the total pages are 12
ex : 1/ * , 2 /* up to 9/* than 10 /12 , 11/12 , 12/12Refer this link
Re: Smart form to be printed 4 times
You can also print out the page number as "x of y":
&PAGE& / &SAPSCRIPT-FORMPAGES&
Message was edited by:
Judith Jessie Selvi -
How can I select next page when on shopping website
When I'm on a shopping website, like BLoomingdales for example, I can't select next page or page 2. It only stays on the 1st page. Why is this?
Hi,
if you have 3 pages in a smartform do this
DATA:L_NAME(17) TYPE C VALUE '%HEADER-FIRSTPAGE'.
FIELD-SYMBOLS: <FIELD>.
if plant = '1000'. A page -> B page
ASSIGN (L_NAME) TO <FIELD>.
IF SY-SUBRC EQ 0.
<FIELD> = 'PAGEA'.
ENDIF.
ENDIF.
else A page -> C page
ASSIGN (L_NAME) TO <FIELD>.
IF SY-SUBRC EQ 0.
<FIELD> = 'PAGEC'.
ENDIF.
ENDIF.
Thanks,
Nethaji.
Edited by: Nethaji babu on Apr 30, 2008 8:47 AM -
Condition text on last page of Main window of a SAPSCRIPT
Hi,
I want to print some condition text in last page of a Main window of my custom sapscript, we can't use &NEXTPAGE& in Main window. Is there any other method to identify the last page.Hi Venu gopal,
In the print program use the control break statement.
Refer this code
*AT LAST*
call function 'WRITE_FORM'
exporting
element = 'GRAND_TOTAL'
* FUNCTION = 'SET'
* TYPE = 'BODY'
window = 'MAIN'
Regards,
Sravanthi -
Whenevr I click a link to a photo , a next page on mail order sites, a link to instrns in Adobe, Won't enlarge photos when I click
All I get is a blank white page with 2 rows of text at the top
- can't even buy online as it won't move onWhenevr I click a link to a photo , a next page on mail order sites, a link to instrns in Adobe, Won't enlarge photos when I click
All I get is a blank white page with 2 rows of text at the top
- can't even buy online as it won't move on -
Minimizing(Iconifying) all JFrames when main window is minimized?
I have a main windows that is a JApplet. It has many subwindows that are JFrames. I want to make it so that all the open JFrames minimize when I minimize the main JApplet and deiconify when the main JApplet is deiconified.
Knocking this up!
Maybe you are looking for
-
I get error code 4850(0x000012f2) after burning mp3. Can someone help me?
MicrosoftWindows Vista Home Premium Edition Service Pack 2 (Build 6002) eMachines, inc.eMG720 iTunes10.4.0.80 QuickTime 7.6.9 FairPlay1.12.20 AppleApplication Support 1.5.2 iPod UpdaterLibrary 10.0d2 CD Driver2.2.0.1 CD Driver DLL2.1.1.1 Apple Mobile
-
Hi, Are there any inter-company experts out there? I have searched the forum but cannot find consistent, conclusive answers on this subject. We have 2 company codes linked, one buys from the other with inter company billing via idocs - this all works
-
In word (PC version) is it possible to merge a document to e-mails - I can't see that possibulity in pages?
-
Is it possible to adjust the strength of the bluetooth radio on the iPhone?
Hi, I am attempting to use the iPhone bluetooth to control a third party device that also has bluetooth. Unfortunately, when I send an instruction from the iPhone to the device, the device and the iPhone become unpaired and the instruction is lost. I
-
SRM ROS: Product categories
Hi Gurus, If I've well understood, it is possible the implementation of the ROS scenario foreseeing two different clients:1 for SRM (100) and one for SUS/ROS (200). In the scenario it is possible to define questionnaires category dependent (material