Print Preview of particular page issue in SAP script
Hi all,
Kindly help me to resolve the following issue in SAPscript.
I have a particular business requirement to preview a particular page in 'n' pages of a SAPscript. After executing the sapscript calling program, the print window appears, in which i can choose particular page in the <b>Page Selection</b> Field.
The problem is that the preview shows some other page rather than the appropriate page. Please help me to resolve the issue.
Awaiting for your replies,
Thanks and Best Regards,
Jana
You need to call NEW-PAGE command in the sapscript when the user select a page in page selection.
Try this:
create the following text element in the sapscript in any window, preferibly MAIN window
/E PBREAK
/: NEW-PAGE &user_selected_page&
In the Print program: OPEN_FORM returns a parameter called RESULT.
case result-tdpageslct.
when '2'.
user_selected_page = <second page name in the sapscript>
when '3'.
user_selected_page = <third page name in the sapscript>
when others.
clear user_selected_page.
endcase.
if not user_selected_page is initial.
call function WRITE_FORM and call above created text element
endif.
If the pages you are trying to display does not have main window, make sure next page in the page definition is not the same page in the sapscript.
Regards
Sridhar
Similar Messages
-
Issue regarding sap script pages
Hi all ,
my issue is regarding the medruck. when i click on the print preview option on me23n, the sap script attached(that is medurck) will be printed. in my case the sap script is zmm_medruck(the zcopy of medruck). now, the print out of the sap script is 2 or 3 or 5 paged depending upon the p.o. number given.
for example for a p.o. number 2100001564, the sap script contains 4 pages. now, my issue is , the print out should contain only last 2 pages or only 3 rd page.(that is without all pages, we want only specific pages of the sap script to be printed). how to do this. plz reply fast. points will awarded.
this is urgent issue.
thanking u in advance,
sreenu.Hi all ,
my issue is regarding the medruck. when i click on the print preview option on me23n, the sap script attached(that is medurck) will be printed. in my case the sap script is zmm_medruck(the zcopy of medruck). now, the print out of the sap script is 2 or 3 or 5 paged depending upon the p.o. number given.
for example for a p.o. number 2100001564, the sap script contains 4 pages. now, my issue is , the print out should contain only last 2 pages or only 3 rd page.(that is without all pages, we want only specific pages of the sap script to be printed). how to do this. plz reply fast. points will awarded.
this is urgent issue.
thanking u in advance,
sreenu. -
how do i fix my printer when it won't show the print preview for web pages? it worked for a while and now it doesn't. printer is an hp officejet 7310 all-in-one.
I would suspect this is a hardware issue. The rollers are probably having issues picking up the relatively smooth thick media. You might have better results be cleaning the paper pickup rollers with a damp paper towel. Also make sure the paper is snugly loaded and the paper guides have been correctly positioned.
Regards,
Bob Headrick, MS MVP Printing/Imaging
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
I have a MAC desktop running OS 10.7.2 and Firefox 8.0.1. and can't print preview of web pages. On my PC, it's there just fine. (Firefox 8.0 on Windows XP). What can be done to get print preview of web pages for the Mac? Thanks. C Baher
Firefox 4 versions and later '''do not run on a PowerPC Mac''' and require at least OS X 10.5 and '''an Intel Mac'''.
[http://www.mozilla.org/en-US/firefox/10.0.2/system-requirements/ Firefox 10.0.2 System Requirements]
The latest version for your ppc mac is 3.6.27 you can download from here:
http://www.mozilla.org/en-US/firefox/all-older.html
[http://www.mozilla.org/en-US/firefox/3.6/system-requirements/ Firefox 3.6 System Requirements]
1. Download a new copy of the Firefox program(3.6.27) from the above link
2. Trash the current Firefox application to do a clean (re-)install.
3. Install the new version that you have downloaded(3.6.27).
Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks or other personal data.
see also: [https://support.mozilla.org/en-US/kb/Installing%20Firefox%20on%20Mac Installing Firefox on Mac]
thank you
Please mark "Solved" the answer that really solve the problem, to help others with a similar problem. -
Printer preview is dark page on my Mac thou pdf file on screen?
Printer preview is dark page on my Mac thou pdf file on screen?
Not had this problem before!!Thanks this is the first time it has happened. The form I am trying to print is a QE 2 annual tag form for the M25 so it is a well used document.
Everything goes fine until I hit the page preview when up comes a dark area I have hit the PDF buttom but to no avail.
I also reloaded the printer using Apple downloads as the disc for the Epsom is not acceptable. -
when printing from file, print or print preview, must set page size @ 40% to get correct printing. IE is ok only wrong on firefox! edit
What happens when you select a scale higher than 40%?
-
How to add a page in the SAP Scripts
Hi All,
I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
Please help me out in this.
Thanks,
Praveennew page will create in sap scripts using new page command.
you have to set condition like after some number of records displayed in page new page has to be trigger.
ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
Here you can use NEW PAGE COMMAND .
IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
Reward if useful. -
Need to add a new page in the SAP Script as last page
Hello,
I need to add a new page in the SAP Script as last page.
Currently I have three pages in the form(FIRST,NEXT,LAST). For this I created one more page END.
FIRST page next page is NEXT
NEXT page next page is NEXT
LAST page next page is LAST
END page next page is END.
I used NEW-PAGE END in the main window but it is not working and also I trired with CONTROL_FORM this also not working.
Thanks,
Ravi.Hello,
I need to add a new page in the SAP Script as last page.
Currently I have three pages in the form(FIRST,NEXT,LAST). For this I created one more page END.
FIRST page next page is NEXT
NEXT page next page is NEXT
LAST page next page is LAST
END page next page is END.
Create the text element in the main wondow of your form
/E ENDPAGE
/: NEW-PAGE END
and call the element from your print program by using write_form, where you want the END page in your print.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ENDPAGE'
EXCEPTIONS
element = 1
window = 2.
Thanks,
Ravi. -
How to print the text in points wise in sap script
hi friends,
how to print the text in points wise in sap script.
ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
1. hai how ru.
2. what r u doing.
3.where r u.
like this i want numbering.. waiting for ur replys.
thanks,
kirandeclare a counter
data : cnt type char 4.
print :
cnt = cnt + 1.
&cnt& &text&
cnt = cnt + 1. and so on.
or.
if the data is in an internal table
loop at internal_table.
cnt = cnt + 1.
write form.
in script -&cnt& &text&
endloop.
Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM -
How to put Page break in SAP Script
Hi Experts,
Please tell me how to put page break in SAP Script. or give some sample code
looking forward for your reply..
Regards,
Kali PramodHi,
NEW-PAGE is used to insert a page break ,
it can be conditional if used between IF..ENDIF
e.g. /:IF &KNA1-NAME1& = 'XYZname'
/:NEW-PAGE
/:ENDIF
If u want to Page break after displaying certain records or after some condition you use NEW-PAGE
reward if useful. -
How do I Hide the text printed from a standard Text Element in SAP Script?
Hi,
I have created one SAP Script which gets printed from IW33 using a standard print program.
In config the standrad SAP script is replaced by the zsap script.
Since the Zscript is printed from a Standard print program, I had to keep all the text elements used by the original(standard) SAP script.
I only kept the text elemets and commented out the printing part.
But still some values are printing. How do I hide these text element values?
I want to delete whatever its printing from these text element. Icant delete the standard text elemetns , otherwise the standard print program will give error.Hi,
I am not printing any text under these text element in my zscript.
I had to include these standard text elemets as they are called from the standard print program using which my zscript is getting printed.
for example:
/E OPERATION
Under operation i didnot print anything. Still some values which are passed in text element Operation by the print program is being printed in the form. i want to hide/delete these values.
how do I do that? -
Alignmnet Issues with SAP Script
Hi All i have an issue with SAP script i have few columns in the script where in the values in the column changes dynamically.For example the value of second column in the first row can be 5 characters and the value of the same in the 2nd row can be of 10 characters and it keeps varying for every row but the max length of it would be 20 characters.
Now the issues is with the second column as the text in this column keep varying the text in the same row after the second column keep moving either towards right or towards left depending on the text in the second column,Can any one help me as how can i fix this issue.
Looking for your valuable inputs.
Regards
Hari Krishna.Hari,
http://help.sap.com/saphelp_47x200/helpdata/en/d1/802d91454211d189710000e8322d00/frameset.htm
Even though it is not the solution,I guess this link will be helpful.
K.Kiran. -
HP 8625, cannot see Print Preview or Select Pages
On my new HP 8625, I cannot see the Print Preview feature nor can I select to print specific pages. This used to work on my HP c309, so I'm thinking perhaps it's a printer driver issue. I am specificially having this issue with Excel but it may be occuring in other programs as well.
Any suggestions?
Thanks for any info.Hello @TheEveryman , welcome to the forums
I would first suggest checking to see if you have Print Preview and the option to print specific pages from other programs, besides Excel as this will show us if the problem is solely within MS Excel, or all programs, which could be a driver issue.
Skipping forward a little bit and assuming the issue is in all programs, you could try Uninstalling the Printer Software, restarting the computer and reinstalling the printer, here: HP Officejet Pro 8625 e-All-in-One Printer Drivers.
Please let me know which operating system you're running on your computer and the results from testing the other programs on your computer. The more detail you include, the better!
Have a great day and hope to hear back from you
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
A blank page is sent to the printer. When I view the text page in Print Preview, the page is blank and it is a .pdf. The print feature works fine with other browsers. This suddenly occurred. One minute I was able to print...the next minute blank pages print. I have tried two different printers and both experience the same problem on Firefox. The plug-ins are up to date.
Thanks, in advance, for any help.Slow down a bit and think this through.
CUPS on linux is nearly identical to CUPS on OS X - but there is no Mac-to-Mac Apple proprietary print sharing. Rather, on linux you are sharing the printer using standard printing protocols. Just like on the Mac (when using the standard protocols like Windows/SMB or IP printing), linux print queues expect postscript input. Try using a generic postscript driver from the mac.
And when you add the printer via Windows Printing or IP > LPD or IPP, you will need to know the queue name for that printer from the linux box. (one computer with one IP address can have multiple printers - so what's the additional address info to print to your desired printer? - queue name.)
HTH -
How to print the Terms and Condition page ine the sap-script
Hi experts,
i got the requirement that how to print the Terms and condition page in the script,i have the three pages, having the same main window, in the last of the main window(all three pages) i have called the hard coded text(i.e so10 text), but when i am displaying the output data get printed in the first page but i am getting the second page heading on the top of the terms and condiions page. In all the three pages i have the same main window, if i make change in any window i will affect all the other main windows. so please suggest me how i need to go.HOW TO GET GRID OF THE TEXT ON THE TOP OF THE SECOND PAGE OF THE TERMS AND CONDITONS.
like this i have called in the MAIN WINDOW
/E : LAST ( IN ALL THREE PAGES)
INCLUDE ZSD_INVOICE_TERMS TEXT OBJECT TEXT LANGUAGE EN.
IN THE TCODE SO10
NEW PAGE TERMS.
1) TERM MS AND CONDITONS TEXT.................................................
FIRST->NEXT, NEXT->NEXT,, TERMS--->TERMS.Hi,
1. Create a new page by Name : LAST
2. Identify the text element which will be the last element in the form in the debug mode.
Mostly Ex: SUM, TOTAL, LAST etc.,
3. the page linking should be
First --> Next
Next --> Next
4. In the Text element identified in the step 3.
Write the following code
/: NEW PAGE LAST
/: INCLUDE the standard text created for the terms and conditions in SO10
Check the syntax for the command but the logic will be the same.
It should resolve your problem.
Maybe you are looking for
-
Not able to delete line items using BAPI_OUTB_DELIVERY_CHANGE
Hi, Not able to delete line items of a delivery using BAPI 'BAPI_OUTB_DELIVERY_CHANGE', with thte below code and even return parameter has zero messages. I have even checked existing below posting. https://www.sdn.sap.com/irj/scn/logon?redirect=h
-
Hi i have a File-to-RFC Scenario replaced with a File-to-ABAPProxy Scenario. This works. It's possible to replace the ABAP Proxy on my SAP Target System by a Java Receiver Proxy? Reason for this question: I understand, that in my ABAP proxy i do the
-
Bookmarks are gone?? I have used This Browser for years can you see my Bookmarks
Do you have my bookmarks? How to recover Bookmarks? have up graded my O.S. MAC.. help! I have many years with these bookmarks. I have down loaded FireFox but I did not see were my info is at. Or asked my me if I have books marks already?? No Bookmark
-
I find it rather frustrating that you can't use things like {myArray[0]} in Bindable expressions. Are there any workarounds apart from manually changing the dataprovider?
-
Config recovery catalog database
dear all. i had read several documents about "create recovery catalog", but all of that start with statement CREATE TABLESPACE ...and continue with CREATE USER, etc. I want to create a NEW database for recovery catalog, this database what characteris