NEW-PAGE PRINT ON
Hi all,
I am in ECC 6.0 and my program is showing a warning at line
NEW_PAGE PRINT ON.
the warning is this
"NEW-PAGE PRINT ON" should no longer be used to generate a print dialog box . . .
is this something I should worry about.
or can I ignore this as it is only a warning.
Thanks,
Goldie.
May be you can try with
NEW-PAGE PRINT ON PARAMETERS print_parameters
NO DIALOG.
and fill up the print_parameters by using fm
CALL FUNCTION 'GET_PRINT_PARAMETERS'
a®
Similar Messages
-
WARNING: NEW-PAGE PRINT can no longer be used to print dialog box
i am getting a warning as 'NEW-PAGE PRINT can no longer be used to print dialog box'. Please suggest what method can i use otherwise
Please create a screenshot of the problem you're seeing by following the guide mentioned at [[How do I create a screenshot of my problem?]].
Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
'''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
''(If you're not using it, switch to the Default theme.)''
* You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
* Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
''Don't select anything right now, just use "'Start in Safe Mode"''
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
'''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
Please follow the [[Troubleshooting extensions and themes]] article for that.
''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.'' -
Regarding new-page print off. warning, its very urgent
Hi,
For the below lines:
1. new-page print off.
2. new-page print off no-title.
3. new-page print on parameters print_parms no-title no dialog.
4. new-page print off no-title.
In upgrde i am getting 1 warning as
'NEW-PAGE PRINT should no longer be used to generate a print dialog'
what should i write instead of the above 4 lines, to avoid this warning.
upgrade is from 4.7 to ecc6.0
please do need ful.
Thanks,
RadhikaHi ambi,
1. I just tried, and it works fine.
2. It does not give any error /warning
in ECC 5.0
regards,
amit m. -
Quick SAP Script question New Page Print
Quick SAP Script question
I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
I need to do this from within the form as the print program is SAP Std.
Any idea how I can prevent the new page from printing?
i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?Hi,
To trigger a new page, there is script ediotr command NEW-PAGE.
so find where is that command is triggered and use the below code for trigger it on any specific condition....
if &condition& = 'True'
/* NEW-PAGE
elseif
/: NEW-PAGE
endif
so it means if condition is satisfied your new page will not work.. else it will...
Hope you got it...
Try this..
Best luck..
Regs,
Lokesh. -
Hi,
What could be wrong with folowing code (part of longer program) :
FORM print_id.
DATA: valid TYPE c,
params LIKE pri_params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LOCL'
immediately = 'X' "<<< add this line - immediate print
new_list_id = 'X' "<<< add this line - new spool request
IMPORTING
out_parameters = params
valid = valid.
IF valid <> space.
NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
WRITE: 'dsds'.
ENDIF.
ENDFORM.
I result its print a page with 'dsds' text on pritner but then program exit to main sap menu with no any error message.
when I use:
NEW-PAGE.
instead of:
NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
new page report is display on screen with text 'dsds' but no exit occurs.self-solved
I added:
NEW-PAGE PRINT OFF.
at the end of form and it helps.
Without that line after executing a form, controls goes back to other screen that should ('previuos ?') -
Dear all,
I have used new-page command in my report
Every new material it will go to next-page..In my report foreground is working fine.
If i execute in background new-page is not working.. it will come all material in the same page from spool request.
ANY SOLUTION FOR SOLVE THE PROBLEM IN BACKGROUND
Example CODING
select-options : so_matnr for mara-matnr.
select matnr from mara into table it_mara where matnr in so_matnr.
sort it_mara by matnr.
loop at it_mara.
new-page.
write : /1 it_mara-matnr.
endloop.
Thaks.Hello Friend,
To print a different pages in spool request you have to use NEW PAGE PRINT ON...
Pleaes modify the code like below:
DATA PARAMS LIKE PRI_PARAMS.
DATA: DAYS(1) TYPE N VALUE 2,
COUNT(3) TYPE N VALUE 1,
VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING DESTINATION = 'LT50'
COPIES = COUNT
LIST_NAME = 'TEST'
LIST_TEXT = 'Test NEW-PAGE PRINT ON'
IMMEDIATELY = 'X'
RELEASE = 'X'
NEW_LIST_ID = 'X'
EXPIRATION = DAYS
LINE_SIZE = 79
LINE_COUNT = 23
LAYOUT = 'X_PAPER'
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
NO_DIALOG = ' '
IMPORTING OUT_PARAMETERS = PARAMS
VALID = VALID.
IF VALID <> SPACE.
NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
WRITE / 'First line'.
ENDIF. -
Cannot separate to new page according to WERKS
Hi there!
I have succesfully display my result according to each new WERKS.
BUT if i add <i>NEW-PAGE PRINT ON</i> and <i>NEW-PAGE PRINT OFF</i> in order to send my report to spool. The <b>NEW-PAGE</b> no longer work out.
May I know how to solve this?
thanks for helping..
NEW-PAGE PRINT ON NEW-SECTION
PARAMETERS PRIPAR
ARCHIVE PARAMETERS ARCPAR
NO DIALOG.
LOOP AT ITAB.
AT NEW WERKS.
<b>NEW-PAGE.</b>
NEW_WERKS = 'Y'.
ENDAT.
IF NEW_WERKS = 'Y'.
PERFORM WRITE_RESULT.
ENDIF.
ENDLOOP.
NEW-PAGE PRINT OFF.Hi,
Check the below SAP help on NEW-PAGE PRINT ON...
NEW-PAGE PRINT ON
Extras:
8. ... PRINT ON ...
... PARAMETERS params
... ARCHIVE PARAMETERS arparams
... NEW-SECTION
... NO DIALOG
Addition 8
... PRINT ON ...
... PARAMETERS params (Structure with print parameters)
... ARCHIVE PARAMETERS arparams (Structure with archiving parameters)
... NEW-SECTION (Beginning of a new section)
... NO DIALOG (Skip print control screen)
The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Print Parameters Missing in NEW-PAGE Statement.
Effect
Page break and redirection of output to the SAP spool.
Starting with the new page, all WRITE statements (and also SKIP, ULINE, ...) are interpreted as print statements (see Printing in ABAP).
Before the first page is printed, the user sees a screen for setting the print parameters unless the addition NO DIALOG has been specified. The print parameters are passed through the structure params. This structure must have the structure of PRI_PARAMS. The structure can be filled and modified using the function module GET_PRINT_PARAMETERS.
If you specify arparams with ARCHIVE PARAMETERS, the structure of ARC_PARAMS must be used. You should only edit this parameter using the function module GET_PRINT_PARAMETERS.
If you specify the addition NEW-SECTION, the page count is reset to 1. If data is being printed, the current spool request is closed. If the print parameters specified are compatible with those set earlier, the new spool request is attached to the spool request just closed.
Note
It is not possible to add records to the spool on a cross-event basis (AT LINE-SELECTION, AT PFx, AT USER-COMMAND). In such cases, NEW-PAGE PRINT OFF (see addition 10) is processed even if this has not been coded explicitly.
Example
Printing without archiving
DATA PARAMS LIKE PRI_PARAMS.
DATA: DAYS(1) TYPE N VALUE 2,
COUNT(3) TYPE N VALUE 1,
VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING DESTINATION = 'LT50'
COPIES = COUNT
LIST_NAME = 'TEST'
LIST_TEXT = 'Test NEW-PAGE PRINT ON'
IMMEDIATELY = 'X'
RELEASE = 'X'
NEW_LIST_ID = 'X'
EXPIRATION = DAYS
LINE_SIZE = 79
LINE_COUNT = 23
LAYOUT = 'X_PAPER'
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
NO_DIALOG = ' '
IMPORTING OUT_PARAMETERS = PARAMS
VALID = VALID.
IF VALID <> SPACE.
NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
WRITE / 'First line'.
ENDIF.
Example
Printing with archiving
DATA: PARAMS LIKE PRI_PARAMS,
ARPARAMS LIKE ARC_PARAMS,
DAYS(1) TYPE N VALUE 2,
COUNT(3) TYPE N VALUE 1,
VALID TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING DESTINATION = 'LT50'
COPIES = COUNT
LIST_NAME = 'TEST'
LIST_TEXT = 'Test NEW-PAGE PRINT ON'
IMMEDIATELY = 'X'
RELEASE = 'X'
NEW_LIST_ID = 'X'
EXPIRATION = DAYS
LINE_SIZE = 79
LINE_COUNT = 23
LAYOUT = 'X_PAPER'
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
SAP_OBJECT = 'RS'
AR_OBJECT = 'TEST'
ARCHIVE_ID = 'XX'
ARCHIVE_INFO = 'III'
ARCHIVE_TEXT = 'Description'
NO_DIALOG = ' '
IMPORTING OUT_PARAMETERS = PARAMS
OUT_ARCHIVE_PARAMETERS = ARPARAMS
VALID = VALID.
IF VALID <> SPACE.
NEW-PAGE PRINT ON PARAMETERS PARAMS
ARCHIVE PARAMETERS ARPARAMS
NO DIALOG.
WRITE / 'First line'.
ENDIF.
Notes
NEW-PAGE PRINT ON must not be called when nested. Nested print lists are not supported. Each NEWPAGE PRINT ON call must be completed with a NEW-PAGE PRINT OFF call.
It is not possible to add records to the spool on a cross-event basis ( AT LINE-SELECTION, AT PFx, AT USER-COMMAND). In such cases, NEW-PAGE PRINT OFF (see addition 10) is processed if this has not been coded.
If you submit only NEW-PAGE PRINT ON NO DIALOG without additional parameters, the corresponding values from the user defaults are used as spool parameters.
Thanks,
Ramakrishna -
How to get SPOOL ID while using NEW-PAGE statement
Hi Experts
I am using "NEW-PAGE PRINT ON......PRINT OFF" statement to write directly in to the spool. while in this processing i want to get the SPOOL ID under which data is written. Is it possible? if yes, how ?
Thanks in Advance
MukundhanHi
Check the system field
<b>sy-spono</b>
for Spool ID at that place of code
Reward points if useful
Regards
Anji -
How to print new order in odd page or new page
Hi Experts,
I want to print my order layout in oddpage. If any new order comes it should print inthe odd page. Currently its printing Back to back.
But I want to print my order layout in oddpage or new page.
Any one guide this??
Offering points is against the terms of engagement. Text changed by moderator. Also, do not post the same question in more than one forum.
Mohana
Edited by: Mohana Vijayan on Oct 31, 2008 8:35 AMHi mohana,
For script or smartform?
In case smartform
Create pages as per your requirement.
In the global defintion --> initialization tab -->
if w_page = 1.
control_parameters-startpage = '%PAGE1'.
else.
control_parameters-startpage = '%PAGE2'.
ENDIF.
Regards,
Sravanthi -
SAP Script info req to print new line iten on new page
hi
i had an req to print the list of MATNR & KUNNR on script,but the req is like this,at NEW MATNR,the script shd start with new page,say,if there are 5 MATNR,2 are same & 3 are same with diff KUNNR.
On first page:2 MATNR shd be printed
On Second Page:3 MATNR shd be printed & so on each time on new page...
Please tell me how to do it,in window MAIN,how shd i wirte code for this?
regdshey,
Check this,
First in your print program call FM 'START_FORM'.
Then call FM 'WRITE_FORM'
After this call FM 'CONTROL_FORM' :
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command = 'NEW-PAGE'
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
At last call FM 'CLOSE_FORM'.
By using FM control_form and passing parameter 'NEW-PAGE' you will get one new page even thow if content of ur main window of previous page is not exceeding..
hey call new-page for every new matnr
Regards,
Midhun Abraham
Edited by: Midhun Abraham on Oct 11, 2008 8:47 AM -
Print Moducle - Custom Package (New Page) Query
Hi
I've made a custom template (two 7x5 images over each other) on a custom page and save this template. I know want to create a new page (by clicking on "new page" under "cells" menu) BUT I want to copy over the cells/page from page 1.
e.g. page 1 is perfect, I now want to create a new page with same settings. If I create a new page and then click on my template it just starts again with 1 page and my template!
Aarrgghh.. surely there's a way to create a new page using existing template/page?
Please advise - it's driving me around the bend!Hi,
You mention that you use A6 landscape 148 x 105mm and you use Computation below to convert page format length to inches.
148 mm = 5.82677 "
When you use landscape orientation, usually the shorter 105mm will represent the height of the paper. i.e. With landscape the width is greated than the height. So on this case the height wopuld be 105mm or 4.1 in
So in the printer initialization it wpuld be:
set page length to 10.5cm (~25 lines at 6 LPI)
\e\0x43\0x19
however, I don't think this is the reason for the preview problem. The printer initialization should only affect the print. What is the setting for the Lines/Inch in the sapscript form? SE71 -> <Form> -> Basic Settings
This could affect the preview.
Regards,
Aidan -
# Question
In IE if I set the zoom at lets say 150% it will stay that way even if I shut down. But with firefox, it goes back to small print every time I view a new page. Is there a way to set the zoom to stay at a larger size? Thanks, EHIf you need to adjust the font size on websites then look at:
* Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
* NoSquint - https://addons.mozilla.org/firefox/addon/2592
Your above posted system details show outdated plugin(s) with known security and stability risks.
*Shockwave Flash 10.0 r45
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
*http://www.adobe.com/software/flash/about/ -
How do you copy, for example I work with blue prints and I want to copy a section and copy into another new page?
Forgot to add that it would be an adjustment layer with some kind of mask on it already. The mask is uncentered when copy and pasted which throws it off.
I guess the same question would go towards doing the same for an object. How to copy and paste it over to a new doc, keeping its position within the document? is this possible? -
REUSE_ALV_GRID_DISPLAY forcing new page when printing
Hi,
how can force a new page n several condition when i'm printing a list generated by FM REUSE_ALV_GRID_DISPLAY?
I need a new page by group change with several columns. IS_PRINT seems not to be the right place where to look.
Thx in advance.
RainerHi,
You may look at the following post for solution.
ALV page break
Cheers
Vinod -
Printing Problem in New Page Format
Hi Everybody,
I have an issue lying long time in my Company.
Abap person asked me to create a new page format with new page sizing and all. i created it. this is actually for Voucher printing which does not require A4 size. so that i specified specific paper size in that.
Voucher is Printing in the Specified Size, ok. But, after printing it, the printer automatically Rolls till the end of the paper.(Probably this would have taken A4 by Default)
the issue is, we need to stop this rolling and we need to make this printing as specified.since it is continuous printing, every time we cant manually rotate the page.(Printer Epson Dot Matrix)
Is this either can be sorted out by ABAP or Basis Person.
What can be done from Our Basis Side?
Thanks,
SivaHi,
How you solved this problem?
I am also facing the same problem.
Thanks in advance
Sameer Dhuke
Edited by: sameer dhuke on Feb 16, 2010 11:27 AM
Maybe you are looking for
-
SharePoint public facing site does not open in sharepoint designer after giving http redirect in IIS
I have a public facing sharepoint site We gave http redirect in IIS due to which I am unable to open the site in SharePoint Designer and gives error message site not found in webserver. If i revert back the settings (remove the http redirect link) i
-
About DTW - A/P Credit Memo for Service Type A/P Invoice
Dear all, I would like to upload A/P Credit Memo with A/P Invoice Base Entry. The A/P Invoice is a "Service" Type. I am using oPurchaseCreditNotes object by providing: Documents (w/ cardcode, docdate, docduedate and taxdate) Documens_Line (w/ BaseEnt
-
Hi, I want to transfer my internal table data to excel sheet. But i have created internal table by using field symbol which is without header line. Problem is that when i am tranferring the data by using WS_DOWNLOAD,GUI_DOWNLOAD and WS_EXCEL , hea
-
TM not let me back up a 32GB flash drive?
I would like to back up a 32 GB flash drive in addition to my hard drives via Time Machine - but TM won't let me remove the device from its excluded list?? Am I doing something wrong here? Please advise.
-
Oracle 9i database server ORA-12560: TNS: Protocol adapter error ?
My OS windows xp 2002 sp2. im using oracle 9i database server .I cant login Oracle sql * plus when in going Enter user name and password " scott and tiger " then I got problem here is the message is below : SQL*Plus: Release 9.0.1.0.1 - Production on