Printing with mpage(1) or equivalent formating

Q1: Can Java control Margins simular to mpage?
"/usr/bin/mpage -m10l0r60t10b bla.java | lp" prints clearly.
How can I control the margins simularly via Java?
Q2: Can I control which program Java utilizes for printing?
It appears Java is executing the following "echo 'data'|/usr/bin/lp".
Can I control the underlying program called by Java to execute
"echo 'data'|/usr/bin/mpage -m10l0r60t10b | /usr/bin/lp"?
Q3: Can I print multiple pages per sheet?
mpage(1) has "-2", "-4", etc. options to print multiple pages per sheet.
Is there a simular option in javax.print.* methods?

I was not able to find a way to modify the Java Printing layer. However, I have verified the native layer is CUPS lp(1). Well, it turns out you can set lp settings on CUPS lp(1) simular to mpage(1):
lpoptions -o page-left=3 -o page-right=0 -o page-top=0 -o page-bottom=0 -o number-up=4 -o number-up-layout=tblr -o prettyprintThe "-o page-left=# ..." options control margins. The "-o number-up=4 -o number-up-layout=..." options control multiple pages per sheet. The "-o prettyprint" option is an added bonus to provide title bar and additional text formatting.
The only remaining issue... the document title is listed as "Java Printing" instead of the
document name... On to the next layer of the onion.
Anyone know the Java setting to control the document title during printing?

Similar Messages

  • How do I get my Macbook Pro to print with HP Officejet 7500a Wide Format printer

    My Macbook Pro (Retina Display) seems to have a problem to print with the HP Officejet 7500a - Wide Format printer - Is it the OS X 10.10.2 causing the problem. It works when connected to the USB cable - but wireless print is a problem.

    let's see-on printer control panel, you've pressed the right arrow, then "network" then "wireless" then "wireless setup wizard" then OK,
    and the wireless capability has been turned on, yes? (I didn't know you could turn it off) -either press the wireless button, or press setup on the printer's control panel, then wireless menu, then touch "On". A blue light should be lit up.
    Failing that, restart the wireless components-turn off router, then printer, then turn on router and then turn on printer.  dunno what else to suggest
    apparently, you can do a wireless test from the printer-right arrow, then network, then wireless, then wireless network test.. .
    also see if there are any updates for your printer-there has been a firmware update for this printer from  2012-try that, there is also a software update for 10.10 apparently it adds direct wireless printing...
    JB

  • Unable to print in 100 MM     36 MM format.

    Hi All,
    We are facing a print problem where we are unable to print in 100MM X 36MM Page Format(ZSTICKE which is created) This is of customized type, With LOCL output device the spool request is not getting generated. However we are able to see the print preview.
    while printing it gives a error "**Error while calling the smartform**"
    Now we tried to run a print with A4 (DINA4) size page format and it worked, we are able to see the print preview and also print.
    Could you please let us know what could be the issue as it works with A4 but not with customized page format(It however gives print preview even with customized page format
    Thanks in Advance.
    Vijay

    Hi Vijay,
    In SPAD Tcode u have to assign the page format to the printer and then only it will works. other wise it will show error.
    Regards,
    Sathis

  • Printing a new format page in Matrix Printer with the SAPWIN Device Type...

    Hi,
    The requierements is to print Identification Material Labels with an Epson DFX-8500 printer. The label font is TIMES 34, therefore the Printer Device Type is SAPWIN. The real throuble is that label size (Format Page) doesn't exist.
    I created a New Format Page but when a print the Materlal Label (SAPSCRIPT), the SPAD configuration isn't recognized. I need an Height of 432 PT (Like INCH6 because the paper is continuous form) isn't recognized.
    Could somebody help me???
    Alexis Sánchez N.
    SAP ABAP Development Consultant
    << removed >>
    Valencia, Venezuela
    Edited by: Rob Burbank on May 25, 2010 3:56 PM

    Hi all,
    I solved myself... This is the way...
    I have an Epson Matrix Printer (Epson DFX-8500)
    In SAP, I created the Epson DFX-8500 Printer with the device type SAPWIN. This printer have some attributes in windows operational system (Windows XP). One of this attributes is the default paper size (Letter).
    To change this, you have to do what the SAP Note 163136 (Creating new paper size for Windows NT-2000-XP-2003) says:
    Solution
    Note: This note is based on Note Q157172 from the Microsoft Knowledge Base.
    You create a new paper size this way in Windows NT:
    1. Choose 'Control Panel' and double-click 'Printer'.
    2. Select 'Server Properties' in the 'File' menu.
    3. Select the 'Create A New Form' check box on the 'Forms' tab page.
    4. Enter the settings for the new paper size.
    NOTE : If you set up your own customized paper size, the margins
    cannot exceed the settings of the installed printer. The print area
    must correspond to the margin settings of the printer driver used.
    5. Save the paper size.
    Proceed as follows to use the new paper size as the default format:
    1. Select 'Printer' in the 'Control Panel'.
    2. Click the right mouse button to select the required printer and select
    'Document defaults'.
    3. Select the new paper size in the 'Paper Size' selection box (on the
    'Advanced' tab page).
    4. Click OK.
    5. Again with the right mouse button click the required printer and
    select 'Attributes'.
    6. Open the 'Device Settings' tab page and select the paper tray from
    which you should print. Then select the new paper size.
    NOTE: New paper sizes are stored on the computer on which they were
    created. If you create a new paper size for a shared printer, you must
    create the new paper size on the printer's print server.
    NOTE : In Windows XP, there is an error in this procedure that can be
    corrected with Note Q838298 from the Microsoft Knowledge Base.
    I hope it helps you...
    Alexis Sánchez N.
    SAP ABAP Development Consultant
    Valencia, Venezuela

  • Wide format printing with Officejet7610 wide format printer

    When setting up a print job needing 13" x 19" paper (A3+ paper size ), there is NO 13" x 19" (or A3+) paper size to select in the drop down list of paper sizes. The size doesn't seem to be recognized and yet the printer is a wide format printer and says it will handle up to 13" x 19" paper. I have tried printing out of Photoshop Elements, Picasa, and Windows Photo Viewer. There is no 13" x 19" paper size category.  Whats happening here? Why can't I use a paper size that this HP 7610 wide format is supposed to handle? Thanks to all.

    I have that same question with an Officejet 7000 Wide Format printer

  • Report printing with BI pubisher - 500 Internal server error

    Hi,
    I was having problems using BI publisher to print with. I thought we didn't have it at first, however since found we do have BI Publisher Enterprise edition.
    When I put the settings into APEX, reports don't display as expected. I get
    report error:
    ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.Now if I navigate to the URL in my web browser, http://[server]:[port]/xmlpserver/convert, I get a 500 - Internal Server Error page. The requets is definitely hitting something because if I change "convert" to say "convert1" then I get 404 (as expected). So it seems as if convert is found but then a problem occurs.
    If I navigate to just http://[server]:[port]/xmlpserver/ then I see the BI publisher enterprise login screen.
    Any ideas what might be causing this or what I could do to resovle it?
    Our APEX instance is on a unix box and BI on a M$ box if that matters (long story)?
    Thanks

    Ignacio Cobos wrote:
    Hello
    >
    > I get this error when i try to access to Bex Analyzer
    >
    > ERROR: URL used, "http://sesue:50300", is not fully qualified.
    > A fully-qualified URL has a schema with the format "<protocol>://server.company.com:<port>". URLs with the format "<protocol>://server:<port>" or "<protocol>://<ip address>:<port>" are not fully qualified.
    > See SAP Notes 581329 (Not possible to implement) , 596698 (Not possible to implement) and 654326 (Not yet released)
    >
    > Can anybody say me any idea how to solve the problem?
    >
    > Thanks in advance
    Dear Cobos, For FQDN related issues : Set profile param "icm/host_name_full" with corresponding FQDN via RZ10 transaction. Also check login/create_sso2_ticket & /accept_sso2_ticket parameters in the profile you have created.  Instead of "http://sesue:50300" you may to have the URL like "http://sesue.domain.com:50300//SAP/BW/BEX/". Please refer this #scn article for more details : http://goo.gl/QPlrx Similar Issues : http://goo.gl/mRCh0 Hope it helps. Thanks.

  • Unable to print xml publisher report in excel format in R12

    Hi All,
    We are unable to print xml publisher report in excel format in R12. We were able to see the excel output but it's printing junk characters while printing and it's printing without any issue with PDF format.
    Please let me know how to fix this issue.
    Thanks,
    Raja

    Hi Raja,
    I presume you have gone through the debugging process of testing your template locally first to get the expected result.....
    If yes, this note might probably be helpful "Changing Output Format to RTF or Excel in XML Publisher Request Does Not Display Output Correctly (Doc ID 404512.1)"
    Good Luck,
    Lamine Balde

  • Excise invoice printing is required in preprinted stationary format.

    Dear All,
    I developed a new program & script for excise invoice printing. The requirement is as under: Page layout will be such where 10 line items( as maintained in billing document) can be printed in each page i.e. if billing document have 25 line items (including Finished goods & accessories) , so it should be printed in 3 pages. In each pages,  page no should be printed first, then consignee address, customer address, Date, SO number, Tin no etc. Those above details should come in header portion of each page. Then first 10 line items can be printed. If there are more line items, then next 10 items get printed in next page & so on. In the very last page only assessable amount, Tax, VAT, Educes amt & Gross amt along with Excise number, removal time, type if invoice, payment mode etc (in footer section) should be printed. If billing document have only 10 line items, it will be printed in a single page.
    I have declared First page & next page only. In each page I have declared required page window according to window size of preprinted stationary format. For that I have used DINA4 page format( size 210 / 297 MM). But actual height of stationary format is 12 inch ( 305 MM).
    In print preview it is displaying supereb. All required data is being displayed properly. But when I am taking printout from Dot-matrix printer, from second page onwards it start printing two lines prior to actual position (two lines going up).
    I did some permutation to adjust it. But I can not find a proper resolution to it. My thinking is that it is only printer setting problem. Also in PC level in printer setting I used custom paper size declaring actual paper width & height.
    Please advise whether it is script/ program problem or printer setting problem.
    Regards
    Srimanta

    Dear Bapujee/Santosh/Srimanta,
    I know this is a very peculiar problem. Actually the SAP paper size definations are over-ruled by spool server's print manager's defination i.e. the setting of the PC's finally works.
    Simple solution is create a paper size in the PC and set the printer with the new paper size.
    Now, you will encounter another problem. The user may using the printer for other paper size printings also. To avoid the changing of PC's paper size every time the user prints different size, you can adopt this :
    In the spool server (i.e. the PC with printer), create different printers with required paper size and name this printer with some meaniful names. Now, in R/3, while printing with LOCL output device the user can select the required printer.
    This can be done for network printers also.
    All the best.
    With Regards,
    Abhijeet.

  • Chart Prints With a Border

    I am using Crystal 11 over a Citrix connection. I have two pie charts in the report footer section, with one partially overlapping the other one.  I have it set up to show the pie of each chart, but only one legend.  When I print to two different local printers, the top-layered chart prints a border even though the border setting is set to none.  If I make the lower-layered chart the top chart, then IT prints with a border and the other one no longer has a border.  If I export the report as a .PDF and then print the .PDF, both charts print without a border as they should.  If I export as a Crystal Report and then print it using the Crystal Reports installed on my hard drive, both charts again print correctly.
    I've tried putting a white border around the chart, but that didn't help.  If I put a non-white border around the chart, that border surrounds the border that shouldn't be appearing.  I've searched the web and this newsgroup, but haven't found any references to this problem.
    Any help would be greatly appreciated.

    I guess I should have played with it a little bit longer.  While I wouldn't say it's working as designed there is a workaround.  I went into Chart -> Format Background... (which can also be accessed via right-clicking the chart).  The border was set to transparent, but the fill foreground color was set to white.  When I made the foreground color transparent as well, then the border disappeared when printing.  I'm not sure why a white background with a transparent border was making the border appear, but I am now getting the desired results.
    Hopefully someone else will gain from this if they have a similar problem.

  • Apex 4.2.2 PDF Printing with Apex 2.0 Listener

    We recently installed Apex 4.2 with the Apex 2.0 Listener and can successfully print interactive reports and classic reports to PDF.  I viewed Mark Sewtz PDF Printing with Apex 4.2.2 and saw how he is using third party tools to format reports.  We have also looked into the Jasper Report Integration Toolkit, but have only got it working on the Tomcat environment, not WebLogic.
    I'm trying to download a classic report in PDF format with our logo displayed at the header.  In the print attributes section, there is a section for header.  I've tried adding the following in the header section:
    <img src = "http://hr.unm.edu/common/images/unm_dept_logo.gif">
    No Logo Prints
    #APP_IMAGES#unm_dept_logo.gif
    Prints in header:
    wwv_flow_file_mgr.get_file?
    p_security_group_id=3930016164431413%26p_flow_id=106%26p_fname=unm_dept_logo.gif
    #WORKSPACE_IMAGES#unm_dept_logo.gif
    Prints in header: /i/unm_dept_logo.gif
    I've also added the logo in the report region, prior to the columns printing, but no logo downloads to PDF.
    Does the Apex Listener only render text?  Is there any way to get the logo to print in the header without using a third party tool?  Any suggestions are greatly appreciated.  Thanks!

    Hi,
    There are different options to include images in your PDF exports. What's important to understand though is that with the PDF export functionality we separate the formatting from the actual data. So the formatting is defined in your RTF or XSL-FO templates and the data is stored in the XML that APEX generates based on your report data. We have several formatting options exposed on the print attributes pages, i.e. you can define page formatting, dimensions, fonts, colors, etc - all of these are applied to what we call generic XSL-FO templates. Those templates are generic in that they can be used with different reports, having variable numbers of columns and variable column names. Those formatting attributes can not be used however with named column templates, such as those that you generate with BI Publisher or those third-party tools I talked about in my Blog.
    So if you want to use these formatting options, you need a generic report layout - which you get out of the box using the built-in layout. But you also have the option to create your own generic report layout (see Shared Components -> Report Layouts). When creating a custom generic report layout, you'll get a copy of the built-in layout as a starting point. Once created, you can manually modify this layout to meet your needs. As you edit this template, you'll find a number of #....# substitution strings. This is what APEX uses at runtime to fill in your formatting values as well as to assemble your generic layout based on your result set.
    Now one way to include your own image would be to add an image reference to this generic report layout. You can't use the page header or footer attributes on the print attributes page for that because the FOP rendering engine does not understand or translate HTML. It renders XSL-FO. So to add your own image reference, you need to use XSL-FO mark-up. If you want to add an image to your page header, look for the #PAGE_HEADER# substitution string in the "Page Template" attribute of your generic report layout. You should be able to find the following:
    <fo:inline xsl:use-attribute-sets="page-header">
        #PAGE_HEADER#
    </fo:inline>
    Now assuming you have a file stored in your local images directory on localhost, you could add the following external graphic reference:
    <fo:inline xsl:use-attribute-sets="page-header">
        <fo:external-graphic src="http://localhost:8080/i/cloud.gif" content-height="scale-to-fit" height="30px"  content-width="150px" scaling="non-uniform"/>
        #PAGE_HEADER#
    </fo:inline>
    Once you're done with your chanages, save the report layout and edit your report. Go to the print attributes and select your generic report layout and then run your report page and export the PDF. Provided the APEX Listener is able to find this external image reference, it will now be included above your report in your PDF document.
    Regards,
    Marc

  • How To... We Printing with Microsoft Excel in 7.0 / 2004s

    We implemented the How To... Web Printing with Microsoft Excel in BW 3.5.  We have upgraded a test box to 7.0 ( 2004s ) and the functionality is no longer working.  We have buttons in our web templates which call the help service and when they are clicked nothing happens.
    An example of the code we are using is:
    <A href="<sap_bw_url cmd='PROCESS_HELP_WINDOW' help_service='HELP_SERVICE_PRINT' item='GR1TABLE' subcmd='PRINT_EXCEL'>">
    Have other folks successfully continued to use this functionality in 2004s?  I know that formatted printing is an option in the new version but we intend to do a technical upgrade first and subsequently leverage this new functionality.
    Thanks!

    Thanks for the help.  I didn't think that there would be an SAP note for the How To but note 995142 has the exact changes required.  Thanks for pointing that out.

  • Error The File "Print.ai" is in an unkown format and cannot be opened adobe Ilustrator 5.5

    I am getting an error The File "Print.ai" is in an unkown format and cannot be opened adobe Ilustrator 5.5 on Mac OX 10.10.2 but was also the same in Mac Mavericks. any thoughts?

    d,
    In addition to what Larry said, there is a number of levels you can try for general issues, described in the following list. 1) and 2) are the easy ones, 3) is the basic preference file (irreversible procedure), 4) is the whole preferences folder (reversible and more thorough, needed for some issues), 6) is the full ultimate solution, 5) can be skipped in this case.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media, see below. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • White fonts on black background printing with zebra printer

    Hello,
    I've created a label in Adobe forms, which should be printed with a ZEBRA 220XiIII plus.In the label there is a text that should be printed in white fonts on a black background. The problem is that when I print the label, the white text is not printed, I have only a black background. The print preview is ok, and if I print the label on a laser printer it is ok too.
    Does someone have any idea?
    Thanks.
    Benjamin

    The above code i have used is to print a Maxi code Symbol.
    [)>_1E01_1D96841706672_1D840_1D001_1D1Z12345675_1DUPSN_1D123X56_1D187_1D_1D1/1_1D10_1DN_1D_1DSALT LAKE CITY_1DUT_1E_04
    this code is in the format:
    [)>Rs Message Header
    01Gs96 Transportation Data
    Format Header
    841706672Gs Postal Code
    840Gs Country Code
    001Gs Class of Service
    1Z12345675Gs Tracking Number
    UPSNGs SCAC
    123X56Gs UPS Account Number
    187Gs Julian Day of Pickup
    Gs Place holder for
    Shipment ID Number
    1/1Gs Package n/x
    10Gs Package Weight
    NGs Address Validation
    Gs Place holder for
    SHIP TO Street Address
    SALT LAKE CITYGs SHIP TO City
    UTRs SHIP TO State
    Eot End of Transmission
    [)><RS>01<GS>96841706672<GS>840<GS>001<GS>
    1Z12345675<GS>UPSN<GS>123X56<GS>187<GS>
    <GS>1/1<GS>10<GS>N<GS><GS>SALT LAKE CITY<GS>
    UT<RS><EOT>
    My code is based on the above format that should print UPS Maxicode Symbol
         but the maxi code symbol is not geeting printed. Can you help me on this.

  • PO printing with SMARTFORM

    Hi,
    PO printing is done with Standard Tcode at present.
    Pls forward me Z_smartforms  for PO printing with future modifications or additions to that Zform available.
    I would like to print Many PO at one time

    Create Purchase Order Smartform
    Create a Smartform, copy the existing SAP provided purchase order Smartform to ZSFM_PURCHASEORDER for
    customizing as per business requirement.
    1. Form Settings under Global Settings node, set the parameters in Output Option:
    Page Format: Letter
    Character per Inch: 20
    Line per Inch: 6
    Style: ZSTM_SMB40_SF
    Output Format: Standard Output
    2.        Form Interface
    We can add parameters in the Import Parameters and tables in Tables tab of the form interface for the application
    data to be available for the Smartform to print.
    3. In Global definition we can define the all the global variables which can be used in Smartforms. Initialization
    can be used for initializing the variables and even for retrieving the data.
    Creating pages:
    Each form consists of one or more pages. The first page in the tree structure is the start page and the
    processing of the form starts with this page itself.
    1.        Open the context menu for existing page node and choose create page
    2.        Enter a unique name (FIRST) for the node and a description (Page)
    3.        Determine the format (1, 2, 3...)and the mode of the page counter (Increase counter) on the general
    attributes tab
    4.        Determine the print attributes (Portrait Format) of the page on the output options
    5.        Determine a background graphic for the entire page on the background tab (Not used in PO).
    Creating windows:
    The size and position of the window can be graphically set in the form painter. There are main windows and
    secondary windows. The difference between these two is that the output in a main window can cover several
    pages.
    1.        Open the context menu for an existing page node and choose window
    2.        Enter a name for the node (NAMEFORM) and a description (Title Window).
    3.        On the general attributes indicate type of window. NAMEFORM is secondary window.
    In similar fashion all the other windows are created and positioned as per the form design. Only one MAIN
    window is created, it is used for line items which can cover several pages.
    Positioning texts on the form
    The texts are displayed in the form using text nodes. The only exceptions are addresses.
    The predecessor node of the text node determines its use:
    Predecessor node        Used to
    Secondary window        Position text on one or more pages
    Main window        Display text in relation to other nodes in the main window, it may cover several pages
    Template         Displays texts for table cells of a static table
    Table        Display table contents
    There are three text types:
    1.        Text element : to enter new text in the PC editor
    2.        Text module : to include a text module
    3.        Include text : to include an existing SAPscript text
    Entering texts in PC editor: (TITLE)·     
      To create a text node call the context menu for that node in the tree structure that should receive the
    text, then choose->text
    ·        Enter a unique name (TITLE) for the node and the node description (TITLE)
    ·        On the general attributes tab choose text element as text type
    ·        In the text node box choose whether the text should be started with a new paragraph or only in a new
    line
    ·        Enter the text in the PC editor. Text could be a program element like &Title& or u2018Purchase Orderu2019. &Title&
    is a variable for which the value is assigned in Program line before the text.
    Including text modules: (TERMSCONDITION)
    Text module of the text node is used to refer to an existing text module in the system. The text modules can be
    used in two ways:
    ·        To create a text node, call the context menu for that node in the tree structure that shall contain the text
    and choose create->text under the window TERMSCONDITION.
    ·        Enter a unique name for the node (TERMSCONDITION) and a description (Terms and Condition)
    ·        On the general attributes tab select the text type text module
    ·        Enter the name of the text module in the text name field (&G_TERMS_TEXT&). &G_TERMS_TEXT& is
    used to determine the Text name dynamically in the program lines preceding the text module node.
    ·        Program Lines: GETTERMSCONDITION
    Concatenate 'ZTMM_PO_TERMS_' ZXEKKO-BUKRS
                                    INTO G_TERMS_TEXT.
    Including SAPscript texts:
    (HD_TXT_F01 u2013 Order Header Text)
    The text type include text node to refer to a SAPscript text, which already exists in the system. To identify the
    text the text name, object, id and the language is needed.
    ·        To create the text node, call the context menu for that node in the tree structure that shall receive the
    text and choose create -> text under the main window.
    ·        Enter a unique name (HD_TXT_F01) for the node and the node description (Order Header Text).
    ·        On the general attributes tab choose include text as text type
    ·        Text Name - &ZEKKO-EBELN&, Text Object u2013 EKKO, Text ID u2013 F01, Language - &SY-LANGU&. Also check
    mark u2013 No error if no text exists.
    Tip: Since the size of text is not known, its better to have the text in MAIN window, so that it can run to more
    than one page if required.
    Inserting addresses: (SENDER):
    Address node is used to insert an address into the form. This guarantees that the address is formatted
    according to the postal rules of the sender country.
    ·        To create an address node , call the context menu for that node in the tree structure that one wants to
    contain the text and choose create->Address
    ·        Enter a name for the node (COMPANY_CODE_ADDRESS)  and a description (Company Code Address)
    ·        Determine the address type (Organization Address) on the general attributes tab
    ·        For organizational addresses - specify the address number, for any other - specify the person number
    and the address number. In this case we get the company code address into variable &ADDNR&, so we need
    program lines (SENDER) preceding the address text.
    ·        In the box additional addresses, attributes to specify how to display the address are maintained.
    Printing graphics: (LOGO):
    Tcode SE78 is used to import graphics into the SAP system. The transaction imports the graphics and stores it
    in the BDS (business transaction server) and then it can be displayed in the form.
    ·        To create the graphic node , call the context menu for that node in the tree structure and choose create-
    >graphic
    ·        Enter a name (LOGO) for the node and the description (Logo Graphic)
    ·        On the general attributes determine whether a colored or a black and white
    ·        On General Attributes use the fields object - GRPAHIC, id u2013 BMAP and name - &G_LOGO& to identify the
    graphic. &G_LOGO& is variable and therefore we can print company code specific logo. Program line preceding
    the graphic is required.
    ·        Program line COMP_LOGO is used to assign the value to G_LOGO. Concatenate 'ZCOMPANY_LOGO_'
    ZXEKKO-BUKRS INTO G_LOGO. So, the name of graphic for example will be ZCOMPANY_LOGO_0202 for
    company code 0202.
    Displaying a static table (Window u2013 INFO, Template - TEM_INFO) 
    Use node type template to display a table whose layout and size is determined before the runtime of the print
    program.
    To create a template, define a table layout to determine the cell structure for each line. The cells are used to
    display the cell structure for each line. The cells are used to display the contents of the successor nodes of the
    template node. 
    ·        Create Template under the INFO window node. Create > Template.
    The template layout is used to determine the following,
    1.        The number of lines and cells
    2.        The height of each cell
    3.        The width of each cell
    4.        The alignment of the table in the window
    5.        Whether and where to display separator lines or frames
    Use the table control on the template tab to define the layout of the lines. Each line of the template must have
    a definition.
    Use the pattern box to select the desired table pattern.
    Displaying contents in cells: (TLE_CONTACT)
    The template node defines the table layout. The successor nodes of the template         determine the data to be
    displayed in the table cells.
    In General Attributes choose Text type u2013 Text Element. In editor, type u2018DTE         Contactu2019.
    In Output Options, define the output structure LINE u2013 5 and Column u2013 1.
    Similarly all other information for each cell can be filed using the text module and         address module.
    Displaying Dynamic Table (ITEM_TABLE)
    ·        Create TABLE under the MAIN window node. In DATA Tab, loop through the data internal table.
    L_XEKPO is the item table which has all the line item details.
    Define the line types based on the positioning of the text in main window. For         example: TABLE_HEADER1
    is used for positioning Header texts in the table.
    ·        Table is divided into three parts: Header, Main Area and Footer.
    ·        Header is used for printing the Header Title of the table and it at the start of the table on every page.
    ·         Main Area is used to print the line item details of the PO. Create a line (ITEM_DETAIL) of the line type
    TABLE_HEADER1. It will dynamically generate number cells based on the line type defined in the table layout.
    Name all the cells as per the usage. For each cell create the text node to display the information. For example:
    Cell VAL_MATERIAL, Text node MATNR is created which has text element - -matnr.
    ·        Footer is used for printing the information after Main Area data is printed. This can be used for Total
    printing or any other information which needs to be printed after all line items are printed. Create line
    TLE_CONTR_STP for Contractual Stipulation of the line type u2013 LINE which has only one column. Create the
    text element to print the information.
    Special Requirement: Printing the Acknowledgement text if the order value is greater then USD 50,000.00 on
    the second copy only.
    ·        This requirement needs the modification in the print program and the Smartform.
    ·        Modification in Print Program to trigger the second copy if the order value is greater then 50K. Its
    advisable to copy the standard print program to custom Z program (Z_SMB40_FM06P), and changes should
    be made to Z program. Number of copies is passed from NAST to ls_composer_param-tdcopies in Smartforms.
    The value ls_composer_param-tdcopies is modified in the print program to 2 if the order value is greater then
    50K.
    ·        The printing of Acknowledgement Text only on second copy is achieved using the COPIES WINDOW in
    Smartforms. Define Window ACKN_COPY of the type COPIES WINDOW and Output to u2013 Only Copies u2013 Copies
    Differ. Also set the condition in the Condition Tab of the window u2013 SFSY-JOBPAGES = 1, so that it only print
    on the first page of the copy.
    ·        If user selects to print 2 copies and the order value is more then 50k, program needs to print 2 sets
    meaning 4 copies. So number of copies is taken care of in Print program but again the printing of
    Acknowledgement Text should be only the Even number copy meaning Copy# 2 and 4. This achieved by using
    the program lines to determine the even copy.  SFSY-COPYCOUNT will tell us the current copy number being
    printed.

  • Printer device group and a label format in SAP AII

    Hello @ all,
    I try to configure a SAP OER System with SAP AII. Now I should configure the label printing with the transaktion /AIN/ASGN_PRF_FORMAT. I must take a profile name, a printer device group and a label format. The problem is now, that I can't chose a printer device group and also I don't know the label format. Where can I adjust the printer device group and which label format must be in that field?
    Can anybody help me?
    Thank you.
    Peter

    Hi Peter,
    SAP AII sends the label format filename as part of the Command message xml to the printer during tag commissioning.
    I assume you have configured the label format filename for SAP_PRINT_PROFILE using transaction /AIN/ASGN_PRF_FORMAT - Assign Format to Printer and Profile
    Now you have to assign that profile to an ID type or GTIN, etc. using the menus under Profiles for Tag Commissioning and Label Printing.
    Once this configuration is done, the xml command message containing the element WriteTagData is sent to the printer RFC destination configured against the Device controller as an HTTP message.
    This command message will contain the label format and  field names - value pairs as per the SAP_PRINT_PROFILE.

Maybe you are looking for

  • Process chain delete index from TABLE

    is it possible to put a step in a process chain (/rspc) to delete and rebuild indexes from a normal table? I can only find a way to do this for cubes... ? thanks!

  • How does one fax a pdf document from a Mac in Yosemite?

    I have a telephone land line connected to a cable modem, and an ethernet cable from my Mac to the cable modem. I would like to fax a simple PDF document. How do I do it? I began by following this set of instructions, but was never able to get beyond

  • How do I disable the onboard sound card in BIOS on the Equium A200 PSAE2 ?

    I am using a Creative Sound Blaster external soundcard but the recording level is very low and have been advised by Creative to disable the onboard sound card in BIOS but there is no option to do this. Can anyone help ?

  • OLEDB 8i against Oracle 9i Database

    Is it recommended to use Oracle Provider for OLE DB 8i driver against Oracle 9i Database server? Does anyone have an official Oracle link whether this is supported or not. Thanks Dipak

  • Idoc packaging in sender

    Hi All,    I need to collect idocs from R/3 system as single message in XI without using BPM..so i followed the blog /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm I created a XML file port and i assigned that port in partner