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 AM
Hi 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
Similar Messages
-
How to print the text in only last but one page in sapscripts
hiiiiiiiiiii,
explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?Hello,
The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
So u can handle the situation in ur form like this
/: if &PAGE& = &SAPSCRIPT-FORMPAGES&
p1 TEXT
/: endif
Try in this way it may help u.
Regards -
How to Print T&C on backside of the last page in smartform.
Hi All,
I have requirement from one of the my client to print the terms & condition page on the back side of last page in invoice form.
I have created three pages as below.
First page: To Print header data,Print mode:blank,Next page : NEXT.
Second page : Contains the continuation of the data,if there are enough lines,Print Mode: D,Next page : NEXT.
Last page:To Print T&C,Print mode : blank,Next page :blank.
This is working properly when form has 2 pages.Here my question is,
How to print the T&C on backside of first page,if form has only one page.
Thanks in Advance.Hi Vineesh,
I have 3 pages in my form.
First page: To Print header data, Print mode:blank, Next page : NEXT.
First page has the comment node, go to next page as Third page.
Second page : Contains the continuation of the data, if there are enough lines, Print Mode: D,
Next page : NEXT.
Third Page: T&C page, Print mode : blank,Next page :blank
The 3rd page should print back side of the page.
If form has only one page,then first page should be in D mode.Hence the T&C page will print back side of first page.
If form has multiple pages. then the last page ( where the main window gets end ) should be D.Hence
the T&C page will print back side of last page.
How to achieve this both the scenarios?
Thanks & Regards,
Priya Chandran -
How to print sales order acknowledgement while printing purchase order
how to print sales order acknowledgement while printing corresponding purchase order
in me22nin print program of Purchase order.. try to trigger output for Order Ack. as well...
Order acknowledgement -
How to print a report in half of the A4 page
Hi,
Please help me, how to print a report in the half page of the A4 size paper.
Thanks,Hi
If you are using the command MEW-PAGE PRINT ON
then we can give this layout options
like
NEW-PAGE PRINT ON
DESTINATION <printer name>
immediately 'X'
KEEP IN SPOOL 'X'
LAYOUT 'X_65_132' (OR X_65_255)
RECEIVER SY-UNAME
NO-DISPLAY.
OTHERWISE WHEN YOU SELECT THE PRINTER
IN THE PRINTER PROPERTIES/SETTINGS BASICS-> PAPER
you will have this facility to select LANGSCAPE/PORTRAIT
use that and print
Reward points for useful Answers
Regards
Anji -
How to print header lines at the top of every page with Alv list display?
Dear all,
I need a requirement with printing issue. A program list should be printed with the function reuse_alv_list_display.
The list has several pages and then can be printed but the header lines appear only first page when they printed. The other pages don't have header lines, they continue with the next record of the list remaining from previous page. I use the alv parameters as below:
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_pf_status_set = 'ALV_PF_STATUS'
is_layout = ls_layo
it_fieldcat = lt_fcat
i_default = 'X'
i_save = 'A'
is_variant = ls_variant
it_events = lt_events
TABLES
t_outtab = lt_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
and lt_events as below:
ls_event-name = 'END_OF_LIST'.
ls_event-form = 'ALV_END_OF_LIST'.
APPEND ls_event TO lt_events.
ls_event-name = 'END_OF_PAGE'.
ls_event-form = 'ALV_END_OF_PAGE'.
APPEND ls_event TO lt_events.
ls_event-name = 'TOP_OF_LIST'.
ls_event-form = 'ALV_TOP_OF_LIST'.
APPEND ls_event TO lt_events.
ls_event-name = 'TOP_OF_PAGE'.
ls_event-form = 'ALV_TOP_OF_PAGE'.
APPEND ls_event TO lt_events.
So, how can I print header lines for every page?
Best Regards,Hello Saba,
Your point might be very close to solution.
Because in the selection screen of the program there are two radio buttons, one of them visits 'REUSE_ALV_COMMENTARY_WRITE' function and the other doesn't. The one which visits has a problem with header liens in every page when printing. But I couldn't find out the solution yet.
reuse_alv_list_display uses 4 event and of course I call subroutine. There are end_of_list, end_of_page, top_of_list and top_of_page. I use in the subroutine for top_of_page:
CALL FUNCTION 'LVC_TRANSFER_TO_SLIS'
EXPORTING
it_fieldcat_lvc = gt_fcat
IMPORTING
et_fieldcat_alv = lt_fcat
EXCEPTIONS
it_data_missing = 1
it_fieldcat_lvc_missing = 2
OTHERS = 3.
CALL FUNCTION 'REUSE_ALV_LIST_WIDTH_GET'
EXPORTING
it_fieldcat = lt_fcat
IMPORTING
e_width = l_width.
WRITE l_reptx TO l_reptx CENTERED.
NEW-LINE.
WRITE: AT (l_width) l_reptx CENTERED.
SUBTRACT 10 FROM l_width.
WRITE: AT l_width sy-pagno RIGHT-JUSTIFIED.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = lt_header
I_LOGO =
I_END_OF_LIST_GRID =
Do you have other suggestions ? -
How to print the JFrame In The Center Of The Page?
hi there in the following code iam trying to print a JFrame
but the frame appear in the printed page at the top left
and i want it to appear in the top center of the page
how to do that?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.print.*;
class PrintUIWindow implements Printable, ActionListener {
JFrame frameToPrint;
public int print(Graphics g, PageFormat pf, int page) throws
PrinterException {
if (page > 0) {
return NO_SUCH_PAGE;
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pf.getImageableX(), pf.getImageableY()-55);
frameToPrint.print(g);
return PAGE_EXISTS;
public void actionPerformed(ActionEvent e) {
PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintable(this);
boolean ok = job.printDialog();
if (ok) {
try {
job.print();
} catch (PrinterException ex) {
public PrintUIWindow(JFrame f) {
frameToPrint = f;
public static void main(String args[]) {
UIManager.put("swing.boldMetal", Boolean.FALSE);
JFrame f = new JFrame("Print UI Example");
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);}
JLabel label1=new JLabel("Selling Bill",JLabel.CENTER);
JLabel label2=new JLabel("Customer Name :Mahmoud Saleh ",JLabel.LEFT);
JLabel label3=new JLabel("Buying Date :29/8/2008 ",JLabel.LEFT);
JLabel label4=new JLabel("Book Buyed :Java Printing ",JLabel.LEFT);
JLabel label5=new JLabel("Number : 6 Copies ",JLabel.LEFT);
JLabel label6=new JLabel("Total Price :600 $ ",JLabel.LEFT);
label1.setFont(new Font("Courier New", Font.BOLD, 13));
label2.setFont(new Font("Courier New", Font.BOLD, 13));
label3.setFont(new Font("Courier New", Font.BOLD, 13));
label4.setFont(new Font("Courier New", Font.BOLD, 13));
label5.setFont(new Font("Courier New", Font.BOLD, 13));
label6.setFont(new Font("Courier New", Font.BOLD, 13));
JButton printButton = new JButton("Print This Window");
printButton.addActionListener(new PrintUIWindow(f));
JPanel panel=new JPanel();
panel.setLayout(new GridLayout(6,1));
panel.add(label1);
panel.add(label2);
panel.add(label3);
panel.add(label4);
panel.add(label5);
panel.add(label6);
f.setSize(300,300);
f.setLocationRelativeTo(null);
f.add(panel,BorderLayout.CENTER);
f.add(printButton,BorderLayout.SOUTH);
panel.setBackground(Color.WHITE);
f.setResizable(false);
f.setVisible(true);
}First_knight wrote:
please tell me am i thinking right
about this method: setImageableArea(.....)
public void setImageableArea(double x, double y, double width, double height);
like I said, I've tried this method and it doesn't seem to do anything.
the width=the JFrame Width,the height=the JFrame Height right?actually, when printing, 72 points (printing version of pixels) = 1 inch, so to do WYSIWYG, you need width = JFrameWidth * 72.0 / Toolkit.getToolkit().getScreenResolution. Ditto with height
upper left beginningx(0)---------------------------200--------------------------------600-----------------------------------y(1000)upper right beginningyou need to do something like PageSetup.getImageableX and do Graphics.translate(x,y);
also, if your page width = 720, that = 10 inches - that's a wide page (unless its in landscape)
so if i want the JFrame To Be In The Center Of The Page I Would Choose From x=200 ,y=600 depending that frame width is 400Actually, it would be 300 - 700 in your example
Because when i tried to use:setImageableArea(200, 600, 400, 200);like the above code
no changes occurs in the printed paperYes. You need to offset the Graphics object -
How to print a value at the top of each page in the detail section of a rpt
Thanks for helping, I will try to get right to the point.
I have RTF template. Very simplistic template. I have the Group at the top (there is only 1 per XML file) and several DETAIL lines with like 10 columns.
The first displayed field is "ACCOUNT_NUMBER". The user wished that if the ACCOUNT NUMBER for line 2 was the same as line 1, that it be suppressed, for example:
Acct No other other other other
1234 XX XX XX XX
YY YY YY YY
This was not a problem, I was able to accomplish it with the following code:
<?if:position()=1 or ACCOUNT_NUMBER!=preceding::ACCOUNT_NUMBER[1]?><?ACCOUNT_NUMBER?><?end if?>
But what happens is that IF THE FIRST line on a page has the same ACCOUNT_NUMBER as the last line on the previous page, the ACCOUNT NUMBER is not displayed.
What I would like is for the ACCOUNT NUMBER to be displayed anytime we are at the first record on a page, AND anytime it is different from the previous record's value.
I do not know how many lines per page are possible, because there are other line breaks which exist which put a space between lines when values change too. So I cannot just count how many total lines and divide it by lines per page.
My thought was that there must be a way I could store a variable called LAST_PAGE, and at the end of each record, copy the current page number to that variable. Then in my ACCOUNT_NUMBER code, I could check if current page is NOT equal to last page along with my other conditions.
1. Is this the best way to do this? If so, please help, I am new to BI and am having trouble figuring out where to put variables and stuff like that.
2. If not, how can I do this?
3. If your recommendation is going to be to group my items by Account Number, I may not have time to redo the report that way. I will happily supply the rtf and xml if that will help you help me.
Regards:
Michael CoughlinHere ya go. Obviously you can duplicate the G_DETAILS blocks to get enough for 2 pages. I have the data pre-sorted before the output is generated because I had trouble getting the RTF to work if I didn't, just so you know.
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generated by Oracle Reports version 6.0.8.28.0 -->
<XXDIPICK_RPT>
<LIST_G_HEADERS>
<G_HEADERS>
<SHIP_FROM_ORG_CODE>202</SHIP_FROM_ORG_CODE>
<LINE_STATUS>Picked</LINE_STATUS>
<LIST_G_DETAILS>
<G_DETAILS>
<SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
<ACCOUNT_NUMBER>1000</ACCOUNT_NUMBER>
<DELIVERY_NUMBER>8062</DELIVERY_NUMBER>
<ORDER_NUMBER>103049</ORDER_NUMBER>
<CUST_NAME>DIAMOND INNOVATIONS INT SALES - NEWCO</CUST_NAME>
<DELIVERY_DETAIL_ID>12474</DELIVERY_DETAIL_ID>
<LINE_NO>1.1</LINE_NO>
<ITEM_NO>4087401</ITEM_NO>
<ITEM_DESCRIPTION>HPD M SD-CTO-0 Pot</ITEM_DESCRIPTION>
<OPEN_FLAG>Y</OPEN_FLAG>
<CANCELLED_FLAG>N</CANCELLED_FLAG>
<BOOKED_FLAG>Y</BOOKED_FLAG>
<ORDERED_QUANTITY>1</ORDERED_QUANTITY>
<ORDER_QUANTITY_UOM>EA</ORDER_QUANTITY_UOM>
<SHIPPED_QUANTITY></SHIPPED_QUANTITY>
<SCHEDULE_SHIP_DATE>2011-01-31T23:59:00+00:00</SCHEDULE_SHIP_DATE>
<NAME>INTERNAL ORDER - US</NAME>
<CUST_ACCOUNT_ID>16404</CUST_ACCOUNT_ID>
<HEADER_ID>6446</HEADER_ID>
<LINE_ID>7926</LINE_ID>
<ORG_ID>84</ORG_ID>
<SHIP_TO_ORG_ID>16050</SHIP_TO_ORG_ID>
<INVOICE_TO_ORG_ID>16052</INVOICE_TO_ORG_ID>
<SHIP_SET_ID></SHIP_SET_ID>
<INVENTORY_ITEM_ID>63927</INVENTORY_ITEM_ID>
</G_DETAILS>
<G_DETAILS>
<SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
<ACCOUNT_NUMBER>1000</ACCOUNT_NUMBER>
<DELIVERY_NUMBER>8062</DELIVERY_NUMBER>
<ORDER_NUMBER>103049</ORDER_NUMBER>
<CUST_NAME>DIAMOND INNOVATIONS INT SALES - NEWCO</CUST_NAME>
<DELIVERY_DETAIL_ID>12475</DELIVERY_DETAIL_ID>
<LINE_NO>2.1</LINE_NO>
<ITEM_NO>3732307</ITEM_NO>
<ITEM_DESCRIPTION>NV MBS 2325 Bushing Asm</ITEM_DESCRIPTION>
<OPEN_FLAG>Y</OPEN_FLAG>
<CANCELLED_FLAG>N</CANCELLED_FLAG>
<BOOKED_FLAG>Y</BOOKED_FLAG>
<ORDERED_QUANTITY>1</ORDERED_QUANTITY>
<ORDER_QUANTITY_UOM>EA</ORDER_QUANTITY_UOM>
<SHIPPED_QUANTITY></SHIPPED_QUANTITY>
<SCHEDULE_SHIP_DATE>2011-01-31T23:59:00+00:00</SCHEDULE_SHIP_DATE>
<NAME>INTERNAL ORDER - US</NAME>
<CUST_ACCOUNT_ID>16404</CUST_ACCOUNT_ID>
<HEADER_ID>6446</HEADER_ID>
<LINE_ID>7927</LINE_ID>
<ORG_ID>84</ORG_ID>
<SHIP_TO_ORG_ID>16050</SHIP_TO_ORG_ID>
<INVOICE_TO_ORG_ID>16052</INVOICE_TO_ORG_ID>
<SHIP_SET_ID></SHIP_SET_ID>
<INVENTORY_ITEM_ID>67865</INVENTORY_ITEM_ID>
</G_DETAILS>
<G_DETAILS>
<SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
<ACCOUNT_NUMBER>46711</ACCOUNT_NUMBER>
<DELIVERY_NUMBER></DELIVERY_NUMBER>
<ORDER_NUMBER>102980</ORDER_NUMBER>
<CUST_NAME>VAREL EUROPE</CUST_NAME>
<DELIVERY_DETAIL_ID>12356</DELIVERY_DETAIL_ID>
<LINE_NO>1.1</LINE_NO>
<ITEM_NO>11004002</ITEM_NO>
<ITEM_DESCRIPTION>TYPE I 100/120 MISC</ITEM_DESCRIPTION>
<OPEN_FLAG>Y</OPEN_FLAG>
<CANCELLED_FLAG>N</CANCELLED_FLAG>
<BOOKED_FLAG>Y</BOOKED_FLAG>
<ORDERED_QUANTITY>75</ORDERED_QUANTITY>
<ORDER_QUANTITY_UOM>CT</ORDER_QUANTITY_UOM>
<SHIPPED_QUANTITY></SHIPPED_QUANTITY>
<SCHEDULE_SHIP_DATE>2011-01-27T23:59:00+00:00</SCHEDULE_SHIP_DATE>
<NAME>STANDARD ORDER - IRE</NAME>
<CUST_ACCOUNT_ID>5004</CUST_ACCOUNT_ID>
<HEADER_ID>6234</HEADER_ID>
<LINE_ID>7312</LINE_ID>
<ORG_ID>85</ORG_ID>
<SHIP_TO_ORG_ID>18929</SHIP_TO_ORG_ID>
<INVOICE_TO_ORG_ID>4995</INVOICE_TO_ORG_ID>
<SHIP_SET_ID></SHIP_SET_ID>
<INVENTORY_ITEM_ID>42032</INVENTORY_ITEM_ID>
</G_DETAILS>
<G_DETAILS>
<SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
<ACCOUNT_NUMBER>76127</ACCOUNT_NUMBER>
<DELIVERY_NUMBER>7608</DELIVERY_NUMBER>
<ORDER_NUMBER>102981</ORDER_NUMBER>
<CUST_NAME>LION ENGINEERING SERVICES LTD</CUST_NAME>
<DELIVERY_DETAIL_ID>12357</DELIVERY_DETAIL_ID>
<LINE_NO>1.1</LINE_NO>
<ITEM_NO>11004002</ITEM_NO>
<ITEM_DESCRIPTION>TYPE I 100/120 MISC</ITEM_DESCRIPTION>
<OPEN_FLAG>Y</OPEN_FLAG>
<CANCELLED_FLAG>N</CANCELLED_FLAG>
<BOOKED_FLAG>Y</BOOKED_FLAG>
<ORDERED_QUANTITY>200</ORDERED_QUANTITY>
<ORDER_QUANTITY_UOM>CT</ORDER_QUANTITY_UOM>
<SHIPPED_QUANTITY></SHIPPED_QUANTITY>
<SCHEDULE_SHIP_DATE>2011-01-27T23:59:00+00:00</SCHEDULE_SHIP_DATE>
<NAME>STANDARD ORDER - IRE</NAME>
<CUST_ACCOUNT_ID>5614</CUST_ACCOUNT_ID>
<HEADER_ID>6235</HEADER_ID>
<LINE_ID>7318</LINE_ID>
<ORG_ID>85</ORG_ID>
<SHIP_TO_ORG_ID>18429</SHIP_TO_ORG_ID>
<INVOICE_TO_ORG_ID>5605</INVOICE_TO_ORG_ID>
<SHIP_SET_ID></SHIP_SET_ID>
<INVENTORY_ITEM_ID>42032</INVENTORY_ITEM_ID>
</G_DETAILS>
</LIST_G_DETAILS>
</G_HEADERS>
</LIST_G_HEADERS>
</XXDIPICK_RPT> -
How to print window contents at the backside of a page(In scripts&smartform
Hi,
How to print the window contents at the back side of a page
in scripts and smartforms?
regards,
prajwalaCreate a new page with the window and select "duplex" printing. Use Search button to get more information.
-
How to print the same picture multible times on one page
how can i print the same picture multible times on one page
Message title was edited by: Brett NSelect all of the images you would like to print in the Elements Organizer, then go to File > Print. In Step 4, choose Picture Package from the drop-down menu. In Step 5, click the option to Fill Page with First Photo.
-
How to print the contents of the table in new page?
Hi,
I want to print my table contents in the next page by clicking on a button. ie., kind of a print preview. I'm using netweaver2004s.
Thanks & Regards,
SureshHi,
1)Create a new View, map the context node which is bound to the table to the context of this view.
2) Iterate throught the element and print them to the screen.
3) Embed this view to a window.
4) on click of the button open the newly created window.
Code to iterate through the nodes
for(int x=0; x< wdContext.nodeTest().size(); x++) // Replace nodeTest with yours
ITestElement nodeElement = wdContext.nodeTest().getElementAt(x);
nodeElement.getAttribute("TestAttribute"); //Replace with yours
nodeElement.getAttribute("TestAttribute"); //Replace with yours
Regards
Ayyapparaj -
How do I re-order popup-menu (open in new tab to the top)
Popup-menu is reordered to have share-option at the top in the new version of android browser.
How do I change the open in new tab-option to be the topmost option?Hi mtolvane,
Currently in the customize options of Firefox for Android, this is not a feature. I would recommend requesting the feature in a bug.
[https://bugzilla.mozilla.org/show_bug.cgi?id=1025326] I filed this bug. -
How to print the all content of JTextArea to several pages
Hi there, my application have a JTextArea and user can type text in. When the jbPrint button is pressed, the all content of JTextArea should be printed to papers. But now my application can only print out the first page even the content of JTextArea is 3-page length, does anyone can give me some clue or example? Thanks in advance.!! Really hurry!!
Use freely downloadable smart jprint classes from http://www.activetree.com. This package also allows you to print contents of any kind of JTextComponent such as JTextField, JTextArea, JEditorPane, and JTextPane.
Print the swing components with or without showing in the UI. Line breaking is done automatically for you and prints in multiple pages.
JTable printing is specially interesting. -
How to print multiple copies on one page ?
How to print multiple copies of one document on one page ?
in coreldraw I used to make the document -for example a business card 5x9 - and when sending to print it automatically placed the number of cards that would fit in my A4 sheet.
how do I make the same operation in Indesign.
thanksHi, Peter S.
>I can see that as a shortcut to printing a page of different cards for multiple people, but to do a simple n-up of a single card it seems overly complex to me. What am I missing?
* It's just an alternative to copy/paste and step/repeat.
* For a one-time only use, perhaps it's a little more complex than necessary. But for any future needs, only the content of the data file needs to be changed, either by editing, or by pointing to a new data file. If different cards for multiple people becomes necessary, it's ready to go.
Regards,
Peter Gold
KnowHow ProServices -
How to printe with cardinal number? or ordinal number?
As Subject, how to print with numbers on the bottom of each page? or on the bottom right/ bottom left? or on top of page? top right/top left?
I am poor using Pages, still learning.Click in the Header or Footer:
+Menu > Insert > Auto Page Numbers…+
Peter
Maybe you are looking for
-
Broken ATI Mobility FireGL V5700 for W500 with Windows 7 - 64 bit
Hello all, My setup is Lenovo Thinkpad W500 with Windows 7 - 64 bit Display card is a ATI Mobility FireGL V5700 My graphics drivers used to be functional but now I have lost a lot of functionality (mostly graphics issues). My two biggest issues are:
-
TFS 2010 Team Web Access Work Items not loading dropdowns and not saving
Some of our users have lost their ability to add new work items. When they select New -> Bug the WorkItemEdit page opens, but none of the dropdowns load and required fields are no longer highlighted. When they click save it acts like it refreshes, bu
-
How can I get movie trailers out of Podcast Library?
I recently started watching movie trailers in iTunes - it's great fun. I decided a good way to keep track of movies I'd like to watch is by downloading the trailer. However, some of the trailers are showing up in my Podcast Library - I really don't w
-
How to pass js variable to be used in managed bean constractor?
Hi, I got a list of items that i present in <h:selectOneMenu on my page (the first page the user sees) the labels that are shown in the ><h:selectOneMenu are date + time , and the time itself is stored in the db in UTC without any + or - timezone off
-
Opening an existing file for CS Review & file organization
1. Is there a way to take a file that's already been uploaded to Acrobat and start a CS Review? 2. Is there a way to organize files into a folder or similar structure? Thanks